Next: , Previous: Querying Character Sets, Up: Character Sets


5.5.4.5 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 . rest
— C Function: scm_char_set_adjoin (cs, rest)

Add all character arguments to the first argument, which must be a character set.

— Scheme Procedure: char-set-delete cs . rest
— C Function: scm_char_set_delete (cs, rest)

Delete all character arguments from the first argument, which must be a character set.

— Scheme Procedure: char-set-adjoin! cs . rest
— C Function: scm_char_set_adjoin_x (cs, rest)

Add all character arguments to the first argument, which must be a character set.

— Scheme Procedure: char-set-delete! cs . rest
— C Function: scm_char_set_delete_x (cs, rest)

Delete all character arguments from the first argument, which must be a character set.

— Scheme Procedure: char-set-complement cs
— C Function: scm_char_set_complement (cs)

Return the complement of the character set cs.

— Scheme Procedure: char-set-union . rest
— C Function: scm_char_set_union (rest)

Return the union of all argument character sets.

— Scheme Procedure: char-set-intersection . rest
— C Function: scm_char_set_intersection (rest)

Return the intersection of all argument character sets.

— Scheme Procedure: char-set-difference cs1 . rest
— C Function: scm_char_set_difference (cs1, rest)

Return the difference of all argument character sets.

— Scheme Procedure: char-set-xor . rest
— C Function: scm_char_set_xor (rest)

Return the exclusive-or of all argument character sets.

— Scheme Procedure: char-set-diff+intersection cs1 . rest
— C Function: scm_char_set_diff_plus_intersection (cs1, rest)

Return the difference and the intersection of all argument character sets.

— Scheme Procedure: char-set-complement! cs
— C Function: scm_char_set_complement_x (cs)

Return the complement of the character set cs.

— Scheme Procedure: char-set-union! cs1 . rest
— C Function: scm_char_set_union_x (cs1, rest)

Return the union of all argument character sets.

— Scheme Procedure: char-set-intersection! cs1 . rest
— C Function: scm_char_set_intersection_x (cs1, rest)

Return the intersection of all argument character sets.

— Scheme Procedure: char-set-difference! cs1 . rest
— C Function: scm_char_set_difference_x (cs1, rest)

Return the difference of all argument character sets.

— Scheme Procedure: char-set-xor! cs1 . rest
— C Function: scm_char_set_xor_x (cs1, rest)

Return the exclusive-or of all argument character sets.

— Scheme Procedure: char-set-diff+intersection! cs1 cs2 . rest
— C Function: scm_char_set_diff_plus_intersection_x (cs1, cs2, rest)

Return the difference and the intersection of all argument character sets.