A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/CLHS/Body/f_char_i.htm below:

CLHS: Function CHAR-INT

CLHS: Function CHAR-INT Function CHAR-INT

Syntax:

char-int character => integer

Arguments and Values:

character---a character.

integer---a non-negative integer.

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.

 (char= c1 c2) ==  (= (char-int c1) (char-int c2))
for characters c1 and c2.

Examples:

 (char-int #\A) =>  65       ; implementation A
 (char-int #\A) =>  577      ; implementation B
 (char-int #\A) =>  262145   ; implementation C

Affected By: None.

Exceptional Situations: None.

See Also:

char-code

Notes: None.

The following X3J13 cleanup issue, not part of the specification, applies to this section:
Copyright 1996-2005, LispWorks Ltd. All rights reserved.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4