STRING FUNCTIONS


Note: functions with names starting "string" will also accept a symbol, in which case the symbol's print name is used.


MAKE A STRING FROM AN INTEGER ASCII VALUE

(string <expr>)


TRIM BOTH ENDS OF A STRING

(string-trim <bag> <str>)


TRIM THE LEFT END OF A STRING

(string-left-trim <bag> <str>)


TRIM THE RIGHT END OF A STRING

(string-right-trim <bag> <str>)


CONVERT TO UPPERCASE

(
string-upcase <str> &key :start :end)


CONVERT TO LOWERCASE

(
string-downcase <str> &key :start :end)


CAPITALIZE STRING

(
string-capitalize <str> &key :start :end)


CONVERT TO UPPERCASE

(
nstring-upcase <str> &key :start :end)


CONVERT TO LOWERCASE

(
nstring-downcase <str> &key :start :end)


CAPITALIZE STRING

(
nstring-capitalize <str> &key :start :end)


CONCATENATE STRINGS

(strcat <expr>...)

Macro in init.lsp, to maintain compatibility with XLISP.

See CONCATENATE for preferred function.


(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)

others: If predicate is true then number of initial matching characters, else NIL

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)

others: If predicate is true then number of initial matching characters, else NIL

Note: case is not significant with these comparison functions -- all uppercase characters are converted to lowercase before being compared.


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker