| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Further operations, such as set algebra, is defined in SRFI-14
module (See section 10.8 srfi-14 - Character-set library).
#[char-set-spec]
x-y
^
\xNN
\uNNNN
\UNNNNNNNN
\s
\S
\d
\D
\w
\W
\\
\-
\^
[:alnum:] ...
alnum, alpha, blank, cntrl,
digit, graph, lower, print, punct,
space, upper and xdigit.
#[aeiou] ; a character set consists of vowels #[a-zA-Z] ; alphabet #[[:alpha:]] ; alphabet (using POSIX notation) #[\x0d\x0a] ; newline and carriage return #[\\\-] ; backslash and minus #[] ; empty charset |
(char-set-contains? #[a-z] #\y) => #t (char-set-contains? #[a-z] #\3) => #f (char-set-contains? #[^ABC] #\A) => #f (char-set-contains? #[^ABC] #\D) => #t |
(char-set #\a #\b #\c) => #[a-c] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |