Node:SRFI-14 Predicates/Comparison, 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.

char-set? obj Scheme Procedure
Return #t if obj is a character set, #f otherwise.

char-set= cs1 ... Scheme Procedure
Return #t if all given character sets are equal.

char-set<= cs1 ... Scheme Procedure
Return #t if every character set csi is a subset of character set csi+1.

char-set-hash cs [bound] Scheme Procedure
Compute a hash value for the character set cs. If bound is given and not #f, it restricts the returned value to the range 0 ... bound - 1.