XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next
25 String Functions
- string - make a string from an integer ascii value
- string-trim - trim both ends of a string
- string-left-trim - trim the left end of a string
- string-right-trim - trim the right end of a string
- string-upcase - convert a string to uppercase
- string-downcase - convert a string to lowercase
- nstring-upcase - convert a part of a string to uppercase
- nstring-downcase - convert a part of a string to lowercase
- strcat - concatenate strings
- subseq - extract a substring
- string< - test for less than in ASCII ordering
- string<= - test for less than or equal to in ASCII ordering
- string= - test for equal to in ASCII ordering
- string/= - test for not equal to in ASCII ordering
- string>= - test for greater than or equal to in ASCII ordering
- string> - test for greater than in ASCII ordering
- string-lessp - is this less than in ASCII ordering ?
- string-not-greaterp - is this not greater than in ASCII ordering ?
- string-equal - is this equal in ASCII ordering ?
- string-not-equal - is this not equal in ASCII ordering ?
- string-not-lessp - is this not less than in ASCII ordering ?
- string-greaterp - is this greater than in ASCII ordering ?
- (string expr)
- make a string from a symbol, character or string
- expr - a symbol, character or string expression
returns - a string
- (string-trim bag
str) - trim both ends of a string
- bag - a string containing characters to trim
str - the string to trim
returns - a trimed copy of the string
- (string-left-trim
bag str) - trim the left end of a string
- bag - a string containing characters to trim
str - the string to trim
returns - a trimed copy of the string
- (string-right-trim
bag str) - trim the right end of a string
- bag - a string containing characters to trim
str - the string to trim
returns - a trimed copy of the string
- (string-upcase str
&key :start :end) - convert to uppercase
- str - the string
:start - the starting offset
:end - the ending offset + 1
returns - a converted copy of the string
- (string-downcase
str &key :start :end) - convert to lowercase
- str - the string
:start - the starting offset
:end - the ending offset + 1
returns - a converted copy of the string
- (nstring-upcase str
&key :start :end) - convert to uppercase
- str - the string
:start - the starting offset
:end - the ending offset + 1
returns - the converted string [not a copy]
- (nstring-downcase
str &key :start :end) - convert to lowercase
- str - the string
:start - the starting offset
:end - the ending offset + 1
returns - the converted string [not a copy]
- (strcat expr...)
- concatenate strings
- expr - the strings to concatenate
returns - the result of concatenating the strings
- (subseq string
start [end]) - extract a substring
- string - the string
start - the starting position [zero origin]
end - the ending position + 1 [defaults to end]
returns - substring between start and end
- (string< str1
str2 &key :start1 :end1 :start2 :end2)
(string<= str1
str2 &key :start1 :end1 :start2 :end2)
(string= str1
str2 &key :start1 :end1 :start2 :end2)
(string/= str1
str2 &key :start1 :end1 :start2 :end2)
(string>= str1
str2 &key :start1 :end1 :start2 :end2)
(string> str1
str2 &key :start1 :end1 :start2 :end2)
- str1 - the first string to compare
str2 - the second string to compare
:start1 - first substring starting offset
:end1 - first substring ending offset + 1
:start2 - second substring starting offset
:end2 - second substring ending offset + 1
returns - a non-NIL value if the predicate is true, NIL otherwise
Note: case is significant with these comparison functions.
- (string-lessp str1
str2 &key :start1 :end1 :start2 :end2)
(string-not-greaterp
str1 str2 &key :start1 :end1 :start2 :end2)
(string-equal str1
str2 &key :start1 :end1 :start2 :end2)
(string-not-equal str1
str2 &key :start1 :end1 :start2 :end2)
(string-not-lessp str1
str2 &key :start1 :end1 :start2 :end2)
(string-greaterp str1
str2 &key :start1 :end1 :start2 :end2)
- str1 - the first string to compare
str2 - the second string to compare
:start1 - first substring starting offset
:end1 - first substring ending offset + 1
:start2 - second substring starting offset
:end2 - second substring ending offset + 1
returns - T if predicate is true, NIL otherwise
Note: case is not significant with these comparison functions.
XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next