Liking cljdoc? Tell your friends :D

com.gfredericks.test.chuck.regexes.charsets

Sets of characters with efficient range representations.

Includes large unicode characters, and so we can't use the Character class directly. Instead the API uses strings of one character (for small unicode characters) or two surrogates (for large unicode characters).

Sets of characters with efficient range representations.

Includes large unicode characters, and so we can't use the
Character class directly. Instead the API uses strings of
one character (for small unicode characters) or two surrogates
(for large unicode characters).
raw docstring

all-asciiclj

source

all-unicodeclj

All unicode characters except (invalid) unpaired surrogates.

All unicode characters except (invalid) unpaired surrogates.
sourceraw docstring

all-unicode-but-line-terminatorsclj

source

char-string->longclj

(char-string->long s)
source

differenceclj

(difference charset-1 charset-2)

Returns a variant of the first charset without any of the characters in the second charset.

Returns a variant of the first charset without any of the
characters in the second charset.
sourceraw docstring

emptyclj

The empty charset.

The empty charset.
sourceraw docstring

intersectionclj

(intersection charset-1 charset-2)

Returns the intersection of the two charsets.

Returns the intersection of the two charsets.
sourceraw docstring

line-terminatorsclj

source

long->char-stringclj

(long->char-string x)
source

nthclj

(nth charset idx)

Returns the character string from the charset at the given index, which must be (<= 0 idx (dec (size charset))).

Returns the character string from the charset at the given
index, which must be (<= 0 idx (dec (size charset))).
sourceraw docstring

predefined-regex-classesclj

source

rangeclj

(range char-string-1 char-string-2)

Creates a charset from a range with an lower and upper bound, both inclusive.

Creates a charset from a range with an lower and upper bound, both
inclusive.
sourceraw docstring

single-character-line-breaksclj

This is everything that \R matches, excepting the two character string "\r\n".

This is everything that \R matches, excepting the two character
string "\r\n".
sourceraw docstring

singletonclj

(singleton char-string)

Creates a charset from a single character string.

Creates a charset from a single character string.
sourceraw docstring

sizeclj

(size charset)

Returns the size of the charset.

Returns the size of the charset.
sourceraw docstring

unionclj

(union charset-1 & more)

Returns the union of the given character sets.

Returns the union of the given character sets.
sourceraw docstring

union*clj

(union* charset-1 charset-2)

Returns the union of the two charsets.

Returns the union of the two charsets.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close