Next: , Previous: , Up: built-in   [Contents][Index]


6.7 Type of character values

Core Type: <char>
Parent Type: <top>

Type of character values.

Constructor on <char>: <char> type-constructor {fx <non-negative-fixnum>}

The constructor is integer->char.

(new <char> 65)         ⇒ #\A
Type predicate on <char>: <boolean> type-predicate obj

The type predicate is char?. Return #t if obj is a character object; otherwise return #f.

(is-a? #\A <char>)      ⇒ #t
(is-a? 123 <char>)      ⇒ #f
Hash function on <char>: <non-negative-fixnum> hash-function ch

The hash function is char-hash.

(hash #\A)      ⇒ 65

Methods

Method on <char>: <string> string this

Apply string to the instance.

(.string #\A)   ⇒ "A"
Method on <char>: <non-negative-fixnum> integer this

Apply char->integer to the instance.

(.integer #\A)  ⇒ 65
Method on <char>: <non-negative-fixnum> fixnum this

Apply char->fixnum to the instance.

(.fixnum #\A)   ⇒ 65
Method on <char>: <boolean> = this {ch0 <char>} {ch <char>} …

Apply char=? to the arguments and return its return value.

Method on <char>: <boolean> != this {ch0 <char>} {ch <char>} …

Apply char!=? to the arguments and return its return value.

Method on <char>: <boolean> < this {ch0 <char>} {ch <char>} …

Apply char<? to the arguments and return its return value.

Method on <char>: <boolean> > this {ch0 <char>} {ch <char>} …

Apply char>? to the arguments and return its return value.

Method on <char>: <boolean> <= this {ch0 <char>} {ch <char>} …

Apply char<=? to the arguments and return its return value.

Method on <char>: <boolean> >= this {ch0 <char>} {ch <char>} …

Apply char>=? to the arguments and return its return value.

Method on <char>: <boolean> ci= this {ch0 <char>} {ch <char>} …

Apply char-ci=? to the arguments and return its return value.

Method on <char>: <boolean> ci!= this {ch0 <char>} {ch <char>} …

Apply char-ci!=? to the arguments and return its return value.

Method on <char>: <boolean> ci< this {ch0 <char>} {ch <char>} …

Apply char-ci<? to the arguments and return its return value.

Method on <char>: <boolean> ci> this {ch0 <char>} {ch <char>} …

Apply char-ci>? to the arguments and return its return value.

Method on <char>: <boolean> ci<= this {ch0 <char>} {ch <char>} …

Apply char-ci<=? to the arguments and return its return value.

Method on <char>: <boolean> ci>= this {ch0 <char>} {ch <char>} …

Apply char-ci>=? to the arguments and return its return value.

Method on <char>: <char> min this {ch <char>} …

Apply chmin to the arguments and return its return value.

Method on <char>: <char> max this {ch <char>} …

Apply chmax to the arguments and return its return value.

Method on <char>: <char> downcase this

Apply char-downcase to the argument and return its return value.

Method on <char>: <char> foldcase this

Apply char-foldcase to the argument and return its return value.

Method on <char>: <char> titlecase this

Apply char-titlecase to the argument and return its return value.

Method on <char>: <char> upcase this

Apply char-upcase to the argument and return its return value.

Method on <char>: <symbol> general-category this

Apply char-general-category to the argument and return its return value.

Method on <char>: <boolean> alphabetic? this

Apply char-alphabetic? to the argument and return its return value.

Method on <char>: <boolean> lower-case? this

Apply char-lower-case? to the argument and return its return value.

Method on <char>: <boolean> numeric? this

Apply char-numeric? to the argument and return its return value.

Method on <char>: <boolean> title-case? this

Apply char-title-case? to the argument and return its return value.

Method on <char>: <boolean> upper-case? this

Apply char-upper-case? to the argument and return its return value.

Method on <char>: <boolean> whitespace? this

Apply char-whitespace? to the argument and return its return value.


Next: , Previous: , Up: built-in   [Contents][Index]