Function summary | |
---|---|
create-ranges-from-set | set &key downcasep |
make-char-set | test |
normalize-var-list | var-list |
nsubseq | sequence start &optional (end (length sequence)) |
string-list-to-simple-string | string-list |
whitespacep | chr |
word-char-p | chr |
Macro summary | |
---|---|
maybe-coerce-to-simple-string | string |
with-rebinding | bindings &body body |
with-unique-names | (&rest bindings) &body body |
Tests whether a character is a "word" character. In the ASCII charset this is equivalent to a-z, A-Z, 0-9, or _, i.e. the same as Perl's [\w].
Tests whether a character is whitespace, i.e. whether it would match [\s] in Perl.
Tries to identify up to three intervals (with respect to CHAR<) which together comprise the charset SET. Returns NIL if this is not possible. If DOWNCASEP is true it will treat the charset as if it represents both the lower-case and the upper-case variants of its members and will only return the respective lower-case intervals.
Return a subsequence by pointing to location in original sequence.
Utility function for REGISTER-GROUPS-BIND and DO-REGISTER-GROUPS. Creates the long form (a list of (FUNCTION VAR) entries) out of the short form of VAR-LIST.
Concatenates a list of strings to one simple-string.
Syntax: WITH-UNIQUE-NAMES ( { var | (var x) }* ) declaration* form*
Executes a series of forms with each VAR bound to a fresh, uninterned symbol. The uninterned symbol is as if returned by a call to GENSYM with the string denoted by X - or, if X is not supplied, the string denoted by VAR - as argument.
The variable bindings created are lexical unless special declarations are specified. The scopes of the name bindings and declarations do not include the Xs.
The forms are evaluated in order, and the values of all but the last are discarded (that is, the body is an implicit PROGN).
WITH-REBINDING ( { var | (var prefix) }* ) form*
Evaluates a series of forms in the lexical environment that is formed by adding the binding of each VAR to a fresh, uninterned symbol, and the binding of that fresh, uninterned symbol to VAR's original value, i.e., its value in the current lexical environment.
The uninterned symbol is created as if by a call to GENSYM with the string denoted by PREFIX - or, if PREFIX is not supplied, the string denoted by VAR - as argument.
The forms are evaluated in order, and the values of all but the last are discarded (that is, the body is an implicit PROGN).