Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/doc/html/string_algo/quickref.html @ 29

Last change on this file since 29 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 39.1 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Quick Reference</title>
5<link rel="stylesheet" href="../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
7<link rel="start" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8<link rel="up" href="../string_algo.html" title="Chapter 14. Boost String Algorithms Library">
9<link rel="prev" href="usage.html" title="Usage">
10<link rel="next" href="design.html" title="Design Topics">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%">
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
15<td align="center"><a href="../../../index.htm">Home</a></td>
16<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="../../../people/people.htm">People</a></td>
18<td align="center"><a href="../../../more/faq.htm">FAQ</a></td>
19<td align="center"><a href="../../../more/index.htm">More</a></td>
20</table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="usage.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../string_algo.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="design.html"><img src="../images/next.png" alt="Next"></a>
24</div>
25<div class="section" lang="en">
26<div class="titlepage"><div><div><h2 class="title" style="clear: both">
27<a name="string_algo.quickref"></a>Quick Reference</h2></div></div></div>
28<div class="toc"><dl>
29<dt><span class="section"><a href="quickref.html#id1638678">Algorithms</a></span></dt>
30<dt><span class="section"><a href="quickref.html#id1640737">Finders and Formatters</a></span></dt>
31<dt><span class="section"><a href="quickref.html#id1641122">Iterators</a></span></dt>
32<dt><span class="section"><a href="quickref.html#id1641212">Classification</a></span></dt>
33</dl></div>
34<div class="section" lang="en">
35<div class="titlepage"><div><div><h3 class="title">
36<a name="id1638678"></a>Algorithms</h3></div></div></div>
37<div class="table">
38<a name="id1638684"></a><p class="title"><b>Table 14.1. Case Conversion</b></p>
39<table class="table" summary="Case Conversion">
40<colgroup>
41<col>
42<col>
43<col>
44</colgroup>
45<thead><tr>
46<th align="left">Algorithm name</th>
47<th align="left">Description</th>
48<th align="left">Functions</th>
49</tr></thead>
50<tbody>
51<tr>
52<td align="left"><code class="computeroutput">to_upper</code></td>
53<td align="left">Convert a string to upper case</td>
54<td align="left">
55                            <code class="computeroutput"><a href="../boost/algorithm/to_upper_copy.html" title="Function to_upper_copy">to_upper_copy()</a></code>
56                            <br>
57                            <code class="computeroutput"><a href="../boost/algorithm/to_upper.html" title="Function template to_upper">to_upper()</a></code>
58                        </td>
59</tr>
60<tr>
61<td align="left"><code class="computeroutput">to_lower</code></td>
62<td align="left">Convert a string to lower case</td>
63<td align="left">
64                            <code class="computeroutput"><a href="../boost/algorithm/to_lower_copy.html" title="Function to_lower_copy">to_lower_copy()</a></code>
65                            <br>
66                            <code class="computeroutput"><a href="../boost/algorithm/to_lower.html" title="Function template to_lower">to_lower()</a></code>
67                        </td>
68</tr>
69</tbody>
70</table>
71</div>
72<div class="table">
73<a name="id1638801"></a><p class="title"><b>Table 14.2. Trimming</b></p>
74<table class="table" summary="Trimming">
75<colgroup>
76<col>
77<col>
78<col>
79</colgroup>
80<thead><tr>
81<th align="left">Algorithm name</th>
82<th align="left">Description</th>
83<th align="left">Functions</th>
84</tr></thead>
85<tbody>
86<tr>
87<td align="left"><code class="computeroutput">trim_left</code></td>
88<td align="left">Remove leading spaces from a string</td>
89<td align="left">
90                            <code class="computeroutput"><a href="../boost/algorithm/trim_left_copy_if.html" title="Function trim_left_copy_if">trim_left_copy_if()</a></code>
91                            <br>
92                            <code class="computeroutput"><a href="../boost/algorithm/trim_left_if.html" title="Function template trim_left_if">trim_left_if()</a></code>
93                            <br>
94                            <code class="computeroutput"><a href="../boost/algorithm/trim_left_copy.html" title="Function template trim_left_copy">trim_left_copy()</a></code>
95                            <br>
96                            <code class="computeroutput"><a href="../boost/algorithm/trim_left.html" title="Function template trim_left">trim_left()</a></code>
97                        </td>
98</tr>
99<tr>
100<td align="left"><code class="computeroutput">trim_right</code></td>
101<td align="left">Remove trailing spaces from a string</td>
102<td align="left">
103                            <code class="computeroutput"><a href="../boost/algorithm/trim_right_copy_if.html" title="Function trim_right_copy_if">trim_right_copy_if()</a></code>
104                            <br>
105                            <code class="computeroutput"><a href="../boost/algorithm/trim_right_if.html" title="Function template trim_right_if">trim_right_if()</a></code>
106                            <br>
107                            <code class="computeroutput"><a href="../boost/algorithm/trim_right_copy.html" title="Function template trim_right_copy">trim_right_copy()</a></code>
108                            <br>
109                            <code class="computeroutput"><a href="../boost/algorithm/trim_right.html" title="Function template trim_right">trim_right()</a></code>
110                        </td>
111</tr>
112<tr>
113<td align="left"><code class="computeroutput">trim</code></td>
114<td align="left">Remove leading and trailing spaces from a string</td>
115<td align="left">
116                            <code class="computeroutput"><a href="../boost/algorithm/trim_copy_if.html" title="Function trim_copy_if">trim_copy_if()</a></code>
117                            <br>
118                            <code class="computeroutput"><a href="../boost/algorithm/trim_if.html" title="Function template trim_if">trim_if()</a></code>
119                            <br>
120                            <code class="computeroutput"><a href="../boost/algorithm/trim_copy.html" title="Function template trim_copy">trim_copy()</a></code>
121                            <br>
122                            <code class="computeroutput"><a href="../boost/algorithm/trim.html" title="Function template trim">trim()</a></code>
123                        </td>
124</tr>
125</tbody>
126</table>
127</div>
128<div class="table">
129<a name="id1639046"></a><p class="title"><b>Table 14.3. Predicates</b></p>
130<table class="table" summary="Predicates">
131<colgroup>
132<col>
133<col>
134<col>
135</colgroup>
136<thead><tr>
137<th align="left">Algorithm name</th>
138<th align="left">Description</th>
139<th align="left">Functions</th>
140</tr></thead>
141<tbody>
142<tr>
143<td align="left"><code class="computeroutput">starts_with</code></td>
144<td align="left">Check if a string is a prefix of the other one</td>
145<td align="left">
146                            <code class="computeroutput"><a href="../boost/algorithm/starts_with.html" title="Function starts_with">starts_with()</a></code>
147                            <br>
148                            <code class="computeroutput"><a href="../boost/algorithm/istarts_with.html" title="Function template istarts_with">istarts_with()</a></code>
149                        </td>
150</tr>
151<tr>
152<td align="left"><code class="computeroutput">ends_with</code></td>
153<td align="left">Check if a string is a suffix of the other one</td>
154<td align="left">
155                            <code class="computeroutput"><a href="../boost/algorithm/ends_with.html" title="Function ends_with">ends_with()</a></code>
156                            <br>
157                            <code class="computeroutput"><a href="../boost/algorithm/iends_with.html" title="Function template iends_with">iends_with()</a></code>
158                        </td>
159</tr>
160<tr>
161<td align="left"><code class="computeroutput">contains</code></td>
162<td align="left">Check if a string is contained of the other one</td>
163<td align="left">
164                            <code class="computeroutput"><a href="../boost/algorithm/contains.html" title="Function contains">contains()</a></code>
165                            <br>
166                            <code class="computeroutput"><a href="../boost/algorithm/icontains.html" title="Function template icontains">icontains()</a></code>
167                        </td>
168</tr>
169<tr>
170<td align="left"><code class="computeroutput">equals</code></td>
171<td align="left">Check if two strings are equal</td>
172<td align="left">
173                            <code class="computeroutput"><a href="../boost/algorithm/equals.html" title="Function equals">equals()</a></code>
174                            <br>
175                            <code class="computeroutput"><a href="../boost/algorithm/iequals.html" title="Function template iequals">iequals()</a></code>
176                        </td>
177</tr>
178<tr>
179<td align="left"><code class="computeroutput">lexicographical_compare</code></td>
180<td align="left">Check if a string is lexicographically less then another one</td>
181<td align="left">
182                            <code class="computeroutput"><a href="../boost/algorithm/lexicographical_compare.html" title="Function lexicographical_compare">lexicographical_compare()</a></code>
183                            <br>
184                            <code class="computeroutput"><a href="../boost/algorithm/ilexicographical_compare.html" title="Function template ilexicographical_compare">ilexicographical_compare()</a></code>
185                        </td>
186</tr>
187<tr>
188<td align="left"><code class="computeroutput">all</code></td>
189<td align="left">Check if all elements of a string satisfy the given predicate</td>
190<td align="left">
191                            <code class="computeroutput"><a href="../boost/algorithm/all.html" title="Function template all">all()</a></code>
192                        </td>
193</tr>
194</tbody>
195</table>
196</div>
197<div class="table">
198<a name="id1639321"></a><p class="title"><b>Table 14.4. Find algorithms</b></p>
199<table class="table" summary="Find algorithms">
200<colgroup>
201<col>
202<col>
203<col>
204</colgroup>
205<thead><tr>
206<th align="left">Algorithm name</th>
207<th align="left">Description</th>
208<th align="left">Functions</th>
209</tr></thead>
210<tbody>
211<tr>
212<td align="left">find_first</td>
213<td align="left">Find the first occurrence of a string in the input</td>
214<td align="left">
215                            <code class="computeroutput"><a href="../boost/algorithm/find_first.html" title="Function template find_first">find_first()</a></code>
216                            <br>
217                            <code class="computeroutput"><a href="../boost/algorithm/ifind_first.html" title="Function template ifind_first">ifind_first()</a></code>
218                        </td>
219</tr>
220<tr>
221<td align="left">find_last</td>
222<td align="left">Find the last occurrence of a string in the input</td>
223<td align="left">
224                            <code class="computeroutput"><a href="../boost/algorithm/find_last.html" title="Function template find_last">find_last()</a></code>
225                            <br>
226                            <code class="computeroutput"><a href="../boost/algorithm/ifind_last.html" title="Function template ifind_last">ifind_last()</a></code>
227                        </td>
228</tr>
229<tr>
230<td align="left">find_nth</td>
231<td align="left">Find the nth (zero-indexed) occurrence of a string in the input</td>
232<td align="left">
233                            <code class="computeroutput"><a href="../boost/algorithm/find_nth.html" title="Function template find_nth">find_nth()</a></code>
234                            <br>
235                            <code class="computeroutput"><a href="../boost/algorithm/ifind_nth.html" title="Function template ifind_nth">ifind_nth()</a></code>
236                        </td>
237</tr>
238<tr>
239<td align="left">find_head</td>
240<td align="left">Retrieve the head of a string</td>
241<td align="left">
242                            <code class="computeroutput"><a href="../boost/algorithm/find_head.html" title="Function template find_head">find_head()</a></code>
243                        </td>
244</tr>
245<tr>
246<td align="left">find_tail</td>
247<td align="left">Retrieve the tail of a string</td>
248<td align="left">
249                            <code class="computeroutput"><a href="../boost/algorithm/find_tail.html" title="Function template find_tail">find_tail()</a></code>
250                        </td>
251</tr>
252<tr>
253<td align="left">find_token</td>
254<td align="left">Find first matching token in the string</td>
255<td align="left">
256                            <code class="computeroutput"><a href="../boost/algorithm/find_token.html" title="Function template find_token">find_token()</a></code>
257                        </td>
258</tr>
259<tr>
260<td align="left">find_regex</td>
261<td align="left">Use the regular expression to search the string</td>
262<td align="left">
263                            <code class="computeroutput"><a href="../boost/algorithm/find_regex.html" title="Function template find_regex">find_regex()</a></code>
264                        </td>
265</tr>
266<tr>
267<td align="left">find</td>
268<td align="left">Generic find algorithm</td>
269<td align="left">
270                            <code class="computeroutput"><a href="../boost/algorithm/find.html" title="Function template find">find()</a></code>
271                        </td>
272</tr>
273</tbody>
274</table>
275</div>
276<div class="table">
277<a name="id1639599"></a><p class="title"><b>Table 14.5. Erase/Replace</b></p>
278<table class="table" summary="Erase/Replace">
279<colgroup>
280<col>
281<col>
282<col>
283</colgroup>
284<thead><tr>
285<th align="left">Algorithm name</th>
286<th align="left">Description</th>
287<th align="left">Functions</th>
288</tr></thead>
289<tbody>
290<tr>
291<td align="left">replace/erase_first</td>
292<td align="left">Replace/Erase the first occurrence of a string in the input</td>
293<td align="left">
294                            <code class="computeroutput"><a href="../boost/algorithm/replace_first.html" title="Function template replace_first">replace_first()</a></code>
295                            <br>
296                            <code class="computeroutput"><a href="../boost/algorithm/replace_first_copy.html" title="Function replace_first_copy">replace_first_copy()</a></code>
297                            <br>
298                            <code class="computeroutput"><a href="../boost/algorithm/ireplace_first.html" title="Function template ireplace_first">ireplace_first()</a></code>
299                            <br>
300                            <code class="computeroutput"><a href="../boost/algorithm/ireplace_first_copy.html" title="Function ireplace_first_copy">ireplace_first_copy()</a></code>
301                            <br>                     
302                            <code class="computeroutput"><a href="../boost/algorithm/erase_first.html" title="Function template erase_first">erase_first()</a></code>
303                            <br>
304                            <code class="computeroutput"><a href="../boost/algorithm/erase_first_copy.html" title="Function erase_first_copy">erase_first_copy()</a></code>
305                            <br>
306                            <code class="computeroutput"><a href="../boost/algorithm/ierase_first.html" title="Function template ierase_first">ierase_first()</a></code>
307                            <br>
308                            <code class="computeroutput"><a href="../boost/algorithm/ierase_first_copy.html" title="Function ierase_first_copy">ierase_first_copy()</a></code>
309                        </td>
310</tr>
311<tr>
312<td align="left">replace/erase_last</td>
313<td align="left">Replace/Erase the last occurrence of a string in the input</td>
314<td align="left">
315                            <code class="computeroutput"><a href="../boost/algorithm/replace_last.html" title="Function template replace_last">replace_last()</a></code>
316                            <br>
317                            <code class="computeroutput"><a href="../boost/algorithm/replace_last_copy.html" title="Function replace_last_copy">replace_last_copy()</a></code>
318                            <br>
319                            <code class="computeroutput"><a href="../boost/algorithm/ireplace_last.html" title="Function template ireplace_last">ireplace_last()</a></code>
320                            <br>
321                            <code class="computeroutput"><a href="../boost/algorithm/ireplace_last_copy.html" title="Function ireplace_last_copy">ireplace_last_copy()</a></code>
322                            <br>                     
323                            <code class="computeroutput"><a href="../boost/algorithm/erase_last.html" title="Function template erase_last">erase_last()</a></code>
324                            <br>
325                            <code class="computeroutput"><a href="../boost/algorithm/erase_last_copy.html" title="Function erase_last_copy">erase_last_copy()</a></code>
326                            <br>
327                            <code class="computeroutput"><a href="../boost/algorithm/ierase_last.html" title="Function template ierase_last">ierase_last()</a></code>
328                            <br>
329                            <code class="computeroutput"><a href="../boost/algorithm/ierase_last_copy.html" title="Function ierase_last_copy">ierase_last_copy()</a></code>
330                        </td>
331</tr>
332<tr>
333<td align="left">replace/erase_nth</td>
334<td align="left">Replace/Erase the nth (zero-indexed) occurrence of a string in the input</td>
335<td align="left">
336                            <code class="computeroutput"><a href="../boost/algorithm/replace_nth.html" title="Function template replace_nth">replace_nth()</a></code>
337                            <br>
338                            <code class="computeroutput"><a href="../boost/algorithm/replace_nth_copy.html" title="Function replace_nth_copy">replace_nth_copy()</a></code>
339                            <br>
340                            <code class="computeroutput"><a href="../boost/algorithm/ireplace_nth.html" title="Function template ireplace_nth">ireplace_nth()</a></code>
341                            <br>
342                            <code class="computeroutput"><a href="../boost/algorithm/ireplace_nth_copy.html" title="Function ireplace_nth_copy">ireplace_nth_copy()</a></code>
343                            <br>                     
344                            <code class="computeroutput"><a href="../boost/algorithm/erase_nth.html" title="Function template erase_nth">erase_nth()</a></code>
345                            <br>
346                            <code class="computeroutput"><a href="../boost/algorithm/erase_nth_copy.html" title="Function erase_nth_copy">erase_nth_copy()</a></code>
347                            <br>
348                            <code class="computeroutput"><a href="../boost/algorithm/ierase_nth.html" title="Function template ierase_nth">ierase_nth()</a></code>
349                            <br>
350                            <code class="computeroutput"><a href="../boost/algorithm/ierase_nth_copy.html" title="Function ierase_nth_copy">ierase_nth_copy()</a></code>
351                        </td>
352</tr>
353<tr>
354<td align="left">replace/erase_all</td>
355<td align="left">Replace/Erase the all occurrences of a string in the input</td>
356<td align="left">
357                            <code class="computeroutput"><a href="../boost/algorithm/replace_all.html" title="Function template replace_all">replace_all()</a></code>
358                            <br>
359                            <code class="computeroutput"><a href="../boost/algorithm/replace_all_copy.html" title="Function replace_all_copy">replace_all_copy()</a></code>
360                            <br>
361                            <code class="computeroutput"><a href="../boost/algorithm/ireplace_all.html" title="Function template ireplace_all">ireplace_all()</a></code>
362                            <br>
363                            <code class="computeroutput"><a href="../boost/algorithm/ireplace_all_copy.html" title="Function ireplace_all_copy">ireplace_all_copy()</a></code>
364                            <br>                     
365                            <code class="computeroutput"><a href="../boost/algorithm/erase_all.html" title="Function template erase_all">erase_all()</a></code>
366                            <br>
367                            <code class="computeroutput"><a href="../boost/algorithm/erase_all_copy.html" title="Function erase_all_copy">erase_all_copy()</a></code>
368                            <br>
369                            <code class="computeroutput"><a href="../boost/algorithm/ierase_all.html" title="Function template ierase_all">ierase_all()</a></code>
370                            <br>
371                            <code class="computeroutput"><a href="../boost/algorithm/ierase_all_copy.html" title="Function ierase_all_copy">ierase_all_copy()</a></code>
372                        </td>
373</tr>
374<tr>
375<td align="left">replace/erase_head</td>
376<td align="left">Replace/Erase the head of the input</td>
377<td align="left">
378                            <code class="computeroutput"><a href="../boost/algorithm/replace_head.html" title="Function template replace_head">replace_head()</a></code>
379                            <br>
380                            <code class="computeroutput"><a href="../boost/algorithm/replace_head_copy.html" title="Function replace_head_copy">replace_head_copy()</a></code>
381                            <br>
382                            <code class="computeroutput"><a href="../boost/algorithm/erase_head.html" title="Function template erase_head">erase_head()</a></code>
383                            <br>
384                            <code class="computeroutput"><a href="../boost/algorithm/erase_head_copy.html" title="Function erase_head_copy">erase_head_copy()</a></code>
385                            <br>
386                        </td>
387</tr>
388<tr>
389<td align="left">replace/erase_tail</td>
390<td align="left">Replace/Erase the tail of the input</td>
391<td align="left">
392                            <code class="computeroutput"><a href="../boost/algorithm/replace_tail.html" title="Function template replace_tail">replace_tail()</a></code>
393                            <br>
394                            <code class="computeroutput"><a href="../boost/algorithm/replace_tail_copy.html" title="Function replace_tail_copy">replace_tail_copy()</a></code>
395                            <br>
396                            <code class="computeroutput"><a href="../boost/algorithm/erase_tail.html" title="Function template erase_tail">erase_tail()</a></code>
397                            <br>
398                            <code class="computeroutput"><a href="../boost/algorithm/erase_tail_copy.html" title="Function erase_tail_copy">erase_tail_copy()</a></code>
399                            <br>
400                        </td>
401</tr>
402<tr>
403<td align="left">replace/erase_regex</td>
404<td align="left">Replace/Erase a substring matching the given regular expression</td>
405<td align="left">
406                            <code class="computeroutput"><a href="../boost/algorithm/replace_regex.html" title="Function template replace_regex">replace_regex()</a></code>
407                            <br>
408                            <code class="computeroutput"><a href="../boost/algorithm/replace_regex_copy.html" title="Function replace_regex_copy">replace_regex_copy()</a></code>
409                            <br>
410                            <code class="computeroutput"><a href="../boost/algorithm/erase_regex.html" title="Function template erase_regex">erase_regex()</a></code>
411                            <br>
412                            <code class="computeroutput"><a href="../boost/algorithm/erase_regex_copy.html" title="Function erase_regex_copy">erase_regex_copy()</a></code>
413                            <br>
414                        </td>
415</tr>
416<tr>
417<td align="left">replace/erase_regex_all</td>
418<td align="left">Replace/Erase all substrings matching the given regular expression</td>
419<td align="left">
420                            <code class="computeroutput"><a href="../boost/algorithm/replace_all_regex.html" title="Function template replace_all_regex">replace_all_regex()</a></code>
421                            <br>
422                            <code class="computeroutput"><a href="../boost/algorithm/replace_all_regex_copy.html" title="Function replace_all_regex_copy">replace_all_regex_copy()</a></code>
423                            <br>
424                            <code class="computeroutput"><a href="../boost/algorithm/erase_all_regex.html" title="Function template erase_all_regex">erase_all_regex()</a></code>
425                            <br>
426                            <code class="computeroutput"><a href="../boost/algorithm/erase_all_regex_copy.html" title="Function erase_all_regex_copy">erase_all_regex_copy()</a></code>
427                            <br>
428                        </td>
429</tr>
430<tr>
431<td align="left">find_format</td>
432<td align="left">Generic replace algorithm</td>
433<td align="left">
434                            <code class="computeroutput"><a href="../boost/algorithm/find_format.html" title="Function template find_format">find_format()</a></code>
435                            <br>
436                            <code class="computeroutput"><a href="../boost/algorithm/find_format_copy.html" title="Function find_format_copy">find_format_copy()</a></code>
437                            <br>
438                            <code class="computeroutput"><a href="../boost/algorithm/find_format_all.html" title="Function template find_format_all">find_format_all()</a></code>
439                            <br>
440                            <code class="computeroutput"><a href="../boost/algorithm/find_format_all_copy.html" title="Function find_format_all_copy">find_format_all_copy()()</a></code>
441                        </td>
442</tr>
443</tbody>
444</table>
445</div>
446<div class="table">
447<a name="id1640479"></a><p class="title"><b>Table 14.6. Split</b></p>
448<table class="table" summary="Split">
449<colgroup>
450<col>
451<col>
452<col>
453</colgroup>
454<thead><tr>
455<th align="left">Algorithm name</th>
456<th align="left">Description</th>
457<th align="left">Functions</th>
458</tr></thead>
459<tbody>
460<tr>
461<td align="left">find_all</td>
462<td align="left">Find/Extract all matching substrings in the input</td>
463<td align="left">
464                            <code class="computeroutput"><a href="../boost/algorithm/find_all.html" title="Function template find_all">find_all()</a></code>
465                            <br>
466                            <code class="computeroutput"><a href="../boost/algorithm/ifind_all.html" title="Function template ifind_all">ifind_all()</a></code>
467                            <br>
468                            <code class="computeroutput"><a href="../boost/algorithm/find_all_regex.html" title="Function template find_all_regex">find_all_regex()</a></code>
469                        </td>
470</tr>
471<tr>
472<td align="left">split</td>
473<td align="left">Split input into parts</td>
474<td align="left">
475                            <code class="computeroutput"><a href="../id691162-bb.html" title="Function template split">split()</a></code>
476                            <br>
477                            <code class="computeroutput"><a href="../boost/algorithm/split_regex.html" title="Function template split_regex">split_regex()</a></code>
478                        </td>
479</tr>
480<tr>
481<td align="left">iter_find</td>
482<td align="left">Iteratively apply the finder to the input to find all matching substrings</td>
483<td align="left">
484                                                        <code class="computeroutput"><a href="../boost/algorithm/iter_find.html" title="Function template iter_find">iter_find()</a></code>
485                                                </td>
486</tr>
487<tr>
488<td align="left">iter_split</td>
489<td align="left">Use the finder to find matching substrings in the input and use them as separators to split the input into parts</td>
490<td align="left">
491                                                        <code class="computeroutput"><a href="../boost/algorithm/iter_split.html" title="Function template iter_split">iter_split()</a></code>
492                                                </td>
493</tr>
494</tbody>
495</table>
496</div>
497<div class="table">
498<a name="id1640654"></a><p class="title"><b>Table 14.7. Join</b></p>
499<table class="table" summary="Join">
500<colgroup>
501<col>
502<col>
503<col>
504</colgroup>
505<thead><tr>
506<th align="left">Algorithm name</th>
507<th align="left">Description</th>
508<th align="left">Functions</th>
509</tr></thead>
510<tbody>
511<tr>
512<td align="left">join</td>
513<td align="left">Join all elements in a container into a single string</td>
514<td align="left">
515                            <code class="computeroutput"><a href="../boost/algorithm/join.html" title="Function template join">join</a></code>
516                        </td>
517</tr>
518<tr>
519<td align="left">join_if</td>
520<td align="left">Join all elements in a container that satisfies the condition into a single string</td>
521<td align="left">
522                            <code class="computeroutput"><a href="../id1044106-bb.html" title="Function template join_if">join_if()</a></code>
523                        </td>
524</tr>
525</tbody>
526</table>
527</div>
528</div>
529<div class="section" lang="en">
530<div class="titlepage"><div><div><h3 class="title">
531<a name="id1640737"></a>Finders and Formatters</h3></div></div></div>
532<div class="table">
533<a name="id1640743"></a><p class="title"><b>Table 14.8. Finders</b></p>
534<table class="table" summary="Finders">
535<colgroup>
536<col>
537<col>
538<col>
539</colgroup>
540<thead><tr>
541<th align="left">Finder</th>
542<th align="left">Description</th>
543<th align="left">Generators</th>
544</tr></thead>
545<tbody>
546<tr>
547<td align="left">first_finder</td>
548<td align="left">Search for the first match of the string in an input</td>
549<td align="left">
550                            <code class="computeroutput"><a href="../boost/algorithm/first_finder.html" title="Function first_finder">first_finder()</a></code>
551                        </td>
552</tr>
553<tr>
554<td align="left">last_finder</td>
555<td align="left">Search for the last match of the string in an input</td>
556<td align="left">
557                            <code class="computeroutput"><a href="../boost/algorithm/last_finder.html" title="Function last_finder">last_finder()</a></code>
558                        </td>
559</tr>
560<tr>
561<td align="left">nth_finder</td>
562<td align="left">Search for the nth (zero-indexed) match of the string in an input</td>
563<td align="left">
564                            <code class="computeroutput"><a href="../boost/algorithm/nth_finder.html" title="Function nth_finder">nth_finder()</a></code>
565                        </td>
566</tr>
567<tr>
568<td align="left">head_finder</td>
569<td align="left">Retrieve the head of an input</td>
570<td align="left">
571                            <code class="computeroutput"><a href="../boost/algorithm/head_finder.html" title="Function head_finder">head_finder()</a></code>
572                        </td>
573</tr>
574<tr>
575<td align="left">tail_finder</td>
576<td align="left">Retrieve the tail of an input</td>
577<td align="left">
578                            <code class="computeroutput"><a href="../boost/algorithm/tail_finder.html" title="Function tail_finder">tail_finder()</a></code>
579                        </td>
580</tr>
581<tr>
582<td align="left">token_finder</td>
583<td align="left">Search for a matching token in an input</td>
584<td align="left">
585                            <code class="computeroutput"><a href="../boost/algorithm/token_finder.html" title="Function template token_finder">token_finder()</a></code>
586                        </td>
587</tr>
588<tr>
589<td align="left">range_finder</td>
590<td align="left">Do no search, always returns the given range</td>
591<td align="left">
592                            <code class="computeroutput"><a href="../boost/algorithm/range_finder.html" title="Function range_finder">range_finder()</a></code>
593                        </td>
594</tr>
595<tr>
596<td align="left">regex_finder</td>
597<td align="left">Search for a substring matching the given regex</td>
598<td align="left">
599                            <code class="computeroutput"><a href="../boost/algorithm/regex_finder.html" title="Function template regex_finder">regex_finder()</a></code>
600                        </td>
601</tr>
602</tbody>
603</table>
604</div>
605<div class="table">
606<a name="id1640981"></a><p class="title"><b>Table 14.9. Formatters</b></p>
607<table class="table" summary="Formatters">
608<colgroup>
609<col>
610<col>
611<col>
612</colgroup>
613<thead><tr>
614<th align="left">Formatter</th>
615<th align="left">Description</th>
616<th align="left">Generators</th>
617</tr></thead>
618<tbody>
619<tr>
620<td align="left">const_formatter</td>
621<td align="left">Constant formatter. Always return the specified string</td>
622<td align="left">
623                            <code class="computeroutput"><a href="../boost/algorithm/const_formatter.html" title="Function template const_formatter">const_formatter()</a></code>
624                        </td>
625</tr>
626<tr>
627<td align="left">identity_formatter</td>
628<td align="left">Identity formatter. Return unmodified input input</td>
629<td align="left">
630                            <code class="computeroutput"><a href="../boost/algorithm/identity_formatter.html" title="Function template identity_formatter">identity_formatter()</a></code>
631                        </td>
632</tr>
633<tr>
634<td align="left">empty_formatter</td>
635<td align="left">Null formatter. Always return an empty string</td>
636<td align="left">
637                            <code class="computeroutput"><a href="../boost/algorithm/empty_formatter.html" title="Function template empty_formatter">empty_formatter()</a></code>
638                        </td>
639</tr>
640<tr>
641<td align="left">regex_formatter</td>
642<td align="left">Regex formatter. Format regex match using the specification in the format string</td>
643<td align="left">
644                            <code class="computeroutput"><a href="../boost/algorithm/regex_formatter.html" title="Function template regex_formatter">regex_formatter()</a></code>
645                        </td>
646</tr>
647</tbody>
648</table>
649</div>
650</div>
651<div class="section" lang="en">
652<div class="titlepage"><div><div><h3 class="title">
653<a name="id1641122"></a>Iterators</h3></div></div></div>
654<div class="table">
655<a name="id1641127"></a><p class="title"><b>Table 14.10. Find Iterators</b></p>
656<table class="table" summary="Find Iterators">
657<colgroup>
658<col>
659<col>
660<col>
661</colgroup>
662<thead><tr>
663<th align="left">Iterator name</th>
664<th align="left">Description</th>
665<th align="left">Iterator class</th>
666</tr></thead>
667<tbody>
668<tr>
669<td align="left">find_iterator</td>
670<td align="left">Iterates through matching substrings in the input</td>
671<td align="left">
672                            <code class="computeroutput"><a href="../boost/algorithm/find_iterator.html" title="Class template find_iterator">find_iterator</a></code>
673                        </td>
674</tr>
675<tr>
676<td align="left">split_iterator</td>
677<td align="left">Iterates through gaps between matching substrings in the input</td>
678<td align="left">
679                            <code class="computeroutput"><a href="../boost/algorithm/split_iterator.html" title="Class template split_iterator">split_iterator</a></code>
680                        </td>
681</tr>
682</tbody>
683</table>
684</div>
685</div>
686<div class="section" lang="en">
687<div class="titlepage"><div><div><h3 class="title">
688<a name="id1641212"></a>Classification</h3></div></div></div>
689<div class="table">
690<a name="id1641218"></a><p class="title"><b>Table 14.11. Predicates</b></p>
691<table class="table" summary="Predicates">
692<colgroup>
693<col>
694<col>
695<col>
696</colgroup>
697<thead><tr>
698<th align="left">Predicate name</th>
699<th align="left">Description</th>
700<th align="left">Generator</th>
701</tr></thead>
702<tbody>
703<tr>
704<td align="left">is_classified</td>
705<td align="left">Generic <code class="computeroutput">ctype</code> mask based classification</td>
706<td align="left">
707                            <code class="computeroutput"><a href="../boost/algorithm/is_classified.html" title="Function is_classified">is_classified()</a></code>
708                        </td>
709</tr>
710<tr>
711<td align="left">is_space</td>
712<td align="left">Recognize spaces</td>
713<td align="left">
714                            <code class="computeroutput"><a href="../boost/algorithm/is_space.html" title="Function is_space">is_space()</a></code>
715                        </td>
716</tr>
717<tr>
718<td align="left">is_alnum</td>
719<td align="left">Recognize alphanumeric characters</td>
720<td align="left">
721                            <code class="computeroutput"><a href="../boost/algorithm/is_alnum.html" title="Function is_alnum">is_alnum()</a></code>
722                        </td>
723</tr>
724<tr>
725<td align="left">is_alpha</td>
726<td align="left">Recognize letters</td>
727<td align="left">
728                            <code class="computeroutput"><a href="../boost/algorithm/is_alpha.html" title="Function is_alpha">is_alpha()</a></code>
729                        </td>
730</tr>
731<tr>
732<td align="left">is_cntrl</td>
733<td align="left">Recognize control characters</td>
734<td align="left">
735                            <code class="computeroutput"><a href="../boost/algorithm/is_cntrl.html" title="Function is_cntrl">is_cntrl()</a></code>
736                        </td>
737</tr>
738<tr>
739<td align="left">is_digit</td>
740<td align="left">Recognize decimal digits</td>
741<td align="left">
742                            <code class="computeroutput"><a href="../boost/algorithm/is_digit.html" title="Function is_digit">is_digit()</a></code>
743                        </td>
744</tr>
745<tr>
746<td align="left">is_graph</td>
747<td align="left">Recognize graphical characters</td>
748<td align="left">
749                            <code class="computeroutput"><a href="../boost/algorithm/is_graph.html" title="Function is_graph">is_graph()</a></code>
750                        </td>
751</tr>
752<tr>
753<td align="left">is_lower</td>
754<td align="left">Recognize lower case characters</td>
755<td align="left">
756                            <code class="computeroutput"><a href="../boost/algorithm/is_lower.html" title="Function is_lower">is_lower()</a></code>
757                        </td>
758</tr>
759<tr>
760<td align="left">is_print</td>
761<td align="left">Recognize printable characters</td>
762<td align="left">
763                            <code class="computeroutput"><a href="../boost/algorithm/is_print.html" title="Function is_print">is_print()</a></code>
764                        </td>
765</tr>
766<tr>
767<td align="left">is_punct</td>
768<td align="left">Recognize punctuation characters</td>
769<td align="left">
770                            <code class="computeroutput"><a href="../boost/algorithm/is_punct.html" title="Function is_punct">is_punct()</a></code>
771                        </td>
772</tr>
773<tr>
774<td align="left">is_upper</td>
775<td align="left">Recognize uppercase characters</td>
776<td align="left">
777                            <code class="computeroutput"><a href="../boost/algorithm/is_upper.html" title="Function is_upper">is_upper()</a></code>
778                        </td>
779</tr>
780<tr>
781<td align="left">is_xdigit</td>
782<td align="left">Recognize hexadecimal digits</td>
783<td align="left">
784                            <code class="computeroutput"><a href="../boost/algorithm/is_xdigit.html" title="Function is_xdigit">is_xdigit()</a></code>
785                        </td>
786</tr>
787</tbody>
788</table>
789</div>
790</div>
791</div>
792<table width="100%"><tr>
793<td align="left"><small><p>Last revised: June 01, 2007 at 13:50:51 GMT</p></small></td>
794<td align="right"><small>Copyright © 2002-2004 Pavol Droba</small></td>
795</tr></table>
796<hr>
797<div class="spirit-nav">
798<a accesskey="p" href="usage.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../string_algo.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="design.html"><img src="../images/next.png" alt="Next"></a>
799</div>
800</body>
801</html>
Note: See TracBrowser for help on using the repository browser.