Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.

Next: , Previous: , Up: Character Sets   [Contents][Index]


6.6.4.4 Querying Character Sets

Access the elements and other information of a character set with these procedures.

Scheme Procedure: %char-set-dump cs

Returns an association list containing debugging information for cs. The association list has the following entries.

char-set

The char-set itself

len

The number of groups of contiguous code points the char-set contains

ranges

A list of lists where each sublist is a range of code points and their associated characters

The return value of this function cannot be relied upon to be consistent between versions of Guile and should not be used in code.

Scheme Procedure: char-set-size cs
C Function: scm_char_set_size (cs)

Return the number of elements in character set cs.

Scheme Procedure: char-set-count pred cs
C Function: scm_char_set_count (pred, cs)

Return the number of the elements int the character set cs which satisfy the predicate pred.

Scheme Procedure: char-set->list cs
C Function: scm_char_set_to_list (cs)

Return a list containing the elements of the character set cs.

Scheme Procedure: char-set->string cs
C Function: scm_char_set_to_string (cs)

Return a string containing the elements of the character set cs. The order in which the characters are placed in the string is not defined.

Scheme Procedure: char-set-contains? cs ch
C Function: scm_char_set_contains_p (cs, ch)

Return #t if the character ch is contained in the character set cs, or #f otherwise.

Scheme Procedure: char-set-every pred cs
C Function: scm_char_set_every (pred, cs)

Return a true value if every character in the character set cs satisfies the predicate pred.

Scheme Procedure: char-set-any pred cs
C Function: scm_char_set_any (pred, cs)

Return a true value if any character in the character set cs satisfies the predicate pred.


Next: , Previous: , Up: Character Sets   [Contents][Index]