On this page:
char?
unicode-scalar-value?
char→unicode-scalar-value
unicode-scalar-value→char
4.2.1 Comparison
char=?
char<?
char>?
char≤?
char≥?
4.2.1.1 Case-Insensitive Comparison
char-ci=?
char-ci<?
char-ci>?
char-ci≤?
char-ci≥?
4.2.2 Contracts
char-in
4.2.3 Conversions
char-uppercase
char-lowercase
char-titlecase
char-foldcase
9.3.0.10

4.2 Characters🔗ℹ

procedure

(char? v) → boolean?

  v : any/c
Returns #true, if v is a character; #false, otherwise.

procedure

(unicode-scalar-value? v) → boolean?

  v : any/c
Returns #true, if v is a Unicode Scalar Value; #false, otherwise.

Returns a Unicode Scalar Value that represents c.

Returns the character represented by n.

4.2.1 Comparison🔗ℹ

procedure

(char=? c ...+) → boolean?

  c : char?
Returns #true, if the cs are equivalent; #false, otherwise.

procedure

(char<? c ...+) → boolean?

  c : char?
Returns #true, if the cs are ordered by increasing Scalar Values; #false, otherwise.

procedure

(char>? c ...+) → boolean?

  c : char?
Returns #true, if the cs are ordered by decreasing Scalar Values; #false, otherwise.

procedure

(char≤? c ...+) → boolean?

  c : char?
Returns #true, if the cs are ordered by nondecreasing Scalar Values; #false, otherwise.

procedure

(char≥? c ...+) → boolean?

  c : char?
Returns #true, if the cs are ordered by nonincreasing Scalar Values; #false, otherwise.

4.2.1.1 Case-Insensitive Comparison🔗ℹ

procedure

(char-ci=? c ...+) → boolean?

  c : char?
Like char=?, but case-insensitive.

procedure

(char-ci<? c ...+) → boolean?

  c : char?
Like char<?, but case-insensitive.

procedure

(char-ci>? c ...+) → boolean?

  c : char?
Like char>?, but case-insensitive.

procedure

(char-ci≤? c ...+) → boolean?

  c : char?
Like char≤?, but case-insensitive.

procedure

(char-ci≥? c ...+) → boolean?

  c : char?
Like char≥?, but case-insensitive.

4.2.2 Contracts🔗ℹ

procedure

(char-in c1 c2) → flat-contract?

  c1 : char?
  c2 : char?
Returns a flat contract that recognizes a character with a code point between that of c1 and c2, inclusive.

4.2.3 Conversions🔗ℹ

procedure

(char-uppercase c) → char?

  c : char?
Returns the uppercase character associated with c, as defined by Unicode. In the case that no such mapping is defined, returns c.

procedure

(char-lowercase c) → char?

  c : char?
Like char-uppercase, but for lowercase mapping.

procedure

(char-titlecase c) → char?

  c : char?
Like char-uppercase, but for titlecase mapping.

procedure

(char-foldcase c) → char?

  c : char?
Like char-uppercase, but for case-folding mapping.