(string-lessp string1 string2 &key (start1 0) end1 (start2 0) end2) | Function: Given two strings, if the first string is lexicographically less than the second string, returns the longest common prefix (using char-equal) of the two strings. Otherwise, returns ().
|
Example:
(defun title< (x y)
(string-lessp (item-title x) (item-title y)))
| Mentioned in:
CLtL2 - 6. Predicates
HyperSpec - Function STRING=, STRING/=, STRING<, STRING>, STRING<=, STRING>=, STRING-EQUAL, STRING-NOT-EQUAL, STRING-LESSP, STRING-GREATERP, STRING-NOT-GREATERP, STRING-NOT-LESSP
PCL - string comparisons
|
| | |
(string-equal string1 string2 &key (start1 0) end1 (start2 0) end2) | Function: Given two strings (string1 and string2), and optional integers start1, start2, end1 and end2, compares characters in string1 to characters in string2 (using char-equal).
|
Example:
(defun name-element (name)
"Get an element from its name"
(find-element-if
(lambda (element)
(string-equal (element-name element) name))))
| Mentioned in:
CLtL2 - 13.4. Character Conversions
CLtL2 - 18.2. String Comparison
CLtL2 - 23.1.5.3. Using Logical Pathnames
CLtL2 - 29.3.4. Object-Oriented Basis of Condition Handling
CLtL2 - 6.3. Equality Predicates
HyperSpec - Function STRING=, STRING/=, STRING<, STRING>, STRING<=, STRING>=, STRING-EQUAL, STRING-NOT-EQUAL, STRING-LESSP, STRING-GREATERP, STRING-NOT-GREATERP, STRING-NOT-LESSP
PCL - string comparisons
Successful Lisp - chapter17
|
| | |
(string-trim char-bag string) | Undocumented
|
Example:
(defun trim-spaces (string)
(declare (type string string))
(string-trim (list #\ *cr* *lf* *ht*) string))
| Mentioned in:
CLtL2 - 18.3. String Construction and Manipulation
HyperSpec - Function STRING-TRIM, STRING-LEFT-TRIM, STRING-RIGHT-TRIM
|
| | |
string-stream | Undocumented
|
| | Mentioned in:
CLtL2 - 2.10. Streams
CLtL2 - 2.15. Overlap, Inclusion, and Disjointness of Types
CLtL2 - 21.2. Creating New Streams
HyperSpec - System Class STRING-STREAM
PCL - other kinds of io
PCL - strings in binary files
|
| | |
(string-upcase string &key (start 0) end) | Undocumented
|
Example:
(defun kwd (name)
(values (intern (string-upcase name) :keyword)))
| Mentioned in:
CLtL2 - 18.3. String Construction and Manipulation
CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax
HyperSpec - Function STRING-UPCASE, STRING-DOWNCASE, STRING-CAPITALIZE, NSTRING-UPCASE, NSTRING-DOWNCASE, NSTRING-CAPITALIZE
|
| | |
(string-left-trim char-bag string) | Undocumented
|
| | Mentioned in:
CLtL2 - 18.3. String Construction and Manipulation
HyperSpec - Function STRING-TRIM, STRING-LEFT-TRIM, STRING-RIGHT-TRIM
|
| | |