Go to the previous, next section.

Comparison of Characters

procedure: char=? char1 char2

procedure: char<? char1 char2

procedure: char>? char1 char2

procedure: char<=? char1 char2

procedure: char>=? char1 char2

procedure: char-ci=? char1 char2

procedure: char-ci<? char1 char2

procedure: char-ci>? char1 char2

procedure: char-ci<=? char1 char2

procedure: char-ci>=? char1 char2

Returns #t if the specified characters are have the appropriate order relationship to one another; otherwise returns #f. The -ci procedures don't distinguish uppercase and lowercase letters.

Character ordering follows these rules:

In addition, MIT Scheme orders those characters that satisfy char-standard? the same way that ASCII does. Specifically, all the digits precede all the uppercase letters, and all the upper-case letters precede all the lowercase letters.

Characters are ordered by first comparing their bucky bits part and then their code part. In particular, characters without bucky bits come before characters with bucky bits.

Go to the previous, next section.