REPETITION objects represent repetitions of regexes.
| regex | The REGEX base class. All other classes inherit |
|---|
| contains-register-p | If the regex contains a register. Initargs::contains-register-p; Reader:contains-register-p. |
|---|---|
| greedyp | Whether the repetition is greedy. Initargs::greedyp; Reader:greedyp. |
| len | The length of the string. Initform:0; Accessors:len; Type:fixnum. |
| maximum | The maximal number of repetitions.
Can be NIL for unbounded. Initargs::maximum; Accessors:maximum. |
| min-len | The minimal length of the enclosed regex. Initargs::min-len; Reader:min-len. |
| min-rest | The minimal number of characters which must
appear after this repetition. Initform:0; Accessors:min-rest; Type:fixnum. |
| minimum | The minimal number of repetitions. Initargs::minimum; Accessors:minimum; Type:fixnum. |
| regex | The inner regex. Initargs::regex; Accessors:regex. |
| compute-min-rest | Returns the minimal length of REGEX plus |
|---|---|
| compute-offsets | Returns the offset the following regex would have |
| copy-regex | Implements a deep copy of a REGEX object. |
| create-constant-repetition-constant-length-matcher | Creates a closure which tries to match REPETITION. It is assumed |
| create-constant-repetition-matcher | Creates a closure which tries to match REPETITION. It is assumed |
| create-greedy-constant-length-matcher | Creates a closure which tries to match REPETITION. It is assumed |
| create-greedy-matcher | Creates a closure which tries to match REPETITION. It is assumed |
| create-greedy-no-zero-matcher | Creates a closure which tries to match REPETITION. It is assumed |
| create-matcher-aux | Creates a closure which takes one parameter, |
| create-non-greedy-constant-length-matcher | Creates a closure which tries to match REPETITION. It is assumed |
| create-non-greedy-matcher | Creates a closure which tries to match REPETITION. It is assumed |
| create-non-greedy-no-zero-matcher | Creates a closure which tries to match REPETITION. It is assumed |
| everythingp | Returns an EVERYTHING object if REGEX is equivalent to this object, otherwise NIL. So, (.){1} w... |
| regex-length | Return the length of REGEX if it is fixed, NIL otherwise. |
| regex-min-length | Returns the minimal length of REGEX. |
| remove-registers | Returns a deep copy of a REGEX (see COPY-REGEX) and |
| start-anchored-p | Returns T if REGEX starts with a real start |
| case-mode | Utility function used by the optimizer (see GATHER-STRINGS). |
|---|---|
| end-string-aux | Returns the constant string (if it exists) REGEX |
| flatten | Merges adjacent sequences and alternations, i.e. it |
| gather-strings | Collects adjacent strings or characters into one |