scanner

Function summary
create-bmh-matcher pattern case-insensitive-p
create-char-searcher chr case-insensitive-p
create-scanner-aux match-fn min-len start-anchored-p starts-with start-string-test end-anchored-p end-string-test end-string-len end-string-offset rep-num zero-length-num reg-num
newline-skipper start-pos
Macro summary
bmh-matcher-aux &key case-insensitive-p
char-searcher-aux &key case-insensitive-p
insert-advance-fn advance-fn
create-bmh-matcher   pattern case-insensitive-p  [Function]

Returns a Boyer-Moore-Horspool matcher which searches the (special) simple-string *STRING* for the first occurence of the substring PATTERN. The search starts at the position START-POS within *STRING* and stops before *END-POS* is reached. Depending on the second argument the search is case-insensitive or not. If the special variable *USE-BMH-MATCHERS* is NIL, use the standard SEARCH function instead. (BMH matchers are faster but need much more space.)

create-char-searcher   chr case-insensitive-p  [Function]

Returns a function which searches the (special) simple-string *STRING* for the first occurence of the character CHR. The search starts at the position START-POS within *STRING* and stops before *END-POS* is reached. Depending on the second argument the search is case-insensitive or not.

newline-skipper   start-pos  [Function]

Find the next occurence of a character in *STRING* which is behind a #Newline.

create-scanner-aux   match-fn min-len start-anchored-p starts-with start-string-test end-anchored-p end-string-test end-string-len end-string-offset rep-num zero-length-num reg-num  [Function]

Auxiliary function to create and return a scanner (which is actually a closure). Used by CREATE-SCANNER.

bmh-matcher-aux   &key case-insensitive-p  [Macro]

Auxiliary macro used by CREATE-BMH-MATCHER.

char-searcher-aux   &key case-insensitive-p  [Macro]

Auxiliary macro used by CREATE-CHAR-SEARCHER.

insert-advance-fn   advance-fn  [Macro]

Creates the actual closure returned by CREATE-SCANNER-AUX by replacing '(ADVANCE-FN-DEFINITION) with a suitable definition for ADVANCE-FN. This is a utility macro used by CREATE-SCANNER-AUX.