17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

sys:%string-search-char<br />

554<br />

For a table of related items: See the section "Case-Insensitive String<br />

Searches" in Symbolics Common Lisp: Language Concepts.<br />

I<br />

sys:%string-search-char char string start end Function<br />

This is a low-level string search, possibly more efficient than the other<br />

searching functions. Its only current efficiency advantage is its simplified<br />

arguments and minimized type-checking.<br />

string must be an array;<br />

char must be a character;<br />

from, and to must be integers.<br />

Except for this lack of type-coercion, and the fact that none of the arguments<br />

is optional, sys:%string-search-char is the same as<br />

<strong>zl</strong>:string-search-char. This function is documented for the benefit of those<br />

who require the maximum possible efficiency in string searching.<br />

Examples:<br />

(sys:%string-search-char #\a<br />

(make-array 4 :e1ement-type Jcharacter<br />

:initia1-e1ement #\a) 2 4) => 2<br />

(sys:%string-search-char #\p "zippy" 9 99) => 2<br />

For a table of related items: See the section "Case-Insensitive String<br />

Searches" in Symbolics Common Lisp: Language Concepts.<br />

<strong>zl</strong>:string-search-char char string &optional (from 0) to Function<br />

<strong>zl</strong>:string-search-char searches through string starting at the index from,<br />

which defaults to the beginning, and returns the index of the first character<br />

that is char-equal to char, or nil if none is found. If the to argument<br />

is supplied, it is used in place of NIL<br />

(<strong>zl</strong>:string-search-char #\a "banana") => 1<br />

(<strong>zl</strong>:string-search-char #\a "banana") => 1<br />

(<strong>zl</strong> :string-search-char #\a "banana" 3) => 1<br />

(<strong>zl</strong>:string-search-char #\a "banana" 1 4 ) => 1<br />

The Symbolics Common Lisp equivalent to <strong>zl</strong>:string-search-char is the<br />

function:<br />

string-search-char<br />

For a table of related items: See the section "Case-Insensitive String<br />

Searches" in Symbolics Common Lisp: Language Concepts.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!