[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.9 srfi-14 - Character-set library

Module: srfi-14

Implements the character set library defined in SRFI-14 (SRFI-14). Note that several basic character-set operations are Gauche's build-in functions. See section Character Set.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.9.1 Character-set constructors

Function: list->char-set char-list &optional base-cs
Function: list->char-set! char-list base-cs

[SRFI-14] Constructs a character set from a list of characters char-list. If base-cs is given, it must be a character set, and the characters in it are added to the result character set. List->char-set! is allowed, but not required, to reuse base-cs to store the result.

Function: string->char-set s &optional base-cs
Function: string->char-set! s base-cs

[SRFI-14] Like list->char-set and list->char-set!, but take a list of characters from a string s.

Function: char-set-filter pred char-set &optional base-cs
Function: char-set-filter! pred char-set base-cs

[SRFI-14] Returns a character set containing every character c in char-set such that (pred c) returns true. If a character set base-cs is given, its content is added to the result. The linear update version char-set-filter! is allowed, but not required, to modify base-cs to store the result.

Function: ucs-range->char-set lower upper &optional error? base-cs
Function: ucs-range->char-set! lower upper error? base-cs

[SRFI-14]

Function: integer-range->char-set lower upper &optional error? base-cs
Function: integer-range->char-set! lower upper error? base-cs
Function: ->char-set x

[SRFI-14]


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.9.2 Character-set comparison

Function: char-set= char-set1 …

[SRFI-14]

Function: char-set<= char-set1 …

[SRFI-14]

Function: char-set-hash char-set &optional bound

[SRFI-14]


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.9.3 Character-set iteration

Function: char-set-cursor char-set

[SRFI-14]

Function: char-set-ref char-set cursor

[SRFI-14]

Function: char-set-cursor-next char-set cursor

[SRFI-14]

Function: end-of-char-set? ccursor

[SRFI-14]

Function: char-set-fold kons knil char-set

[SRFI-14]

Function: char-set-unfold pred fun gen seed &optional base-char-set
Function: char-set-unfold! pred fun gen seed base-char-set

[SRFI-14]

Function: char-set-for-each proc char-set

[SRFI-14]

Function: char-set-map proc char-set

[SRFI-14]


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.9.4 Character-set query

Function: char-set-size char-set

[SRFI-14]

Function: char-set-count pred char-set

[SRFI-14]

Function: char-set->list char-set

[SRFI-14]

Function: char-set->string char-set

[SRFI-14]

Function: char-set-every pred char-set

[SRFI-14]

Function: char-set-any pred char-set

[SRFI-14]


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.9.5 Character-set algebra

Function: char-set-adjoin char-set char1 …
Function: char-set-adjoin! char-set char1 …

[SRFI-14] Returns a character set that adds char1 … to char-set.

Function: char-set-delete char-set char1 …
Function: char-set-delete! char-set char1 …

[SRFI-14]

Function: char-set-complement char-set
Function: char-set-complement! char-set

[SRFI-14]

Function: char-set-union char-set …
Function: char-set-union! char-set1 char-set2 …

[SRFI-14]

Function: char-set-intersection char-set …
Function: char-set-intersection! char-set1 char-set2 …

[SRFI-14]

Function: char-set-difference char-set1 char-set2 …
Function: char-set-difference! char-set1 char-set2 …

[SRFI-14]

Function: char-set-xor char-set …
Function: char-set-xor! char-set1 char-set2 …

[SRFI-14]

Function: char-set-diff+intersection char-set1 char-set2 …
Function: char-set-diff+intersection! char-set1 char-set2 char-set3 …

[SRFI-14]


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.9.6 Predefined character-set

Variable: char-set:letter

[SRFI-14]

Variable: char-set:blank

[SRFI-14]

Variable: char-set:iso-control

[SRFI-14]

Variable: char-set:digit
Variable: char-set:hex-digit

[SRFI-14]

Variable: char-set:graphic

[SRFI-14]

Variable: char-set:lower-case
Variable: char-set:upper-case
Variable: char-set:title-case

[SRFI-14]

Variable: char-set:printing

[SRFI-14]

Variable: char-set:punctuation

[SRFI-14]

Variable: char-set:whitespace

[SRFI-14]

Variable: char-set:symbol

[SRFI-14]

Variable: char-set:ascii

[SRFI-14]

Variable: char-set:empty

[SRFI-14]

Variable: char-set:full

[SRFI-14]


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by Shiro Kawai on October, 7 2008 using texi2html 1.78.