Next: , Previous: SRFI-14 Querying Character Sets, Up: SRFI-14


39.12.7 Character-Set Algebra

Character sets can be manipulated with the common set algebra operation, such as union, complement, intersection etc. All of these procedures provide side-effecting variants, which modify their character set argument(s).

— Scheme Procedure: char-set-adjoin cs [chars ...]
— Scheme Procedure: char-set-adjoin! cs [chars ...]

Return a new character set made by adding all chars to the character set cs.

— Scheme Procedure: char-set-delete cs [chars ...]
— Scheme Procedure: char-set-delete! cs [chars ...]

Return a new character set made by deleting all chars from character set cs.

— Scheme Procedure: char-set-complement cs
— Scheme Procedure: char-set-complement! cs

Return the complement of the character set cs.

— Scheme Procedure: char-set-union [charsets ...]
— Scheme Procedure: char-set-union! [charsets ...]

Return the union of all charsets.

— Scheme Procedure: char-set-intersection [charsets ...]
— Scheme Procedure: char-set-intersection! [charsets ...]

Return the intersection of all charsets.

— Scheme Procedure: char-set-difference cs1 [charsets ...]
— Scheme Procedure: char-set-difference! cs1 [charsets ...]

Return the difference of all charsets.

— Scheme Procedure: char-set-xor [charsets ...]
— Scheme Procedure: char-set-xor! [charsets ...]

Return the exclusive-or of all charsets.

— Scheme Procedure: char-set-diff+intersection cs1 [charsets ...]
— Scheme Procedure: char-set-diff+intersection! cs1 [charsets ...]

Return two values: the difference and the intersection of all charsets.