XLISP >
XLISP 2.0 -
Contents -
Reference -
Previous |
Next
26 Character Functions
- char - extract a character from a string
- upper-case-p - is this an upper case character ?
- lower-case-p - is this a lower case character ?
- both-case-p - is this an alphabetic [either case] character ?
- digit-char-p - is this a digit character ?
- char-code - get the ASCII code of a character
- code-char - get the character with a specified ASCII code
- char-upcase - convert a character to upper case
- char-downcase - convert a character to lower case
- digit-char - convert a digit weight to a digit
- char-int - convert a character to an integer
- int-char - convert an integer to a character
- char< - test for less than in ASCII ordering
- char<= - test for less than or equal to in ASCII ordering
- char= - test for equal to in ASCII ordering
- char/= - test for not equal to in ASCII ordering
- char>= - test for greater than or equal to in ASCII ordering
- char> - test for greater than in ASCII ordering
- char-lessp - is this less than in ASCII ordering ?
- char-not-greaterp - is this not greater than in ASCII ordering ?
- char-equal - is this equal in ASCII ordering ?
- char-not-equal - is this not equal in ASCII ordering ?
- char-not-lessp - is this not less than in ASCII ordering ?
- char-greaterp - is this greater than in ASCII ordering ?
- (char string
index) - extract a character from a string
- string - the string
index - the string index [zero relative]
returns - the ASCII code of the character
- (upper-case-p chr)
- is this an upper case character ?
- chr - the character
returns - T if the character is upper case, NIL otherwise
- (lower-case-p chr)
- is this a lower case character ?
- chr - the character
returns - T if the character is lower case, NIL otherwise
- (both-case-p chr)
- is this an alphabetic [either case] character ?
- chr - the character
returns - T if the character is alphabetic, NIL otherwise
- (digit-char-p chr)
- is this a digit character ?
- chr - the character
returns - the digit weight if character is a digit, NIL otherwise
- (char-code chr)
- get the ASCII code of a character
- chr - the character
returns - the ASCII character code [integer]
- (code-char code)
- get the character with a specified ASCII code
- code - the ASCII code [integer]
returns - the character with that code or NIL
- (char-upcase chr)
- convert a character to upper case
- chr - the character
returns - the upper case character
- (char-downcase chr)
- convert a character to lower case
- chr - the character
returns - the lower case character
- (digit-char n)
- convert a digit weight to a digit
- n - the digit weight [integer]
returns - the digit character or NIL
- (char-int chr)
- convert a character to an integer
- chr - the character
returns - the ASCII character code
- (int-char int)
- convert an integer to a character
- int - the ASCII character code
returns - the character with that code
- (char< chr1 chr2...)
(char<= chr1 chr2...)
(char= chr1 chr2...)
(char/= chr1 chr2...)
(char>= chr1 chr2...)
(char> chr1 chr2...)
- chr1 - the first character to compare
chr2 - the second character[s] to compare
returns - T if predicate is true, NIL otherwise
Note: case is significant with these comparison functions.
- (char-lessp chr1 chr2...)
(char-not-greaterp chr1 chr2...)
(char-equal chr1 chr2...)
(char-not-equal chr1 chr2...)
(char-not-lessp chr1 chr2...)
(char-greaterp chr1 chr2...)
- chr1 - the first string to compare
chr2 - the second string[s] to compare
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