Str.Char
Uppercase letter.
Import
import { Str } from '@wollybeard/kit'
// Access via namespace
Str.Charimport { Char } from '@wollybeard/kit/str'Character Constants
[C] spaceNoBreak
' 'Non-breaking space character (U+00A0). A space character that prevents line breaks at its position.
[C] spaceRegular
' 'Regular space character (U+0020). The standard space character.
[C] newline
'\n'Line feed (newline) character. Used to create line breaks in text.
[C] bullet
'•'Bullet character (U+2022). Standard bullet point symbol: •
[C] middleDot
'·'Middle dot character (U+00B7). Centered dot symbol: ·
[C] whiteBullet
'◦'White bullet character (U+25E6). Hollow circle symbol: ◦
[C] inverseBullet
'◘'Inverse bullet character (U+25D8). Inverse white circle symbol: ◘
[C] squareWithLeftHalfBlack
'◧'Square with left half black character (U+25E7). Half-filled square symbol: ◧
[C] rightwardsArrow
'→'Rightwards arrow character (U+2192). Right-pointing arrow symbol: →
[C] pipe
'|'Vertical bar (pipe) character (U+007C). Vertical line symbol: |
[C] boxDrawingHorizontal
'─'Box drawing horizontal line character (U+2500). Horizontal line symbol: ─
[C] boxDrawingHorizontalHeavy
'━'Box drawing heavy horizontal line character (U+2501). Bold horizontal line symbol: ━
[C] boxDrawingVertical
'│'Box drawing vertical line character (U+2502). Vertical line symbol: │
[C] boxDrawingDownRight
'┌'Box drawing down and right character (U+250C). Top-left corner symbol: ┌
[C] boxDrawingDownLeft
'┐'Box drawing down and left character (U+2510). Top-right corner symbol: ┐
[C] boxDrawingUpRight
'└'Box drawing up and right character (U+2514). Bottom-left corner symbol: └
[C] boxDrawingUpLeft
'┘'Box drawing up and left character (U+2518). Bottom-right corner symbol: ┘
[C] ballotX
'✗'Ballot X character (U+2717). X mark symbol: ✗
[C] multiplicationX
'✕'Multiplication X character (U+2715). Multiplication X symbol: ✕
[C] checkMark
'✓'Check mark character (U+2713). Check symbol: ✓
[C] blackSquare
'■'Black square character (U+25A0). Filled square symbol: ■
[C] whiteCircle
'○'White circle character (U+25CB). Hollow circle symbol: ○
[C] blackUpPointingTriangle
'▲'Black up-pointing triangle character (U+25B2). Filled upward triangle symbol: ▲
[C] emDash
'—'Em dash character (U+2014). Long dash symbol: —
[C] exclamation
'!'Exclamation mark character. Often used for negation or emphasis: !
[C] colon
':'Colon character. Often used as a separator or delimiter: :
[C] comma
','Comma character. Often used as a list separator: ,
[C] asterisk
'*'Asterisk character. Often used as a wildcard or multiplication symbol: *
[C] at
'@'At sign character. Often used in email addresses and mentions:
[C] plus
'+'Plus sign character. Used for addition or positive values: +
[C] hyphen
'-'Hyphen/minus character. Used for subtraction, ranges, or negative values: -
Character Types
[U] LetterUpper
type LetterUpper =
| 'A'
| 'B'
| 'C'
| 'D'
| 'E'
| 'F'
| 'G'
| 'H'
| 'I'
| 'J'
| 'K'
| 'L'
| 'M'
| 'N'
| 'O'
| 'P'
| 'Q'
| 'R'
| 'S'
| 'T'
| 'U'
| 'V'
| 'W'
| 'X'
| 'Y'
| 'Z'Uppercase letter.
[T] LetterLower
type LetterLower = LettersLower[number]Lowercase letter.
[U] Letter
type Letter = LetterLower | LetterUpperAny letter (uppercase or lowercase).
[U] Digit
type Digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'Digit character.
[U] HexLetterUpper
type HexLetterUpper = 'A' | 'B' | 'C' | 'D' | 'E' | 'F'Hexadecimal letter (uppercase).
Represents hex digits A-F in base-16 (values 10-15 in decimal).
[U] HexLetterLower
type HexLetterLower = 'a' | 'b' | 'c' | 'd' | 'e' | 'f'Hexadecimal letter (lowercase).
Represents hex digits a-f in base-16 (values 10-15 in decimal).
[U] HexLetter
type HexLetter = HexLetterUpper | HexLetterLowerHexadecimal letter (uppercase or lowercase).
Represents hex digits A-F or a-f in base-16 (values 10-15 in decimal).
[U] HexDigit
type HexDigit = Digit | HexLetterHexadecimal digit (0-9, A-F, a-f).
Represents a single character in base-16 (hexadecimal) number system. Used for colors (#FF5733), memory addresses, data encoding, etc.
Other
[T] LettersLower
type LettersLower = [
'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
'n',
'o',
'p',
'q',
'r',
's',
't',
'u',
'v',
'w',
'x',
'y',
'z',
][C] blackCircle
'●'