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;e<br />

504<br />

(typep "1;oi498f" 'string) => T<br />

(typep "123" 1 (string 3» => T<br />

(typep "123" 1 (string 5» => NIL<br />

(<strong>zl</strong> :typep "U.S. Telephone Area Codes") => :STRING<br />

(subtypep 'string Ivector) => T and T<br />

(stringp "artificial intelligence") => T<br />

(stringp (make-array 3 :element-type 'string-char<br />

:initial-element #\s<br />

:fill-pointer 2» => T<br />

(sys:type-arglist 'string) => (&OPTIONAL (SIZE 1*»<br />

and T<br />

See the section "Data Types and Type Specifiers" in Symbolics Common<br />

Lisp: Language Concepts. See the section "Strings" in Symbolics Common<br />

Lisp: Language Concepts.<br />

I<br />

string:;t: stringl string2 &key (startl 0) (endl nil) (start2 0) (end2 Function<br />

nil)<br />

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

them, exactly, depending on all fields including modifier bits, character set,<br />

character style, and alphabetic case.<br />

string:;t: returns nil unless stringl is not equal to string2. If the condition<br />

is satisfied, string:;t: returns the position within the strings of the first<br />

character at which the strings fail to match; this index is equivalent to the<br />

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 />

:start2 and :end2<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.<br />

Work in analogous fashion for string2.<br />

The case-insensitive version of string:;t: is the function string-not-equal.<br />

Examples:

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

Saved successfully!

Ooh no, something went wrong!