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