(scheme char)
(scheme char) - R7RS Character Library
Character comparison and conversion procedures.
See: R7RS Small §6.6
Exports
char=?procedureTest if two characters are equal.
(char=? #\a #\a) ; => #t
(char=? #\a #\A) ; => #fRe-exported from (sigil core)
char<?procedureTest if the first character is less than the second.
(char<? #\a #\b) ; => #t
(char<? #\b #\a) ; => #f
(char<? #\A #\a) ; => #t (uppercase before lowercase in Unicode)Re-exported from (sigil core)
char>?procedureTest if the first character is greater than the second.
(char>? #\b #\a) ; => #t
(char>? #\a #\b) ; => #fRe-exported from (sigil core)
char<=?procedureTest if the first character is less than or equal to the second.
(char<=? #\a #\a) ; => #t
(char<=? #\a #\b) ; => #t
(char<=? #\b #\a) ; => #fRe-exported from (sigil core)
char>=?procedureTest if the first character is greater than or equal to the second.
(char>=? #\a #\a) ; => #t
(char>=? #\b #\a) ; => #t
(char>=? #\a #\b) ; => #fRe-exported from (sigil core)
char->integerprocedureConvert a character to its Unicode code point.
(char->integer #\a) ; => 97
(char->integer #\A) ; => 65
(char->integer #\λ) ; => 955
(char->integer #\space) ; => 32Re-exported from (sigil core)
integer->charprocedureConvert a Unicode code point to its character.
(integer->char 97) ; => #\a
(integer->char 65) ; => #\A
(integer->char 955) ; => #\λRe-exported from (sigil core)