Class Str

STR objects represent string.

Part of:

package cl-ppcre, class regex

Direct Superclass

regex

The REGEX base class. All other classes inherit
from this one.

Slot

case-insensitive-p
If we match case-insensitively.
Initargs::case-insensitive-p; Reader:case-insensitive-p.
len
The length of the string.
Initform:0; Accessors:len; Type:fixnum.
offset
Offset from the left of the whole parse tree. The first regex has offset 0. NIL if unknown, i.e. behind a variable-length regex.
Accessors:offset.
skip
If we can avoid testing for this string because the SCAN function has done this already.
Initargs::skip; Accessors:skip.
start-of-end-string-p
If this is the unique STR which starts END-STRING (a slot of MATCHER).
Accessors:start-of-end-string-p.
str
The actual string.
Initargs::str; Accessors:str; Type:string.

Direct Method

case-mode

Utility function used by the optimizer (see GATHER-STRINGS).
Returns a keyword denoting the case-...

compute-min-rest

Returns the minimal length of REGEX plus
CURRENT-MIN-REST. This is similar to REGEX-MIN-LENGTH ex...

compute-offsets

Returns the offset the following regex would have
relative to START-POS or NIL if we can't comput...

copy-regex

Implements a deep copy of a REGEX object.

create-matcher-aux

Creates a closure which takes one parameter,
START-POS, and tests whether REGEX can match *STRING...

end-string-aux

Returns the constant string (if it exists) REGEX
ends with wrapped into a STR object, otherwise N...

regex-length

Return the length of REGEX if it is fixed, NIL otherwise.

regex-min-length

Returns the minimal length of REGEX.

Other Method

everythingpReturns an EVERYTHING object if REGEX is equivalent
to this object, otherwise NIL. So, “(.){1}” w...
flatten

Merges adjacent sequences and alternations, i.e. it
transforms #<SEQ #<STR “a”> #<SEQ #<STR “b”> ...

gather-strings

Collects adjacent strings or characters into one
string provided they have the same case mode. Th...

remove-registers

Returns a deep copy of a REGEX (see COPY-REGEX) and
optionally removes embedded REGISTER objects ...

start-anchored-p

Returns T if REGEX starts with a “real” start
anchor, i.e. one that's not in multi-line mode, NIL...