XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next

26  Character Functions


  1. char - extract a character from a string
  2. upper-case-p - is this an upper case character ?
  3. lower-case-p - is this a lower case character ?
  4. both-case-p - is this an alphabetic [either case] character ?
  5. digit-char-p - is this a digit character ?
  6. char-code - get the ASCII code of a character
  7. code-char - get the character with a specified ASCII code
  8. char-upcase - convert a character to upper case
  9. char-downcase - convert a character to lower case
  10. digit-char - convert a digit weight to a digit
  11. char-int - convert a character to an integer
  12. int-char - convert an integer to a character
  13. char< - test for less than in ASCII ordering
  14. char<= - test for less than or equal to in ASCII ordering
  15. char= - test for equal to in ASCII ordering
  16. char/= - test for not equal to in ASCII ordering
  17. char>= - test for greater than or equal to in ASCII ordering
  18. char> - test for greater than in ASCII ordering
  19. char-lessp - is this less than in ASCII ordering ?
  20. char-not-greaterp - is this not greater than in ASCII ordering ?
  21. char-equal - is this equal in ASCII ordering ?
  22. char-not-equal - is this not equal in ASCII ordering ?
  23. char-not-lessp - is this not less than in ASCII ordering ?
  24. 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