• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 [/
2   Copyright 2006-2007 John Maddock.
3   Distributed under the Boost Software License, Version 1.0.
4   (See accompanying file LICENSE_1_0.txt or copy at
5   http://www.boost.org/LICENSE_1_0.txt).
6 ]
7 
8 
9 [section:character_classes Character Class Names]
10 
11 [section:std_char_classes Character Classes that are Always Supported]
12 
13 The following character class names are always supported by Boost.Regex:
14 
15 [table
16 [[Name] 	[POSIX-standard name] 	[Description]]
17 [[alnum] 	[Yes] 	[Any alpha-numeric character.]]
18 [[alpha] 	[Yes] 	[Any alphabetic character.]]
19 [[blank] 	[Yes] 	[Any whitespace character that is not a line separator.]]
20 [[cntrl] 	[Yes] 	[Any control character.]]
21 [[d] 	      [No] 	[Any decimal digit]]
22 [[digit] 	[Yes] 	[Any decimal digit.]]
23 [[graph] 	[Yes] 	[Any graphical character.]]
24 [[l] 	      [No] 	[Any lower case character.]]
25 [[lower] 	[Yes] 	[Any lower case character.]]
26 [[print] 	[Yes] 	[Any printable character.]]
27 [[punct] 	[Yes] 	[Any punctuation character.]]
28 [[s] 	      [No] 	[Any whitespace character.]]
29 [[space] 	[Yes] 	[Any whitespace character.]]
30 [[unicode] 	[No] 	[Any extended character whose code point is above 255 in value.]]
31 [[u] 	      [No] 	[Any upper case character.]]
32 [[upper] 	[Yes] 	[Any upper case character.]]
33 [[w] 	      [No] 	[Any word character (alphanumeric characters plus the underscore).]]
34 [[word] 	   [No] 	[Any word character (alphanumeric characters plus the underscore).]]
35 [[xdigit] 	[Yes] 	[Any hexadecimal digit character.]]
36 ]
37 
38 [endsect]
39 
40 [section:optional_char_class_names Character classes that are supported by Unicode Regular Expressions]
41 
42 The following character classes are only supported by Unicode Regular Expressions:
43 that is those that use the `u32regex` type.  The names used are the same as
44 those from Chapter 4 of the Unicode standard.
45 
46 [table
47 [[Short Name] 	[Long Name]]
48 [[ ]	[ASCII]]
49 [[ ]	[Any]]
50 [[ ]	[Assigned]]
51 [[C*] 	[Other]]
52 [[Cc] 	[Control]]
53 [[Cf] 	[Format]]
54 [[Cn] 	[Not Assigned]]
55 [[Co] 	[Private Use]]
56 [[Cs] 	[Surrogate]]
57 [[L*] 	[Letter]]
58 [[Ll] 	[Lowercase Letter]]
59 [[Lm] 	[Modifier Letter]]
60 [[Lo] 	[Other Letter]]
61 [[Lt] 	[Titlecase]]
62 [[Lu] 	[Uppercase Letter]]
63 [[M*] 	[Mark]]
64 [[Mc] 	[Spacing Combining Mark]]
65 [[Me] 	[Enclosing Mark]]
66 [[Mn] 	[Non-Spacing Mark]]
67 [[N*] 	[Number]]
68 [[Nd] 	[Decimal Digit Number]]
69 [[Nl] 	[Letter Number]]
70 [[No] 	[Other Number]]
71 [[P*] 	[Punctuation]]
72 [[Pc] 	[Connector Punctuation]]
73 [[Pd] 	[Dash Punctuation]]
74 [[Pe] 	[Close Punctuation]]
75 [[Pf] 	[Final Punctuation]]
76 [[Pi] 	[Initial Punctuation]]
77 [[Po] 	[Other Punctuation]]
78 [[Ps] 	[Open Punctuation]]
79 [[S*] 	[Symbol]]
80 [[Sc] 	[Currency Symbol]]
81 [[Sk] 	[Modifier Symbol]]
82 [[Sm] 	[Math Symbol]]
83 [[So] 	[Other Symbol]]
84 [[Z*] 	[Separator]]
85 [[Zl] 	[Line Separator]]
86 [[Zp] 	[Paragraph Separator]]
87 [[Zs] 	[Space Separator]]
88 ]
89 
90 [endsect]
91 [endsect]
92 
93