unicode vocabulary - Factor Documentation (original) (raw)

unicode vocabulary
Factor handbook » Vocabulary index

Documentation
Unicode support

Metadata

Tags: text
Authors: Daniel Ehrenberg

Words

Predicate classes

Class Superclass
LETTER integer
Letter integer
alpha integer
blank integer
character integer
control integer
digit integer
letter integer
math integer
printable integer
uncased integer

Ordinary words

Word Stack effect
>case-fold ( string -- fold )
>graphemes ( str -- graphemes )
>lower ( string -- lower )
>title ( string -- title )
>upper ( string -- upper )
>words ( str -- words )
capitalize ( string -- title )
case-fold? ( string -- ? )
ch>lower ( ch -- lower )
ch>title ( ch -- title )
ch>upper ( ch -- upper )
char>name ( char -- name )
collation-key/nfd ( string -- key nfd )
count-graphemes ( str -- n )
first-grapheme ( entire-str start -- i )
first-grapheme-from ( start str -- i )
first-word ( str -- i )
first-word-from ( start str -- i )
last-grapheme ( str -- i )
last-grapheme-from ( end str -- i )
last-word ( str -- i )
last-word-from ( end str -- i )
lower? ( string -- ? )
name>char ( name -- char )
nfc ( string -- nfc )
nfd ( string -- nfd )
nfkc ( string -- nfkc )
nfkd ( string -- nfkd )
primary= ( str1 str2 -- ? )
quaternary= ( str1 str2 -- ? )
script-of ( char -- script )
secondary= ( str1 str2 -- ? )
sort-strings ( strings -- sorted )
string-append ( s1 s2 -- string )
string-reverse ( str -- rts )
string<=> ( str1 str2 -- <=> )
tertiary= ( str1 str2 -- ? )
title? ( string -- ? )
under-surrogate? ( ch -- ? )
unicode-supported ( -- value )
unicode-unsupported ( -- value )
unicode-version ( -- value )
upper-surrogate? ( ch -- ? )
upper? ( string -- ? )
word-break-at? ( i str -- ? )

Class predicate words

Word Stack effect
LETTER? ( object -- ? )
Letter? ( object -- ? )
alpha? ( object -- ? )
blank? ( object -- ? )
character? ( object -- ? )
control? ( object -- ? )
digit? ( object -- ? )
letter? ( object -- ? )
math? ( object -- ? )
printable? ( object -- ? )
uncased? ( object -- ? )

Files

resource:basis/unicode/unicode.factor
resource:basis/unicode/unicode-docs.factor

Metadata files

resource:basis/unicode/authors.txt
resource:basis/unicode/summary.txt
resource:basis/unicode/tags.txt

Children from resource:basis

Vocabulary Summary
unicode.breaks Unicode grapheme and word breaking
unicode.case Unicode case conversion
unicode.categories Parsing words used by Unicode implementation
unicode.collation Unicode string comparison and sorting (collation)
unicode.control-pictures
unicode.data Parsing Unicode data files
unicode.normalize Unicode string normalization
unicode.script Reads the UCD to get the script of a code point

Children from resource:extra

Vocabulary Summary
unicode.flags Unicode country flags