Skip to content

Str.Char

Str / Char

Uppercase letter.

Import

typescript
import { Str } from '@wollybeard/kit'

// Access via namespace
Str.Char.someFunction()
typescript
import * as Str from '@wollybeard/kit/str'

// Access via namespace
Str.Char.someFunction()

Character Constants

[C] spaceNoBreak

typescript
' '

Non-breaking space character (U+00A0). A space character that prevents line breaks at its position.

[C] spaceRegular

typescript
' '

Regular space character (U+0020). The standard space character.

[C] newline

typescript
'\n'

Line feed (newline) character. Used to create line breaks in text.

[C] bullet

typescript
'•'

Bullet character (U+2022). Standard bullet point symbol: •

[C] middleDot

typescript
'·'

Middle dot character (U+00B7). Centered dot symbol: ·

[C] whiteBullet

typescript
'◦'

White bullet character (U+25E6). Hollow circle symbol: ◦

[C] inverseBullet

typescript
'◘'

Inverse bullet character (U+25D8). Inverse white circle symbol: ◘

[C] squareWithLeftHalfBlack

typescript
'◧'

Square with left half black character (U+25E7). Half-filled square symbol: ◧

[C] rightwardsArrow

typescript
'→'

Rightwards arrow character (U+2192). Right-pointing arrow symbol: →

[C] pipe

typescript
'|'

Vertical bar (pipe) character (U+007C). Vertical line symbol: |

[C] boxDrawingHorizontal

typescript
'─'

Box drawing horizontal line character (U+2500). Horizontal line symbol: ─

[C] boxDrawingHorizontalHeavy

typescript
'━'

Box drawing heavy horizontal line character (U+2501). Bold horizontal line symbol: ━

[C] boxDrawingVertical

typescript
'│'

Box drawing vertical line character (U+2502). Vertical line symbol: │

[C] boxDrawingDownRight

typescript
'┌'

Box drawing down and right character (U+250C). Top-left corner symbol: ┌

[C] boxDrawingDownLeft

typescript
'┐'

Box drawing down and left character (U+2510). Top-right corner symbol: ┐

[C] boxDrawingUpRight

typescript
'└'

Box drawing up and right character (U+2514). Bottom-left corner symbol: └

[C] boxDrawingUpLeft

typescript
'┘'

Box drawing up and left character (U+2518). Bottom-right corner symbol: ┘

[C] ballotX

typescript
'✗'

Ballot X character (U+2717). X mark symbol: ✗

[C] multiplicationX

typescript
'✕'

Multiplication X character (U+2715). Multiplication X symbol: ✕

[C] checkMark

typescript
'✓'

Check mark character (U+2713). Check symbol: ✓

[C] blackSquare

typescript
'■'

Black square character (U+25A0). Filled square symbol: ■

[C] whiteCircle

typescript
'○'

White circle character (U+25CB). Hollow circle symbol: ○

[C] blackUpPointingTriangle

typescript
'▲'

Black up-pointing triangle character (U+25B2). Filled upward triangle symbol: ▲

[C] emDash

typescript
'—'

Em dash character (U+2014). Long dash symbol: —

[C] exclamation

typescript
'!'

Exclamation mark character. Often used for negation or emphasis: !

[C] colon

typescript
':'

Colon character. Often used as a separator or delimiter: :

[C] comma

typescript
','

Comma character. Often used as a list separator: ,

[C] asterisk

typescript
'*'

Asterisk character. Often used as a wildcard or multiplication symbol: *

[C] at

typescript
'@'

At sign character. Often used in email addresses and mentions:

[C] plus

typescript
'+'

Plus sign character. Used for addition or positive values: +

[C] hyphen

typescript
'-'

Hyphen/minus character. Used for subtraction, ranges, or negative values: -

Character Types

[U] LetterUpper

typescript
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

typescript
type LetterLower = LettersLower[number]

Lowercase letter.

[U] Letter

typescript
type Letter = LetterLower | LetterUpper

Any letter (uppercase or lowercase).

[U] Digit

typescript
type Digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'

Digit character.

[U] HexLetterUpper

typescript
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

typescript
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

typescript
type HexLetter = HexLetterUpper | HexLetterLower

Hexadecimal letter (uppercase or lowercase).

Represents hex digits A-F or a-f in base-16 (values 10-15 in decimal).

[U] HexDigit

typescript
type HexDigit = Digit | HexLetter

Hexadecimal 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

typescript
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

typescript
'●'