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.

<strong>zl</strong> :string-search-exact<br />

556<br />

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

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

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

key-end<br />

This searches one string for another, comparing characters exactly and<br />

depending on all fields including bits, style, and alphabetic case. Substrings<br />

of either argument can be specified.<br />

Examples:<br />

(setq a-string (make-string 3 :initial-element #\a)<br />

(<strong>zl</strong>:string-search-exact #\a a-string) => B<br />

=> "aaa"<br />

(<strong>zl</strong>:string-search-exact #\a "AAA") => NIL<br />

(<strong>zl</strong> :string-search-exact #\a "bbbabba") => 3<br />

(<strong>zl</strong>:string-search-exact #\a "aaabAcBA") => B<br />

I<br />

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

function:<br />

string-search-exact<br />

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

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

string-search-exact-char char string &key from-end (start 0) (end Function<br />

nil)<br />

Searches string looking for the character, char. The search compares all<br />

characters exactly, using all character fields including character style and<br />

alphabetic case.<br />

string-search-exact-char returns nil if it does not find char; if successful,<br />

it returns the position of the first occurrence of char in the string or substring<br />

searched. To reverse the search returning the position of the last<br />

occurrence of char in the (sub)string searched, specify a non-nil value for<br />

the keyword :from-end.<br />

char must be a character object.<br />

string must be a string, or an object that can be coerced to a string. See<br />

the function string, page 502.<br />

The keywords let you specify the parts of string to be searched. These<br />

keyword arguments must be non-negative integer indices into the string array.

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

Saved successfully!

Ooh no, something went wrong!