char->integer -- r7rs Definition converter;
char->integer (from vonuvoli);Procedure variants:
((character-ascii) -> (code-point-ascii))
character-ascii;code-point-ascii;((character) -> (code-point-unicode))
character;code-point-unicode;scheme:base -- (scheme base);scheme -- (scheme);(char->integer char) (integer->char n)Given a Unicode character,
char->integerreturns an exact integer between0and#xD7FFor between#xE000and#x10FFFFwhich is equal to the Unicode scalar value of that character. Given a non-Unicode character, it returns an exact integer greater than#x10FFFF. This is true independent of whether the implementation uses the Unicode representation internally.Given an exact integer that is the value returned by a character when
char->integeris applied to it,integer->charreturns that character.
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.