• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Character Generators</title>
5<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../../index.html" title="Spirit 2.5.8">
8<link rel="up" href="../primitive_generators.html" title="Karma Generators">
9<link rel="prev" href="../primitive_generators.html" title="Karma Generators">
10<link rel="next" href="string.html" title="String Generators">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="../primitive_generators.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../primitive_generators.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="string.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h5 class="title">
27<a name="spirit.karma.quick_reference.primitive_generators.char"></a><a class="link" href="char.html" title="Character Generators">Character
28          Generators</a>
29</h5></div></div></div>
30<p>
31            See here for more information about <a class="link" href="../../reference/char.html" title="Char Generators">Character
32            Generators</a>.
33          </p>
34<div class="informaltable"><table class="table">
35<colgroup>
36<col>
37<col>
38<col>
39</colgroup>
40<thead><tr>
41<th>
42                    <p>
43                      Expression
44                    </p>
45                  </th>
46<th>
47                    <p>
48                      Attribute
49                    </p>
50                  </th>
51<th>
52                    <p>
53                      Description
54                    </p>
55                  </th>
56</tr></thead>
57<tbody>
58<tr>
59<td>
60                    <p>
61                      <a class="link" href="../../reference/char/char_generator.html" title="Character Generators (char_, lit)"><code class="computeroutput"><span class="identifier">ch</span></code></a>
62                    </p>
63                  </td>
64<td>
65                    <p>
66                      <code class="computeroutput"><span class="identifier">Unused</span></code>
67                    </p>
68                  </td>
69<td>
70                    <p>
71                      Generate <code class="computeroutput"><span class="identifier">ch</span></code>
72                    </p>
73                  </td>
74</tr>
75<tr>
76<td>
77                    <p>
78                      <a class="link" href="../../reference/char/char_generator.html" title="Character Generators (char_, lit)"><code class="computeroutput"><span class="identifier">lit</span><span class="special">(</span><span class="identifier">ch</span><span class="special">)</span></code></a>
79                    </p>
80                  </td>
81<td>
82                    <p>
83                      <code class="computeroutput"><span class="identifier">Unused</span></code>
84                    </p>
85                  </td>
86<td>
87                    <p>
88                      Generate <code class="computeroutput"><span class="identifier">ch</span></code>
89                    </p>
90                  </td>
91</tr>
92<tr>
93<td>
94                    <p>
95                      <a class="link" href="../../reference/char/char_generator.html" title="Character Generators (char_, lit)"><code class="computeroutput"><span class="identifier">char_</span></code></a>
96                    </p>
97                  </td>
98<td>
99                    <p>
100                      <code class="computeroutput"><span class="identifier">Ch</span></code>
101                    </p>
102                  </td>
103<td>
104                    <p>
105                      Generate character supplied as the attribute
106                    </p>
107                  </td>
108</tr>
109<tr>
110<td>
111                    <p>
112                      <a class="link" href="../../reference/char/char_generator.html" title="Character Generators (char_, lit)"><code class="computeroutput"><span class="identifier">char_</span><span class="special">(</span><span class="identifier">ch</span><span class="special">)</span></code></a>
113                    </p>
114                  </td>
115<td>
116                    <p>
117                      <code class="computeroutput"><span class="identifier">Ch</span></code>
118                    </p>
119                  </td>
120<td>
121                    <p>
122                      Generate <code class="computeroutput"><span class="identifier">ch</span></code>,
123                      if an attribute is supplied it must match
124                    </p>
125                  </td>
126</tr>
127<tr>
128<td>
129                    <p>
130                      <a class="link" href="../../reference/char/char_generator.html" title="Character Generators (char_, lit)"><code class="computeroutput"><span class="identifier">char_</span><span class="special">(</span><span class="string">"c"</span><span class="special">)</span></code></a>
131                    </p>
132                  </td>
133<td>
134                    <p>
135                      <code class="computeroutput"><span class="identifier">Ch</span></code>
136                    </p>
137                  </td>
138<td>
139                    <p>
140                      Generate a single char string literal, <code class="computeroutput"><span class="identifier">c</span></code>,
141                      if an attribute is supplied it must match
142                    </p>
143                  </td>
144</tr>
145<tr>
146<td>
147                    <p>
148                      <a class="link" href="../../reference/char/char_generator.html" title="Character Generators (char_, lit)"><code class="computeroutput"><span class="identifier">char_</span><span class="special">(</span><span class="identifier">ch</span><span class="special">,</span>
149                      <span class="identifier">ch2</span><span class="special">)</span></code></a>
150                    </p>
151                  </td>
152<td>
153                    <p>
154                      <code class="computeroutput"><span class="identifier">Ch</span></code>
155                    </p>
156                  </td>
157<td>
158                    <p>
159                      Generate the character supplied as the attribute, if it belongs
160                      to the character range from <code class="computeroutput"><span class="identifier">ch</span></code>
161                      to <code class="computeroutput"><span class="identifier">ch2</span></code>
162                    </p>
163                  </td>
164</tr>
165<tr>
166<td>
167                    <p>
168                      <a class="link" href="../../reference/char/char_generator.html" title="Character Generators (char_, lit)"><code class="computeroutput"><span class="identifier">char_</span><span class="special">(</span><span class="identifier">charset</span><span class="special">)</span></code></a>
169                    </p>
170                  </td>
171<td>
172                    <p>
173                      <code class="computeroutput"><span class="identifier">Ch</span></code>
174                    </p>
175                  </td>
176<td>
177                    <p>
178                      Generate the character supplied as the attribute, if it belongs
179                      to the character set <code class="computeroutput"><span class="identifier">charset</span></code>
180                    </p>
181                  </td>
182</tr>
183<tr>
184<td>
185                    <p>
186                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">alnum</span></code></a>
187                    </p>
188                  </td>
189<td>
190                    <p>
191                      <code class="computeroutput"><span class="identifier">Ch</span></code>
192                    </p>
193                  </td>
194<td>
195                    <p>
196                      Generate the character supplied as the attribute if it satisfies
197                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isalnum</span></code>
198                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
199                    </p>
200                  </td>
201</tr>
202<tr>
203<td>
204                    <p>
205                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">alpha</span></code></a>
206                    </p>
207                  </td>
208<td>
209                    <p>
210                      <code class="computeroutput"><span class="identifier">Ch</span></code>
211                    </p>
212                  </td>
213<td>
214                    <p>
215                      Generate the character supplied as the attribute if it satisfies
216                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isalpha</span></code>
217                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
218                    </p>
219                  </td>
220</tr>
221<tr>
222<td>
223                    <p>
224                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">blank</span></code></a>
225                    </p>
226                  </td>
227<td>
228                    <p>
229                      <code class="computeroutput"><span class="identifier">Ch</span></code>
230                    </p>
231                  </td>
232<td>
233                    <p>
234                      Generate the character supplied as the attribute if it satisfies
235                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isblank</span></code>
236                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
237                    </p>
238                  </td>
239</tr>
240<tr>
241<td>
242                    <p>
243                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">cntrl</span></code></a>
244                    </p>
245                  </td>
246<td>
247                    <p>
248                      <code class="computeroutput"><span class="identifier">Ch</span></code>
249                    </p>
250                  </td>
251<td>
252                    <p>
253                      Generate the character supplied as the attribute if it satisfies
254                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">iscntrl</span></code>
255                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
256                    </p>
257                  </td>
258</tr>
259<tr>
260<td>
261                    <p>
262                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">digit</span></code></a>
263                    </p>
264                  </td>
265<td>
266                    <p>
267                      <code class="computeroutput"><span class="identifier">Ch</span></code>
268                    </p>
269                  </td>
270<td>
271                    <p>
272                      Generate the character supplied as the attribute if it satisfies
273                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isdigit</span></code>
274                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
275                    </p>
276                  </td>
277</tr>
278<tr>
279<td>
280                    <p>
281                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">graph</span></code></a>
282                    </p>
283                  </td>
284<td>
285                    <p>
286                      <code class="computeroutput"><span class="identifier">Ch</span></code>
287                    </p>
288                  </td>
289<td>
290                    <p>
291                      Generate the character supplied as the attribute if it satisfies
292                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isgraph</span></code>
293                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
294                    </p>
295                  </td>
296</tr>
297<tr>
298<td>
299                    <p>
300                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">print</span></code></a>
301                    </p>
302                  </td>
303<td>
304                    <p>
305                      <code class="computeroutput"><span class="identifier">Ch</span></code>
306                    </p>
307                  </td>
308<td>
309                    <p>
310                      Generate the character supplied as the attribute if it satisfies
311                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isprint</span></code>
312                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
313                    </p>
314                  </td>
315</tr>
316<tr>
317<td>
318                    <p>
319                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">punct</span></code></a>
320                    </p>
321                  </td>
322<td>
323                    <p>
324                      <code class="computeroutput"><span class="identifier">Ch</span></code>
325                    </p>
326                  </td>
327<td>
328                    <p>
329                      Generate the character supplied as the attribute if it satisfies
330                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ispunct</span></code>
331                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
332                    </p>
333                  </td>
334</tr>
335<tr>
336<td>
337                    <p>
338                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">space</span></code></a>
339                    </p>
340                  </td>
341<td>
342                    <p>
343                      <code class="computeroutput"><span class="identifier">Ch</span></code>
344                    </p>
345                  </td>
346<td>
347                    <p>
348                      Generate the character supplied as the attribute if it satisfies
349                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isspace</span></code>,
350                      or a single space character in the character set defined by
351                      <code class="computeroutput"><span class="identifier">NS</span></code>
352                    </p>
353                  </td>
354</tr>
355<tr>
356<td>
357                    <p>
358                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">xdigit</span></code></a>
359                    </p>
360                  </td>
361<td>
362                    <p>
363                      <code class="computeroutput"><span class="identifier">Ch</span></code>
364                    </p>
365                  </td>
366<td>
367                    <p>
368                      Generate the character supplied as the attribute if it satisfies
369                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isxdigit</span></code>
370                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
371                    </p>
372                  </td>
373</tr>
374<tr>
375<td>
376                    <p>
377                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">lower</span></code></a>
378                    </p>
379                  </td>
380<td>
381                    <p>
382                      <code class="computeroutput"><span class="identifier">Ch</span></code>
383                    </p>
384                  </td>
385<td>
386                    <p>
387                      Generate the character supplied as the attribute if it satisfies
388                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">islower</span></code>
389                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
390                    </p>
391                  </td>
392</tr>
393<tr>
394<td>
395                    <p>
396                      <a class="link" href="../../reference/char/char_class.html" title="Character Classification Generators (alnum, digit, etc.)"><code class="computeroutput"><span class="identifier">upper</span></code></a>
397                    </p>
398                  </td>
399<td>
400                    <p>
401                      <code class="computeroutput"><span class="identifier">Ch</span></code>
402                    </p>
403                  </td>
404<td>
405                    <p>
406                      Generate the character supplied as the attribute if it satisfies
407                      the concept of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">isupper</span></code>
408                      in the character set defined by <code class="computeroutput"><span class="identifier">NS</span></code>
409                    </p>
410                  </td>
411</tr>
412</tbody>
413</table></div>
414</div>
415<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
416<td align="left"></td>
417<td align="right"><div class="copyright-footer">Copyright © 2001-2011 Joel de Guzman, Hartmut Kaiser<p>
418        Distributed under the Boost Software License, Version 1.0. (See accompanying
419        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
420      </p>
421</div></td>
422</tr></table>
423<hr>
424<div class="spirit-nav">
425<a accesskey="p" href="../primitive_generators.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../primitive_generators.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="string.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
426</div>
427</body>
428</html>
429