User Tools


Function CHAR-INT

Syntax

  • char-int characterinteger

Arguments and Values

Description

Returns a non-negative integer encoding the character object. The manner in which the integer is computed is implementation-dependent. In contrast to sxhash, the result is not guaranteed to be independent of the particular Lisp image.

If character has no implementation-defined attributes, the results of char-int and char-code are the same.

Examples

(char-int #\A)

65 ; Implementation A or 577 ; Implementation B or 262145 ; Implementation C

Affected By

None.

Exceptional Situations

None.

See Also

Notes

(char= c1 c2) ≡ (= (char-int c1) (char-int c2))

\issue{CHARACTER-PROPOSAL:2-1-2}