| Function Name |
Description |
Example |
| equals |
returns true if Character a represents the same character value as Character b |
a.equals(b) => true or false |
| lessThan |
returns true if Character a is less than Character b |
a= 'a' b= 'b', a.lessThan(b) => true |
| greaterThan |
returns true if Character a is greater than Character b |
a ='a' b='b',a.greaterThan(b) => false |
| lessThanOrEqual |
returns true if Character a is less than or equal to Character b |
a ='a' b='b',a.lessThanOrEqual(b) => true |
| greaterThanOrEqual |
returns true if Character a is greater than or equal to Character b |
a ='a' b='b',a.lessThanOrEqual(b) => false |
| compareTo |
returns 0 if a is equal to b, -1 if this Character is less than b; and 1 if this Character is greater than b |
a='a' b='b' a.compareTo(b) => -1 |
| hashcode |
returns a hash code for the Character |
a.hashCode() => a unique number that no other character instance will have. |
| Function Name |
Description |
Example |
Java Implementation |
| CHAR= |
returns true if all characters are the same; otherwise, it returns false. |
(char= #\d #\d) => true |
[CharEqualCaseSensitive.java] |
| CHAR/= |
returns true if all characters are different; otherwise, it returns false. |
(char/= #\d #\d) => false |
[CharNotEqualCaseSensitive.java] |
| CHAR< |
returns true if the characters are monotonically increasing; otherwise, it returns false. |
(char< #\d #\x) => true |
[CharLessPCaseSensitive.java] |
| CHAR> |
returns true if the characters are monotonically decreasing; otherwise, it returns false. |
(char> #\e #\d) => true |
[CharGreaterPCaseSensitive.java] |
| CHAR<= |
returns true if the characters are monotonically nondecreasing; otherwise, it returns false. |
(char<= #\d #\x #\x #\x) => true |
[CharNotGreaterPCaseSensitive.java] |
| CHAR>= |
returns true if the characters are monotonically nonincreasing; otherwise, it returns false. |
(char>= #\d #\c #\b #\b #\a #\a) => true |
[CharNotLessPCaseSensitive.java] |
| CHAR-EQUAL |
Same as CHAR=, except it's case-insensitive |
(char-equal #\D #\d #\d) => true |
[CharEqualCaseInsensitive.java] |
| CHAR-NOT-EQUAL |
Same as CHAR/=, except it's case-insensitive |
(char-not-equal #\d #\D) => false |
[CharNotEqualCaseInsensitive.java] |
| CHAR-LESSP |
Same as CHAR<, except it's case-insensitive |
(char-lessp #\D #\x) => true |
[CharLessPCaseInsensitive.java] |
| CHAR-GREATERP |
Same as CHAR>, except it's case-insensitive |
(char-greaterp #\E #\d) => true |
[CharGreaterPCaseInsensitive.java] |
| CHAR-NOT-GREATERP |
Same as CHAR<=, except it's case-insensitive |
(char-not-greaterp #\d #\X #\x) => true |
[CharNotGreaterPCaseInsensitive.java] |
| CHAR-NOT-LESSP |
Same as CHAR>=, except it's case-insensitive |
(char-not-lessp #\d #\C #\b #\A #\a) => true |
[CharNotLessPCaseInsensitive.java] |
| CHARACTER |
Returns the character denoted by the character designator. |
(character #\a) => #\a (character "a") => #\a |
Char.java |
| CHARACTERP |
Returns true if object is of type character |
(characterp #\a) => true |
[CharacterP.java] |
| ALPHA-CHAR-P |
Returns true if character is an alphabetic_1 character |
(alpha-char-p #\5) => false |
[AlphaCharP.java] |
| ALPHANUMERICP |
Returns true if character is an alphabetic_1 character or a numeric character |
(alpha-char-p #\5) => true |
[AlphaNumericP.java] |
| DIGIT-CHAR |
If weight is less than radix, digit-char returns a character which has that weight when considered as a digit in the specified radix. If the resulting character is to be an alphabetic_1 character, it will be an uppercase character. If weight is greater than or equal to radix, digit-char returns false. |
(digit-char 10 11) => #\A |
[DigitChar.java] |
| DIGIT-CHAR-P |
Tests whether char is a digit in the specified radix (i.e., with a weight less than radix). If it is a digit in that radix, its weight is returned as an integer; otherwise nil is returned. |
(digit-char-p #\5) => 5 |
[DigitCharP.java] |
| GRAPHIC-CHAR-P |
Returns true if character is a graphic character; otherwise, returns false. |
(graphic-char-p #\Space) => true (graphic-char-p #\Newline) => false |
[GraphicCharP.java] |
| STANDARD-CHAR-P |
Returns true if character is of type standard-char; otherwise, returns false. |
(standard-char-p #\Space) => true |
[StandardCharP.java] |
| CHAR-UPCASE |
returns the uppercase character. |
(char-upcase #\a) => #\A |
[CharUpCase.java] |
| CHAR-DOWNCASE |
returns the lowercase character. |
(char-downcase #\a) => #\a |
[CharDownCase.java] |
| UPPER-CASE-P |
returns true if character is an uppercase character |
(upper-case-p #\A) => true |
[UpperCaseP.java] |
| LOWER-CASE-P |
returns true if character is a lowercase character |
(lower-case-p #\A) => false |
[LowerCaseP.java] |
| BOTH-CASE-P |
returns true if character is a character with case |
(both-case-p #\5) => false |
[BothCaseP.java] |
| CHAR-CODE |
char-code returns the code attribute of character |
(char-code #\$) => 36 |
[CharCode.java] |
| CHAR-INT |
Returns a non-negative integer encoding the character object. The manner in which the integer is computed is implementation-dependent. If character has no implementation-defined attributes, the results of char-int and char-code are the same. |
(char-int #\A) => 65 |
[CharInt.java] |
| CODE-CHAR |
Returns a character with the code attribute given by code. If no such character exists and one cannot be created, nil is returned. |
(code-char 65) => #\A |
[CodeChar.java] |
| CHAR-NAME |
Returns a string that is the name of the character, or nil if the character has no name. |
(char-name #\ ) => "Space" |
[CharName.java] |
| NAME-CHAR |
Returns the character object whose name is name (as determined by string-equal---i.e., lookup is not case sensitive). If such a character does not exist, nil is returned. |
(name-char 'space) => #\Space |
[NameChar.java] |