Next: , Previous: SRFI-14 Character Set Data Type, Up: SRFI-14


39.12.3 Predicates/Comparison

Use these procedures for testing whether an object is a character set, or whether several character sets are equal or subsets of each other. char-set-hash can be used for calculating a hash value, maybe for usage in fast lookup procedures.

— Scheme Procedure: char-set? obj

Return #t if obj is a character set, #f otherwise.

— Scheme Procedure: char-set= [charsets ...]

Return #t if all given charsets are equal.

— Scheme Procedure: char-set<= [charsets ...]

Return #t if every character set csi is a subset of character set csi+1.

— Scheme Procedure: char-set-hash cs [bound]

Compute a hash value for the character set cs. If bound is given and non-zero, it restricts the returned value to the range 0 ... bound − 1.