CHARACTER FUNCTIONS



EXTRACT A CHARACTER FROM A STRING

(char <string> <index>)


IS THIS CHARACTER ALPHANUMERIC?

(alphanumericp <chr>)


IS THIS AN UPPER CASE CHARACTER?

(upper-case-p <chr>)


IS THIS A LOWER CASE CHARACTER?

(lower-case-p <chr>)


IS THIS AN ALPHABETIC CHARACTER?

(alpha-char-p <chr>)


IS THIS AN ALPHABETIC (EITHER CASE) CHARACTER?

(both-case-p <chr>)


IS THIS A DIGIT CHARACTER?

(digit-char-p <chr>)


GET THE ASCII CODE OF A CHARACTER

(char-code <chr>)


GET THE CHARACTER WITH A SPECFIED ASCII CODE

(code-char <code>)


CONVERT A CHARACTER TO UPPER CASE

(char-upcase <chr>)


CONVERT A CHARACTER TO LOWER CASE

(char-downcase <chr>)


CONVERT A DIGIT WEIGHT TO A DIGIT

(
digit-char <n>)


CONVERT A CHARACTER TO AN INTEGER

(char-int <chr>)


CONVERT AN INTEGER TO A CHARACTER

(int-char <int>)


(char< <chr1> <chr2>...)

(char<= <chr1> <chr2>...)

(char= <chr1> <chr2>...)

(char/= <chr1> <chr2>...)

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

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


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