]> gitweb.factorcode.org Git - factor.git/blob - basis/unicode/categories/categories-docs.factor
Merge branch 'master' into experimental
[factor.git] / basis / unicode / categories / categories-docs.factor
1 ! Copyright (C) 2009 Daniel Ehrenberg
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax kernel ;
4 IN: unicode.categories
5
6 HELP: LETTER
7 { $class-description "The class of upper cased letters." } ;
8
9 HELP: Letter
10 { $class-description "The class of letters." } ;
11
12 HELP: alpha
13 { $class-description "The class of alphanumeric characters." } ;
14
15 HELP: blank
16 { $class-description "The class of whitespace characters." } ;
17
18 HELP: character
19 { $class-description "The class of pre-defined Unicode code points." } ;
20
21 HELP: control
22 { $class-description "The class of control characters." } ;
23
24 HELP: digit
25 { $class-description "The class of digits." } ;
26
27 HELP: letter
28 { $class-description "The class of lower-cased letters." } ;
29
30 HELP: printable
31 { $class-description "The class of characters which are printable, as opposed to being control or formatting characters." } ;
32
33 HELP: uncased
34 { $class-description "The class of letters which don't have a case." } ;
35
36 ARTICLE: "unicode.categories" "Character classes"
37 "The " { $vocab-link "unicode.categories" } " vocabulary implements predicates for determining if a code point has a particular property, for example being a lower cased letter. These should be used in preference to the " { $vocab-link "ascii" } " equivalents in most cases. Each character class has an associated predicate word."
38 { $subsection blank }
39 { $subsection blank? }
40 { $subsection letter }
41 { $subsection letter? }
42 { $subsection LETTER }
43 { $subsection LETTER? }
44 { $subsection Letter }
45 { $subsection Letter? }
46 { $subsection digit }
47 { $subsection digit? } 
48 { $subsection printable }
49 { $subsection printable? }
50 { $subsection alpha }
51 { $subsection alpha? }
52 { $subsection control }
53 { $subsection control? }
54 { $subsection uncased }
55 { $subsection uncased? }
56 { $subsection character }
57 { $subsection character? } ;
58
59 ABOUT: "unicode.categories"