tupelo.chars

Tupelo - Making Clojure even sweeter

->lowercase

(->lowercase ch)
Converts any uppercase chars to lowercase

->uppercase

(->uppercase ch)
Converts any lowercase chars to uppercase

alpha

All alphabetic chars (either case)

alpha?

(alpha? ch)
Returns true iff char is in tupelo.chars/alpha

alphanumeric

All alphabetic & digit chars

alphanumeric?

(alphanumeric? ch)
Returns true iff char is in tupelo.chars/alphanumeric

char-lower->upper

char-upper->lower

code-point-backspace

The unicode code-point for the backspace char.

code-point-del

The unicode code-point for the delete char.

code-point-escape

The unicode code-point for the escape char.

code-point-formfeed

The unicode code-point for the form-feed char.

code-point-newline

The unicode code-point for the newline char.

code-point-return

The unicode code-point for the return char.

code-point-tab

The unicode code-point for the horizontal tab char.

code-point-tab-vertical

The unicode code-point for the vertical tab char.

digit

Digit chars 0-9

digit?

(digit? ch)
Returns true iff char is in tupelo.chars/digit

hex

Hexadecimal chars 0-9, a-f, A-F

hex?

(hex? ch)
Returns true iff char is in tupelo.chars/hex

lowercase

Lowercase chars a-z

lowercase?

(lowercase? ch)
Returns true iff char is in tupelo.chars/lowercase

text

Set of chars used in 'normal' text. Includes all visible chars plus whitespace & EOL chars.

text?

(text? ch)
Returns true iff char is in tupelo.chars/text

uppercase

Uppercase chars A-Z

uppercase?

(uppercase? ch)
Returns true iff char is in tupelo.chars/uppercase

visible

Set of all visible (printing) ASCII chars from exclamation point (33) to tilde (126).
Excludes all whitespace & control chars.

visible-no-dquote

All visible (printing) ASCII chars except double-quote.

visible-no-squote

All visible (printing) ASCII chars except single-quote.

visible?

(visible? ch)
Returns true iff char is in tupelo.chars/visible

whitespace

All whitespace (vertical & horizontal)

whitespace-eol

Vertical whitespace (return & newline)

whitespace-eol?

(whitespace-eol? ch)
Returns true iff char is in tupelo.chars/whitespace-eol

whitespace-horiz

Horizontal whitespace (space & tab)

whitespace-horiz?

(whitespace-horiz? ch)
Returns true iff char is in tupelo.chars/whitespace-horiz

whitespace?

(whitespace? ch)
Returns true iff char is in tupelo.chars/whitespace