17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

string-greaterp 532<br />

characters. If to is supplied, it is used in place of "SMALL large"<br />

(<strong>zl</strong> :string-flipcase "small LARGE" 6) => "small large"<br />

(<strong>zl</strong>:string-flipcase "small LARGE" 1 3) => "sMAll LARGE"<br />

(setq string "STRing") => "STRing"<br />

(<strong>zl</strong>:string-flipcase string 0 nil nil) => "strING"<br />

(<strong>zl</strong> :string-flipcase string 0 nil nil) => "STRing"<br />

The Symbolics Common Lisp equivalents to <strong>zl</strong>:string-flipcase are the functions:<br />

string-flipcase<br />

nstring-flipcase<br />

For a table of related items: See the section "String Conversion" in Symbolics<br />

Common Lisp: Language Concepts.<br />

I<br />

string-greaterp stringl string2 &key (startl 0) (endl nil) (start2 0) Function<br />

(end2 nil)<br />

This is a comparison predicate that compares two strings, or substrings of<br />

them. The comparison ignores character fields for character style and alphabetic<br />

case.<br />

string-greaterp returns nil unless stringl is greater than string2. If the<br />

condition is satisfied, string-greaterp returns the position within the<br />

strings of the first character at which the strings fail to match; this index<br />

is equivalent to the length of the longest common portion of the strings.<br />

stringl and string2 must be strings, or objects that can be coerced to<br />

strings. See the function string, page 502.<br />

The keywords let you specify substrings of the two string arguments for<br />

comparison. These keyword arguments must be non-negative integer indices<br />

into the string array.<br />

:startl<br />

:endl<br />

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

begin the comparison (counting from 0). Default<br />

is 0, the first character in the string. :startl<br />

must be ~ :endl.<br />

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

character beyond the end of the comparison.<br />

Default is nil, that is, the operation continues to<br />

the end of the string.

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

Saved successfully!

Ooh no, something went wrong!