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.

string-search-not-exact-char 560<br />

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

(<strong>zl</strong> :string-search-not-char #\n "banana" 2) => 3<br />

(<strong>zl</strong> :string-search-not-char #\n "banana" 2 3) => NIL<br />

(<strong>zl</strong> :string-search-not-char #\E "eel") => 2<br />

(<strong>zl</strong> :string-search-not-char #\1 "oscillate") => 0<br />

(<strong>zl</strong> :string-search-not-char #\1 "oscillate" 5) => 6<br />

(<strong>zl</strong> :string-search-not-char #\1 "oscillate" 2 5) => 2<br />

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

function:<br />

string-search-not-char<br />

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

Searches" in Symbolics Comm,on Lisp: Language Concepts.<br />

I<br />

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

(end nil)<br />

Searches string looking for occurrences of any character other than char.<br />

The search compares all characters exactly, using all character fields including<br />

character style and alphabetic case.<br />

string-search-not-exact-char returns nil, or the position of the first occurrence<br />

of any character that is not char. To reverse the search, returning<br />

the position of the last occurrence of a character other than char in the<br />

(sub)string searched, specify t for the keyword argument :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.<br />

:from-end<br />

:start<br />

:end<br />

Examples:<br />

If it has a non-nil value, returns the position of<br />

the last occurrence of a character that does not<br />

match char in the string or the specified substring.<br />

Specifies the position within string from which to<br />

begin the search (counting from 0). Default is 0,<br />

the first character in the string. :start must be :=:;;<br />

:end.<br />

Specifies the position within string of the first<br />

character beyond the end of the search. Default is<br />

nil, that is the entire length of string is searched.

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

Saved successfully!

Ooh no, something went wrong!