This file is indexed.

/usr/share/doc/libucommon-dev/a00207_source.html is in libucommon-doc 3.2.0-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>UCommon: ucommon/string.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>ucommon/string.h</h1><a href="a00207.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2006-2010 David Sugar, Tycho Softworks.</span>
<a name="l00002"></a>00002 <span class="comment">//</span>
<a name="l00003"></a>00003 <span class="comment">// This file is part of GNU uCommon C++.</span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">// GNU uCommon C++ is free software: you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment">// it under the terms of the GNU Lesser General Public License as published </span>
<a name="l00007"></a>00007 <span class="comment">// by the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment">// (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment">//</span>
<a name="l00010"></a>00010 <span class="comment">// GNU uCommon C++ is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment">// GNU Lesser General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment">//</span>
<a name="l00015"></a>00015 <span class="comment">// You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00016"></a>00016 <span class="comment">// along with GNU uCommon C++.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00017"></a>00017 
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef _UCOMMON_STRING_H_</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define _UCOMMON_STRING_H_</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef _UCOMMON_MEMORY_H_</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="a00197.html" title="Private heaps, pools, and associations.">ucommon/memory.h</a>&gt;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#endif</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#ifndef _UCOMMON_TIMERS_H_</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="a00209.html" title="Realtime timers and timer queues.">ucommon/timers.h</a>&gt;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#endif</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#ifndef _UCOMMON_SOCKET_H_</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="a00205.html" title="Common socket class and address manipulation.">ucommon/socket.h</a>&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#endif</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00051"></a>00051 <span class="preprocessor">#include &lt;<a class="code" href="a00207.html" title="A common string class and character string support functions.">string.h</a>&gt;</span>
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;stdarg.h&gt;</span>
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="preprocessor">#ifdef  HAVE_DIRENT_H</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span><span class="preprocessor">#include &lt;dirent.h&gt;</span>
<a name="l00056"></a>00056 <span class="preprocessor">#endif</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00058"></a>00058 NAMESPACE_UCOMMON
<a name="l00059"></a>00059 
<a name="l00063"></a><a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da">00063</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a>;
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="keyword">class </span><a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>;
<a name="l00066"></a>00066 
<a name="l00077"></a><a class="code" href="a00157.html">00077</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string</a> : <span class="keyword">public</span> <a class="code" href="a00093.html" title="A common base class for all managed objects.">Object</a>
<a name="l00078"></a>00078 {
<a name="l00079"></a>00079 <span class="keyword">protected</span>:
<a name="l00080"></a>00080     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>;
<a name="l00081"></a>00081 
<a name="l00093"></a>00093 <span class="keyword">public</span>:
<a name="l00094"></a><a class="code" href="a00158.html">00094</a>     <span class="keyword">class </span>__EXPORT <a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">cstring</a> : <span class="keyword">public</span> <a class="code" href="a00043.html" title="A base class for reference counted objects.">CountedObject</a>
<a name="l00095"></a>00095     {
<a name="l00096"></a>00096     <span class="keyword">public</span>:
<a name="l00097"></a>00097 <span class="preprocessor">#pragma pack(1)</span>
<a name="l00098"></a><a class="code" href="a00158.html#ae59fd84ff5a0e89f8cabffceaade14ef">00098</a> <span class="preprocessor"></span>        <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> <a class="code" href="a00214.html#a8049d3aa4d2ad2df40e33d0104fe0c05" title="Template for max value of a type.">max</a>;  
<a name="l00099"></a><a class="code" href="a00158.html#af8f07a5a2279fc18aae1634093949431">00099</a>         <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> len;  
<a name="l00100"></a><a class="code" href="a00158.html#a03d0b879200c057fb96adba620685a2b">00100</a>         <span class="keywordtype">char</span> fill;      
<a name="l00101"></a><a class="code" href="a00158.html#a2cd129a51fe1d8b1a0a7f1b64468b370">00101</a>         <span class="keywordtype">char</span> text[1];   
<a name="l00102"></a>00102 <span class="preprocessor">#pragma pack()</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span>
<a name="l00109"></a>00109         <a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">cstring</a>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size);
<a name="l00110"></a>00110 
<a name="l00118"></a>00118         <a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">cstring</a>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size, <span class="keywordtype">char</span> fill);
<a name="l00119"></a>00119 
<a name="l00127"></a>00127         <span class="keywordtype">void</span> clear(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size);
<a name="l00128"></a>00128 
<a name="l00135"></a>00135         <span class="keywordtype">void</span> <span class="keyword">set</span>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset, <span class="keyword">const</span> <span class="keywordtype">char</span> *text, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size);
<a name="l00136"></a>00136 
<a name="l00141"></a>00141         <span class="keywordtype">void</span> <span class="keyword">set</span>(<span class="keyword">const</span> <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>&amp; format);
<a name="l00142"></a>00142 
<a name="l00147"></a>00147         <span class="keywordtype">void</span> <span class="keyword">set</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00148"></a>00148 
<a name="l00153"></a>00153         <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00154"></a>00154 
<a name="l00159"></a>00159         <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<span class="keyword">const</span> <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a> &amp;format);
<a name="l00160"></a>00160 
<a name="l00165"></a>00165         <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<span class="keywordtype">char</span> character);
<a name="l00166"></a>00166 
<a name="l00170"></a>00170         <span class="keywordtype">void</span> fix(<span class="keywordtype">void</span>);
<a name="l00171"></a>00171 
<a name="l00176"></a>00176         <span class="keywordtype">void</span> unfix(<span class="keywordtype">void</span>);
<a name="l00177"></a>00177 
<a name="l00183"></a>00183         <span class="keywordtype">void</span> inc(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> number);
<a name="l00184"></a>00184 
<a name="l00190"></a>00190         <span class="keywordtype">void</span> dec(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> number);
<a name="l00191"></a>00191     };
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 <span class="keyword">protected</span>:
<a name="l00194"></a><a class="code" href="a00157.html#a7a92b57d460d39969058ed68a6afbcfd">00194</a>     <a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">cstring</a> *str;  
<a name="l00202"></a>00202     <a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">cstring</a> *create(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size, <span class="keywordtype">char</span> fill = 0) <span class="keyword">const</span>;
<a name="l00203"></a>00203 
<a name="l00211"></a>00211     <span class="keyword">virtual</span> <span class="keywordtype">int</span> compare(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>) <span class="keyword">const</span>;
<a name="l00212"></a>00212 
<a name="l00218"></a>00218     <span class="keywordtype">bool</span> equal(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>) <span class="keyword">const</span>;
<a name="l00219"></a>00219 
<a name="l00224"></a>00224     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00043.html#ad09aabb51a3fa9d298db45849167ad8a" title="Increase reference count when retained.">retain</a>(<span class="keywordtype">void</span>);
<a name="l00225"></a>00225 
<a name="l00230"></a>00230     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00043.html#a682422b0a164087fb29452d1e5011438" title="Decrease reference count when released.">release</a>(<span class="keywordtype">void</span>);
<a name="l00231"></a>00231 
<a name="l00236"></a>00236     <span class="keyword">virtual</span> <a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">cstring</a> *c_copy(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00237"></a>00237 
<a name="l00244"></a>00244     <span class="keyword">virtual</span> <span class="keywordtype">void</span> cow(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size = 0);
<a name="l00245"></a>00245 
<a name="l00246"></a>00246     <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> getStringSize(<span class="keywordtype">void</span>);
<a name="l00247"></a>00247 
<a name="l00248"></a>00248 <span class="keyword">public</span>:
<a name="l00252"></a><a class="code" href="a00157.html#a0af2d44c841c0b7849967d0bd29226ac">00252</a>     <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> npos;
<a name="l00253"></a>00253 
<a name="l00257"></a>00257     <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string</a>();
<a name="l00258"></a>00258 
<a name="l00263"></a>00263     <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string</a>(<span class="keyword">const</span> <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>&amp; format);
<a name="l00264"></a>00264 
<a name="l00269"></a>00269     <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string</a>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size);
<a name="l00270"></a>00270 
<a name="l00276"></a>00276     <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string</a>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size, <span class="keywordtype">char</span> fill);
<a name="l00277"></a>00277 
<a name="l00284"></a>00284     <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string</a>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...) __PRINTF(3, 4);
<a name="l00285"></a>00285 
<a name="l00290"></a>00290     <span class="keywordtype">string</span>(const <span class="keywordtype">char</span> *text);
<a name="l00291"></a>00291 
<a name="l00298"></a>00298     <span class="keywordtype">string</span>(const <span class="keywordtype">char</span> *text, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size);
<a name="l00299"></a>00299 
<a name="l00306"></a>00306     <span class="keywordtype">string</span>(const <span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *end);
<a name="l00307"></a>00307 
<a name="l00313"></a>00313     <span class="keywordtype">string</span>(const <span class="keywordtype">string</span>&amp; existing);
<a name="l00314"></a>00314 
<a name="l00319"></a>00319     virtual ~<span class="keywordtype">string</span>();
<a name="l00320"></a>00320 
<a name="l00327"></a>00327     <span class="keywordtype">string</span> get(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size = 0) const;
<a name="l00328"></a>00328 
<a name="l00334"></a>00334     <span class="keywordtype">int</span> scanf(const <span class="keywordtype">char</span> *format, ...) __SCANF(2, 3);
<a name="l00335"></a>00335 
<a name="l00342"></a>00342     <span class="keywordtype">int</span> vscanf(const <span class="keywordtype">char</span> *format, va_list args) __SCANF(2, 0);
<a name="l00343"></a>00343 
<a name="l00349"></a>00349     <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> printf(const <span class="keywordtype">char</span> *format, ...) __PRINTF(2, 3);
<a name="l00350"></a>00350 
<a name="l00357"></a>00357     <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> vprintf(const <span class="keywordtype">char</span> *format, va_list args) __PRINTF(2, 0);
<a name="l00358"></a>00358 
<a name="l00363"></a>00363     <span class="keywordtype">char</span> *c_mem(<span class="keywordtype">void</span>) const;
<a name="l00364"></a>00364 
<a name="l00369"></a>00369     const <span class="keywordtype">char</span> *c_str(<span class="keywordtype">void</span>) const;
<a name="l00370"></a>00370 
<a name="l00376"></a>00376     virtual <span class="keywordtype">bool</span> resize(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size);
<a name="l00377"></a>00377 
<a name="l00382"></a>00382     <span class="keywordtype">void</span> set(const <span class="keywordtype">char</span> *text);
<a name="l00383"></a>00383 
<a name="l00388"></a>00388     <span class="keywordtype">void</span> set(const <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>&amp; format);
<a name="l00389"></a>00389 
<a name="l00397"></a>00397     <span class="keywordtype">void</span> set(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset, const <span class="keywordtype">char</span> *text, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size = 0);
<a name="l00398"></a>00398 
<a name="l00406"></a>00406     <span class="keywordtype">void</span> set(const <span class="keywordtype">char</span> *text, <span class="keywordtype">char</span> overflow, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size = 0);
<a name="l00407"></a>00407 
<a name="l00415"></a>00415     <span class="keywordtype">void</span> rset(const <span class="keywordtype">char</span> *text, <span class="keywordtype">char</span> overflow, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size = 0);
<a name="l00416"></a>00416 
<a name="l00421"></a>00421     <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(const <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>&amp; format);
<a name="l00422"></a>00422 
<a name="l00423"></a>00423 
<a name="l00428"></a>00428     <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(const <span class="keywordtype">char</span> *text);
<a name="l00429"></a>00429 
<a name="l00434"></a>00434     <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<span class="keywordtype">char</span> character);
<a name="l00435"></a>00435 
<a name="l00440"></a>00440     <span class="keywordtype">void</span> trim(const <span class="keywordtype">char</span> *list);
<a name="l00441"></a>00441 
<a name="l00446"></a>00446     <span class="keywordtype">void</span> chop(const <span class="keywordtype">char</span> *list);
<a name="l00447"></a>00447 
<a name="l00452"></a>00452     <span class="keywordtype">void</span> strip(const <span class="keywordtype">char</span> *list);
<a name="l00453"></a>00453 
<a name="l00459"></a>00459     <span class="keywordtype">bool</span> unquote(const <span class="keywordtype">char</span> *quote);
<a name="l00460"></a>00460 
<a name="l00466"></a>00466     <span class="keywordtype">void</span> cut(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size = 0);
<a name="l00467"></a>00467 
<a name="l00473"></a>00473     <span class="keywordtype">void</span> clear(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size = 0);
<a name="l00474"></a>00474 
<a name="l00478"></a>00478     <span class="keywordtype">void</span> clear(<span class="keywordtype">void</span>);
<a name="l00479"></a>00479 
<a name="l00483"></a>00483     <span class="keywordtype">void</span> upper(<span class="keywordtype">void</span>);
<a name="l00484"></a>00484 
<a name="l00488"></a>00488     <span class="keywordtype">void</span> lower(<span class="keywordtype">void</span>);
<a name="l00489"></a>00489 
<a name="l00495"></a>00495     <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> ccount(const <span class="keywordtype">char</span> *list) const;
<a name="l00496"></a>00496 
<a name="l00501"></a>00501     <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> count(<span class="keywordtype">void</span>) const;
<a name="l00502"></a>00502 
<a name="l00507"></a>00507     <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size(<span class="keywordtype">void</span>) const;
<a name="l00508"></a>00508 
<a name="l00518"></a>00518     <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset(const <span class="keywordtype">char</span> *<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>) const;
<a name="l00519"></a>00519 
<a name="l00525"></a>00525     <span class="keywordtype">char</span> at(<span class="keywordtype">int</span> position) const;
<a name="l00526"></a>00526 
<a name="l00532"></a>00532     const <span class="keywordtype">char</span> *last(const <span class="keywordtype">char</span> *list) const;
<a name="l00533"></a>00533 
<a name="l00539"></a>00539     const <span class="keywordtype">char</span> *first(const <span class="keywordtype">char</span> *list) const;
<a name="l00540"></a>00540 
<a name="l00545"></a>00545     const <span class="keywordtype">char</span> *begin(<span class="keywordtype">void</span>) const;
<a name="l00546"></a>00546 
<a name="l00551"></a>00551     const <span class="keywordtype">char</span> *end(<span class="keywordtype">void</span>) const;
<a name="l00552"></a>00552 
<a name="l00559"></a>00559     const <span class="keywordtype">char</span> *skip(const <span class="keywordtype">char</span> *list, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset = 0) const;
<a name="l00560"></a>00560 
<a name="l00568"></a>00568     const <span class="keywordtype">char</span> *rskip(const <span class="keywordtype">char</span> *list, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset = npos) const;
<a name="l00569"></a>00569 
<a name="l00576"></a>00576     const <span class="keywordtype">char</span> *find(const <span class="keywordtype">char</span> *list, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset = 0) const;
<a name="l00577"></a>00577 
<a name="l00584"></a>00584     const <span class="keywordtype">char</span> *rfind(const <span class="keywordtype">char</span> *list, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset = npos) const;
<a name="l00585"></a>00585 
<a name="l00591"></a>00591     <span class="keywordtype">void</span> split(const <span class="keywordtype">char</span> *<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>);
<a name="l00592"></a>00592 
<a name="l00598"></a>00598     <span class="keywordtype">void</span> split(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset);
<a name="l00599"></a>00599 
<a name="l00605"></a>00605     <span class="keywordtype">void</span> rsplit(const <span class="keywordtype">char</span> *pointer);
<a name="l00606"></a>00606 
<a name="l00612"></a>00612     <span class="keywordtype">void</span> rsplit(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> offset);
<a name="l00613"></a>00613 
<a name="l00619"></a>00619     const <span class="keywordtype">char</span> *chr(<span class="keywordtype">char</span> character) const;
<a name="l00620"></a>00620 
<a name="l00627"></a>00627     const <span class="keywordtype">char</span> *rchr(<span class="keywordtype">char</span> character) const;
<a name="l00628"></a>00628 
<a name="l00633"></a>00633     <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> len(<span class="keywordtype">void</span>);
<a name="l00634"></a>00634 
<a name="l00639"></a>00639     <span class="keywordtype">char</span> fill(<span class="keywordtype">void</span>);
<a name="l00640"></a>00640 
<a name="l00645"></a><a class="code" href="a00157.html#ab8b1f63b9186789f1eeea484038964de">00645</a>     inline operator const <span class="keywordtype">char</span> *()<span class="keyword"> const</span>
<a name="l00646"></a>00646 <span class="keyword">        </span>{<span class="keywordflow">return</span> c_str();};
<a name="l00647"></a>00647 
<a name="l00652"></a><a class="code" href="a00157.html#a625312e894a5f4d87e35dd9e962c310e">00652</a>     <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *operator*()<span class="keyword"> const</span>
<a name="l00653"></a>00653 <span class="keyword">        </span>{<span class="keywordflow">return</span> c_str();};
<a name="l00654"></a>00654 
<a name="l00659"></a>00659     <span class="keywordtype">bool</span> full(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00660"></a>00660 
<a name="l00667"></a>00667     <span class="keywordtype">string</span> operator()(<span class="keywordtype">int</span> offset, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size) <span class="keyword">const</span>;
<a name="l00668"></a>00668 
<a name="l00676"></a>00676     <span class="keyword">const</span> <span class="keywordtype">char</span> *operator()(<span class="keywordtype">int</span> offset) <span class="keyword">const</span>;
<a name="l00677"></a>00677 
<a name="l00683"></a>00683     <span class="keyword">const</span> <span class="keywordtype">char</span> operator[](<span class="keywordtype">int</span> offset) <span class="keyword">const</span>;
<a name="l00684"></a>00684 
<a name="l00689"></a>00689     <span class="keywordtype">bool</span> operator!() <span class="keyword">const</span>;
<a name="l00690"></a>00690 
<a name="l00695"></a>00695     operator bool() <span class="keyword">const</span>;
<a name="l00696"></a>00696 
<a name="l00702"></a>00702     <span class="keywordtype">string</span>&amp; operator^=(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00703"></a>00703 
<a name="l00709"></a>00709     <span class="keywordtype">string</span>&amp; operator^=(<span class="keyword">const</span> <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>&amp; format);
<a name="l00710"></a>00710 
<a name="l00716"></a>00716     <span class="keywordtype">string</span>&amp; operator^=(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00717"></a>00717 
<a name="l00723"></a>00723     <span class="keywordtype">string</span>&amp; operator+(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00724"></a>00724 
<a name="l00730"></a>00730     <span class="keywordtype">string</span>&amp; operator+(<span class="keyword">const</span> <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>&amp; format);
<a name="l00731"></a>00731 
<a name="l00738"></a>00738     <span class="keywordtype">string</span>&amp; operator&amp;(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00739"></a>00739 
<a name="l00746"></a>00746     <span class="keywordtype">string</span>&amp; operator&amp;(<span class="keyword">const</span> <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>&amp; format);
<a name="l00747"></a>00747 
<a name="l00754"></a>00754     <span class="keywordtype">string</span>&amp; operator=(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00755"></a>00755 
<a name="l00760"></a>00760     <span class="keywordtype">string</span>&amp; operator=(<span class="keyword">const</span> <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>&amp; format);
<a name="l00761"></a>00761 
<a name="l00766"></a>00766     <span class="keywordtype">string</span>&amp; operator=(<span class="keyword">const</span> <span class="keywordtype">char</span> *text);
<a name="l00767"></a>00767 
<a name="l00771"></a>00771     <span class="keywordtype">string</span>&amp; <a class="code" href="a00093.html#a68315d647b20f213075fe85566664d60" title="Increase retention operator.">operator++</a>(<span class="keywordtype">void</span>);
<a name="l00772"></a>00772 
<a name="l00777"></a>00777     <span class="keywordtype">string</span>&amp; operator+=(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> number);
<a name="l00778"></a>00778 
<a name="l00782"></a>00782     <span class="keywordtype">string</span>&amp; <a class="code" href="a00093.html#a1aee78510382e5609068a083f6c00fa0" title="Decrease retention operator.">operator--</a>(<span class="keywordtype">void</span>);
<a name="l00783"></a>00783 
<a name="l00788"></a>00788     <span class="keywordtype">string</span>&amp; operator-=(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> number);
<a name="l00789"></a>00789 
<a name="l00795"></a>00795     <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <span class="keywordtype">char</span> *text) <span class="keyword">const</span>;
<a name="l00796"></a>00796 
<a name="l00802"></a>00802     <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <span class="keywordtype">char</span> *text) <span class="keyword">const</span>;
<a name="l00803"></a>00803 
<a name="l00809"></a>00809     <span class="keywordtype">bool</span> operator&lt;(<span class="keyword">const</span> <span class="keywordtype">char</span> *text) <span class="keyword">const</span>;
<a name="l00810"></a>00810 
<a name="l00816"></a>00816     <span class="keywordtype">bool</span> operator&lt;=(<span class="keyword">const</span> <span class="keywordtype">char</span> *text) <span class="keyword">const</span>;
<a name="l00817"></a>00817 
<a name="l00823"></a>00823     <span class="keywordtype">bool</span> operator&gt;(<span class="keyword">const</span> <span class="keywordtype">char</span> *text) <span class="keyword">const</span>;
<a name="l00824"></a>00824 
<a name="l00830"></a>00830     <span class="keywordtype">bool</span> operator&gt;=(<span class="keyword">const</span> <span class="keywordtype">char</span> *text) <span class="keyword">const</span>;
<a name="l00831"></a>00831 
<a name="l00838"></a>00838     <span class="keyword">static</span> <span class="keywordtype">int</span> scanf(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...) __SCANF(2, 3);
<a name="l00839"></a>00839 
<a name="l00846"></a>00846     static <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> printf(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, const <span class="keywordtype">char</span> *format, ...) __PRINTF(2, 3);
<a name="l00847"></a>00847 
<a name="l00856"></a>00856     static <span class="keywordtype">int</span> read(<a class="code" href="a00151.html" title="A generic socket base class.">Socket</a>&amp; <a class="code" href="a00151.html" title="A generic socket base class.">socket</a>, <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00857"></a>00857     
<a name="l00864"></a>00864     static <span class="keywordtype">int</span> write(<a class="code" href="a00151.html" title="A generic socket base class.">Socket</a>&amp; socket, <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00865"></a>00865 
<a name="l00874"></a>00874     static <span class="keywordtype">int</span> read(FILE *file, <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00875"></a>00875 
<a name="l00882"></a>00882     static <span class="keywordtype">int</span> write(FILE *file, <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>); 
<a name="l00883"></a>00883 
<a name="l00892"></a>00892     static <span class="keywordtype">bool</span> getline(<a class="code" href="a00151.html" title="A generic socket base class.">Socket</a>&amp; socket, <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00893"></a>00893 
<a name="l00901"></a>00901     static <span class="keywordtype">bool</span> putline(<a class="code" href="a00151.html" title="A generic socket base class.">Socket</a>&amp; socket, <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00902"></a>00902 
<a name="l00911"></a>00911     static <span class="keywordtype">bool</span> getline(FILE *file, <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00912"></a>00912 
<a name="l00920"></a>00920     static <span class="keywordtype">bool</span> putline(FILE *file, <span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00921"></a>00921 
<a name="l00927"></a>00927     static <span class="keywordtype">void</span> <a class="code" href="a00214.html#a2771e465ec7aff905ba09b7225b532ef" title="Convenience function to swap objects.">swap</a>(<span class="keywordtype">string</span>&amp; object1, <span class="keywordtype">string</span>&amp; object2);
<a name="l00928"></a>00928     
<a name="l00933"></a>00933     static <span class="keywordtype">void</span> fix(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>);
<a name="l00934"></a>00934 
<a name="l00939"></a>00939     static <span class="keywordtype">void</span> lower(<span class="keywordtype">char</span> *text);
<a name="l00940"></a>00940     
<a name="l00945"></a>00945     static <span class="keywordtype">void</span> upper(<span class="keywordtype">char</span> *text);
<a name="l00946"></a>00946 
<a name="l00960"></a>00960     static <span class="keywordtype">char</span> *token(<span class="keywordtype">char</span> *text, <span class="keywordtype">char</span> **last, const <span class="keywordtype">char</span> *list, const <span class="keywordtype">char</span> *quote = NULL, const <span class="keywordtype">char</span> *end = NULL);
<a name="l00961"></a>00961 
<a name="l00968"></a>00968     static <span class="keywordtype">char</span> *skip(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list);
<a name="l00969"></a>00969 
<a name="l00976"></a>00976     static <span class="keywordtype">char</span> *rskip(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list);
<a name="l00977"></a>00977 
<a name="l00985"></a>00985     static <span class="keywordtype">char</span> *unquote(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *quote);
<a name="l00986"></a>00986 
<a name="l00994"></a>00994     static <span class="keywordtype">char</span> *rset(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size, const <span class="keywordtype">char</span> *text);
<a name="l00995"></a>00995     
<a name="l01004"></a>01004     static <span class="keywordtype">char</span> *set(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size, const <span class="keywordtype">char</span> *text);
<a name="l01005"></a>01005     
<a name="l01015"></a>01015     static <span class="keywordtype">char</span> *set(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size, const <span class="keywordtype">char</span> *text, <span class="keywordtype">size_t</span> <a class="code" href="a00214.html#a8049d3aa4d2ad2df40e33d0104fe0c05" title="Template for max value of a type.">max</a>);
<a name="l01016"></a>01016 
<a name="l01026"></a>01026     static <span class="keywordtype">char</span> *<a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size, const <span class="keywordtype">char</span> *text); 
<a name="l01027"></a>01027 
<a name="l01038"></a>01038     static <span class="keywordtype">char</span> *<a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size, const <span class="keywordtype">char</span> *text, <span class="keywordtype">size_t</span> max);
<a name="l01039"></a>01039     
<a name="l01047"></a>01047     static const <span class="keywordtype">char</span> *ifind(const <span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *key, const <span class="keywordtype">char</span> *optional);
<a name="l01048"></a>01048 
<a name="l01056"></a>01056     static const <span class="keywordtype">char</span> *find(const <span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *key, const <span class="keywordtype">char</span> *optional);
<a name="l01057"></a>01057 
<a name="l01063"></a>01063     static <span class="keywordtype">size_t</span> count(const <span class="keywordtype">char</span> *text);
<a name="l01064"></a>01064 
<a name="l01071"></a>01071     static <span class="keywordtype">int</span> compare(const <span class="keywordtype">char</span> *text1, const <span class="keywordtype">char</span> *text2);
<a name="l01072"></a>01072 
<a name="l01079"></a>01079     static <span class="keywordtype">bool</span> equal(const <span class="keywordtype">char</span> *text1, const <span class="keywordtype">char</span> *text2);
<a name="l01080"></a>01080 
<a name="l01088"></a>01088     static <span class="keywordtype">int</span> compare(const <span class="keywordtype">char</span> *text1, const <span class="keywordtype">char</span> *text2, <span class="keywordtype">size_t</span> size);
<a name="l01089"></a>01089 
<a name="l01097"></a>01097     static <span class="keywordtype">bool</span> equal(const <span class="keywordtype">char</span> *text1, const <span class="keywordtype">char</span> *text2, <span class="keywordtype">size_t</span> size);
<a name="l01098"></a>01098 
<a name="l01105"></a>01105     static <span class="keywordtype">int</span> case_compare(const <span class="keywordtype">char</span> *text1, const <span class="keywordtype">char</span> *text2);
<a name="l01106"></a>01106 
<a name="l01113"></a>01113     static <span class="keywordtype">bool</span> case_equal(const <span class="keywordtype">char</span> *text1, const <span class="keywordtype">char</span> *text2);
<a name="l01114"></a>01114 
<a name="l01122"></a>01122     static <span class="keywordtype">int</span> case_compare(const <span class="keywordtype">char</span> *text1, const <span class="keywordtype">char</span> *text2, <span class="keywordtype">size_t</span> size);
<a name="l01123"></a>01123 
<a name="l01131"></a>01131     static <span class="keywordtype">bool</span> case_equal(const <span class="keywordtype">char</span> *text1, const <span class="keywordtype">char</span> *text2, <span class="keywordtype">size_t</span> size);
<a name="l01132"></a>01132 
<a name="l01140"></a>01140     static <span class="keywordtype">char</span> *trim(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list); 
<a name="l01141"></a>01141 
<a name="l01149"></a>01149     static <span class="keywordtype">char</span> *chop(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list); 
<a name="l01150"></a>01150 
<a name="l01158"></a>01158     static <span class="keywordtype">char</span> *strip(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list);
<a name="l01159"></a>01159 
<a name="l01168"></a>01168     static <span class="keywordtype">char</span> *fill(<span class="keywordtype">char</span> *text, <span class="keywordtype">size_t</span> size, <span class="keywordtype">char</span> character);
<a name="l01169"></a>01169 
<a name="l01176"></a>01176     static <span class="keywordtype">unsigned</span> ccount(const <span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list);
<a name="l01177"></a>01177 
<a name="l01184"></a>01184     static <span class="keywordtype">char</span> *find(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list);
<a name="l01185"></a>01185 
<a name="l01192"></a>01192     static <span class="keywordtype">char</span> *rfind(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list);
<a name="l01193"></a>01193 
<a name="l01200"></a>01200     static <span class="keywordtype">char</span> *first(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list);
<a name="l01201"></a>01201 
<a name="l01208"></a>01208     static <span class="keywordtype">char</span> *last(<span class="keywordtype">char</span> *text, const <span class="keywordtype">char</span> *list);
<a name="l01209"></a>01209 
<a name="l01215"></a>01215     static <span class="keywordtype">char</span> *dup(const <span class="keywordtype">char</span> *text);
<a name="l01216"></a>01216 
<a name="l01230"></a><a class="code" href="a00157.html#a3fecc75d69f0067117d911366f2a70ff">01230</a>     inline static <span class="keywordtype">char</span> *token(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keywordtype">char</span> **last, const <span class="keywordtype">char</span> *list, const <span class="keywordtype">char</span> *quote = NULL, const <span class="keywordtype">char</span> *end = NULL)
<a name="l01231"></a>01231         {<span class="keywordflow">return</span> <a class="code" href="a00157.html#a3fecc75d69f0067117d911366f2a70ff" title="A thread-safe token parsing routine for strings objects.">token</a>(<span class="keywordtype">object</span>.c_mem(), last, list, quote, end);};
<a name="l01232"></a>01232 
<a name="l01240"></a><a class="code" href="a00157.html#a3e9cb99b79db65343ce80c4bc8d8d180">01240</a>     __SCANF(2,0) inline static <span class="keywordtype">int</span> vscanf(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, const <span class="keywordtype">char</span> *format, va_list args)
<a name="l01241"></a>01241         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.vscanf(format, args);}
<a name="l01242"></a>01242 
<a name="l01250"></a><a class="code" href="a00157.html#ac6019abde6e1cf2f8cef519118e4377e">01250</a>     __PRINTF(2,0) inline static <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> vprintf(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, const <span class="keywordtype">char</span> *format, va_list args)
<a name="l01251"></a>01251         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.vprintf(format, args);}
<a name="l01252"></a>01252 
<a name="l01258"></a><a class="code" href="a00157.html#a839af8523b65fd281b3543ef1b07e682">01258</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> len(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01259"></a>01259         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.len();};
<a name="l01260"></a>01260 
<a name="l01266"></a><a class="code" href="a00157.html#a3d71330c4c43f81fefff16a34e80e238">01266</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">char</span> *mem(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01267"></a>01267         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.c_mem();};
<a name="l01268"></a>01268 
<a name="l01274"></a><a class="code" href="a00157.html#aa2f09d3269b8b1ad3854d44f4b19814e">01274</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01275"></a>01275         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.size();};
<a name="l01276"></a>01276 
<a name="l01281"></a><a class="code" href="a00157.html#a172b969896e37448952b8a23430bc8ad">01281</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> clear(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01282"></a>01282         {<span class="keywordtype">object</span>.clear();};
<a name="l01283"></a>01283 
<a name="l01290"></a><a class="code" href="a00157.html#a80920de9660e9b27653e6dec100edea5">01290</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">unsigned</span> ccount(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *list)
<a name="l01291"></a>01291         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.ccount(list);};
<a name="l01292"></a>01292 
<a name="l01298"></a><a class="code" href="a00157.html#a1b2890a4687780bd45ce6f55aed2d5e2">01298</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">size_t</span> count(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01299"></a>01299         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.count();};
<a name="l01300"></a>01300 
<a name="l01305"></a><a class="code" href="a00157.html#a69cd72f91c8061b5ac251886fdd2fa83">01305</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> upper(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01306"></a>01306         {<span class="keywordtype">object</span>.upper();};
<a name="l01307"></a>01307 
<a name="l01312"></a><a class="code" href="a00157.html#a30971bce2fe90195cd8d55bf37a0f414">01312</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> lower(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01313"></a>01313         {<span class="keywordtype">object</span>.lower();};
<a name="l01314"></a>01314 
<a name="l01321"></a><a class="code" href="a00157.html#a74da1a4d21d6d0396d18d68c742c3958">01321</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> unquote(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *quote)
<a name="l01322"></a>01322         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.unquote(quote);};
<a name="l01323"></a>01323 
<a name="l01329"></a><a class="code" href="a00157.html#a7dc9202aedaac93ded5049262645cfb7">01329</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> trim(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *list)
<a name="l01330"></a>01330         {<span class="keywordtype">object</span>.trim(list);};
<a name="l01331"></a>01331 
<a name="l01337"></a><a class="code" href="a00157.html#a28b7b4b71317c892e4bbeca93282f2eb">01337</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> chop(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *list)
<a name="l01338"></a>01338         {<span class="keywordtype">object</span>.trim(list);};
<a name="l01339"></a>01339 
<a name="l01345"></a><a class="code" href="a00157.html#a211eacc0d0e10053b6999a6b785e4ad6">01345</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> strip(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *list)
<a name="l01346"></a>01346         {<span class="keywordtype">object</span>.trim(list);};
<a name="l01347"></a>01347 
<a name="l01354"></a><a class="code" href="a00157.html#a12a61ed0723d957637595acb5e15bec9">01354</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *find(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *list)
<a name="l01355"></a>01355         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.find(list);};
<a name="l01356"></a>01356 
<a name="l01363"></a><a class="code" href="a00157.html#a4cca9ae4b0bca6e9ea3b926f81bff62d">01363</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *rfind(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *list)
<a name="l01364"></a>01364         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.rfind(list);};
<a name="l01365"></a>01365 
<a name="l01372"></a><a class="code" href="a00157.html#a894215b9be0207fdca25f07a4b9b40a0">01372</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *first(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *list)
<a name="l01373"></a>01373         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.first(list);};
<a name="l01374"></a>01374 
<a name="l01381"></a><a class="code" href="a00157.html#a3b925974e7bad9a18bd497e95a885c38">01381</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *last(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> *list)
<a name="l01382"></a>01382         {<span class="keywordflow">return</span> <span class="keywordtype">object</span>.last(list);};
<a name="l01383"></a>01383 
<a name="l01390"></a><a class="code" href="a00157.html#aa781bb45c1b8ef351b389de4b516ea38">01390</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> tod(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keywordtype">char</span> **<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a> = NULL)
<a name="l01391"></a>01391         {<span class="keywordflow">return</span> strtod(mem(<span class="keywordtype">object</span>), <a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>);};
<a name="l01392"></a>01392 
<a name="l01399"></a><a class="code" href="a00157.html#a0c034e63e31b8e62963cbc06b6d0d88d">01399</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">long</span> tol(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>, <span class="keywordtype">char</span> **<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a> = NULL)
<a name="l01400"></a>01400         {<span class="keywordflow">return</span> strtol(mem(<span class="keywordtype">object</span>), <a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>, 0);};
<a name="l01401"></a>01401 
<a name="l01408"></a><a class="code" href="a00157.html#a822cdd4c6143e99611be8d1210006bd5">01408</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> tod(<span class="keyword">const</span> <span class="keywordtype">char</span> *text, <span class="keywordtype">char</span> **<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a> = NULL)
<a name="l01409"></a>01409         {<span class="keywordflow">return</span> strtod(text, <a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>);};
<a name="l01410"></a>01410 
<a name="l01417"></a><a class="code" href="a00157.html#a9b55558d88aebde766c7aed2fae0452d">01417</a>     <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">long</span> tol(<span class="keyword">const</span> <span class="keywordtype">char</span> *text, <span class="keywordtype">char</span> **<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a> = NULL)
<a name="l01418"></a>01418         {<span class="keywordflow">return</span> strtol(text, <a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>, 0);};
<a name="l01419"></a>01419 };
<a name="l01420"></a>01420 
<a name="l01428"></a><a class="code" href="a00082.html">01428</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00082.html" title="A string class that uses a cstring buffer that is fixed in memory.">memstring</a> : <span class="keyword">public</span> <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string</a>
<a name="l01429"></a>01429 {
<a name="l01430"></a>01430 <span class="keyword">public</span>:
<a name="l01431"></a>01431     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> header;
<a name="l01432"></a>01432 
<a name="l01433"></a>01433 <span class="keyword">private</span>:
<a name="l01434"></a>01434     <span class="keywordtype">bool</span> <a class="code" href="a00157.html#ae1ec514ce06d21738e14391297c2f54b" title="Resize and re-allocate string memory.">resize</a>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size);
<a name="l01435"></a>01435     <span class="keywordtype">void</span> <a class="code" href="a00157.html#ad17edfec944d3b7e98af4539acde1d89" title="Copy on write operation for cstring.">cow</a>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> adj = 0);
<a name="l01436"></a>01436     <span class="keywordtype">void</span> <a class="code" href="a00157.html#a7a4b1d5ffc0a57aba607580187a25ab1" title="Decrease retention of our reference counted cstring.">release</a>(<span class="keywordtype">void</span>);
<a name="l01437"></a>01437 
<a name="l01438"></a>01438 <span class="keyword">protected</span>:
<a name="l01439"></a>01439     <a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">cstring</a> *<a class="code" href="a00157.html#a242d8d0fba2f8bac7fdeb2a034d0e88e" title="Return cstring to use in copy constructors.">c_copy</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l01440"></a>01440 
<a name="l01441"></a>01441 <span class="keyword">public</span>:
<a name="l01446"></a><a class="code" href="a00082.html#aa5a9207b25a00f7f83b827dac97f534b">01446</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00157.html#ad23bb2435eeb254bbf9bbb7cca061416" title="Assign our string with the cstring of another object.">operator=</a>(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01447"></a>01447         {<span class="keyword">set</span>(<span class="keywordtype">object</span>.c_str());};
<a name="l01448"></a>01448 
<a name="l01453"></a><a class="code" href="a00082.html#a0574470a217e47864ecf6ca6b33290e8">01453</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00157.html#ad23bb2435eeb254bbf9bbb7cca061416" title="Assign our string with the cstring of another object.">operator=</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *text)
<a name="l01454"></a>01454         {<span class="keyword">set</span>(text);};
<a name="l01455"></a>01455 
<a name="l01462"></a>01462     <a class="code" href="a00082.html" title="A string class that uses a cstring buffer that is fixed in memory.">memstring</a>(<span class="keywordtype">void</span> *memory, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size, <span class="keywordtype">char</span> fill = 0);
<a name="l01463"></a>01463 
<a name="l01467"></a>01467     ~<a class="code" href="a00082.html" title="A string class that uses a cstring buffer that is fixed in memory.">memstring</a>();
<a name="l01468"></a>01468 
<a name="l01474"></a>01474     <span class="keyword">static</span> <a class="code" href="a00082.html" title="A string class that uses a cstring buffer that is fixed in memory.">memstring</a> *<a class="code" href="a00157.html#a9a50c9de9af2d5fc2ab286873890f222" title="Factory create a cstring object of specified size.">create</a>(<a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size, <span class="keywordtype">char</span> fill = 0);
<a name="l01475"></a>01475 
<a name="l01482"></a>01482     <span class="keyword">static</span> <a class="code" href="a00082.html" title="A string class that uses a cstring buffer that is fixed in memory.">memstring</a> *<a class="code" href="a00157.html#a9a50c9de9af2d5fc2ab286873890f222" title="Factory create a cstring object of specified size.">create</a>(<a class="code" href="a00081.html" title="A managed private heap for small allocations.">mempager</a> *<a class="code" href="a00102.html" title="Mempager managed type factory for pager pool objects.">pager</a>, <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> size, <span class="keywordtype">char</span> fill = 0);
<a name="l01483"></a>01483 };
<a name="l01484"></a>01484 
<a name="l01491"></a><a class="code" href="a00160.html">01491</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>
<a name="l01492"></a>01492 {
<a name="l01493"></a>01493 <span class="keyword">protected</span>:
<a name="l01494"></a>01494     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string</a>;
<a name="l01495"></a>01495     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">string::cstring</a>;
<a name="l01496"></a>01496 
<a name="l01497"></a>01497     <span class="keyword">virtual</span> ~<a class="code" href="a00160.html" title="A string conversion class for use as a base class in objects which can transform...">StringFormat</a>();
<a name="l01498"></a>01498 
<a name="l01505"></a>01505     <span class="keyword">virtual</span> <span class="keywordtype">void</span> put(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size) <span class="keyword">const</span> = 0;
<a name="l01506"></a>01506 
<a name="l01511"></a>01511     <span class="keyword">virtual</span> <a class="code" href="a00214.html#ab147df0377723db28a0d3ec1f419f2da" title="A convenience class for size of strings.">strsize_t</a> getStringSize(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
<a name="l01512"></a>01512 };
<a name="l01513"></a>01513 
<a name="l01514"></a>01514 
<a name="l01522"></a>01522 <span class="keyword">template</span>&lt;<span class="keywordtype">size_t</span> S&gt;
<a name="l01523"></a><a class="code" href="a00036.html">01523</a> <span class="keyword">class </span><a class="code" href="a00036.html" title="A template to create a character array that can be manipulated as a string.">charbuf</a>
<a name="l01524"></a>01524 {
<a name="l01525"></a>01525 <span class="keyword">private</span>:
<a name="l01526"></a>01526     <span class="keywordtype">char</span> buffer[S];
<a name="l01527"></a>01527 
<a name="l01528"></a>01528 <span class="keyword">public</span>:
<a name="l01532"></a><a class="code" href="a00036.html#ad842b599b7ee687973256e8a146c6931">01532</a>     <span class="keyword">inline</span> <a class="code" href="a00036.html" title="A template to create a character array that can be manipulated as a string.">charbuf</a>() 
<a name="l01533"></a>01533         {buffer[0] = 0;};
<a name="l01534"></a>01534 
<a name="l01540"></a><a class="code" href="a00036.html#af214eb61cb02a190d8b868b7aeafdf2a">01540</a>     <span class="keyword">inline</span> <a class="code" href="a00036.html" title="A template to create a character array that can be manipulated as a string.">charbuf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *text) 
<a name="l01541"></a>01541         {string::set(buffer, S, text);};
<a name="l01542"></a>01542 
<a name="l01547"></a><a class="code" href="a00036.html#aacf0ff6e8ca5701084148350a5a152ae">01547</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <span class="keywordtype">char</span> *text)
<a name="l01548"></a>01548         {string::set(buffer, S, text);};
<a name="l01549"></a>01549 
<a name="l01555"></a><a class="code" href="a00036.html#afdf2fa38edf84e4aa5496ae719b7fa34">01555</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> operator+=(<span class="keyword">const</span> <span class="keywordtype">char</span> *text)
<a name="l01556"></a>01556         {<a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">string::add</a>(buffer, S, text);};
<a name="l01557"></a>01557 
<a name="l01562"></a><a class="code" href="a00036.html#a3b953412a21aaccefe9d4847da402d0e">01562</a>     <span class="keyword">inline</span> operator bool()<span class="keyword"> const</span>
<a name="l01563"></a>01563 <span class="keyword">        </span>{<span class="keywordflow">return</span> buffer[0];};
<a name="l01564"></a>01564 
<a name="l01569"></a><a class="code" href="a00036.html#a5f74d8ab7dc014963b2ca7c1af884daa">01569</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!()<span class="keyword"> const</span>
<a name="l01570"></a>01570 <span class="keyword">        </span>{<span class="keywordflow">return</span> buffer[0] == 0;};   
<a name="l01571"></a>01571 
<a name="l01576"></a><a class="code" href="a00036.html#a4452addedebdcfb58df370348dc5554a">01576</a>     <span class="keyword">inline</span> operator char *()
<a name="l01577"></a>01577         {<span class="keywordflow">return</span> buffer;};
<a name="l01578"></a>01578 
<a name="l01583"></a><a class="code" href="a00036.html#a996d0b39fff9ecb8889ecc56da0ac6c7">01583</a>     <span class="keyword">inline</span> <span class="keywordtype">char</span> *operator*()
<a name="l01584"></a>01584         {<span class="keywordflow">return</span> buffer;};
<a name="l01585"></a>01585 
<a name="l01591"></a><a class="code" href="a00036.html#a41a1aa560a47bb03357d2e86b32cac73">01591</a>     <span class="keyword">inline</span> <span class="keywordtype">char</span> operator[](<span class="keywordtype">size_t</span> offset)<span class="keyword"> const</span>
<a name="l01592"></a>01592 <span class="keyword">        </span>{<span class="keywordflow">return</span> buffer[offset];};
<a name="l01593"></a>01593 
<a name="l01599"></a><a class="code" href="a00036.html#a6fb8dd3a2629d29fb4051fa9c65e2c4b">01599</a>     <span class="keyword">inline</span> <span class="keywordtype">char</span> *operator()(<span class="keywordtype">size_t</span> offset)
<a name="l01600"></a>01600         {<span class="keywordflow">return</span> buffer + offset;};
<a name="l01601"></a>01601 
<a name="l01606"></a><a class="code" href="a00036.html#af4fe653d12de12e2494756e377a62e9f">01606</a>     <span class="keyword">inline</span> <span class="keywordtype">size_t</span> size(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01607"></a>01607 <span class="keyword">        </span>{<span class="keywordflow">return</span> S;};
<a name="l01608"></a>01608 };
<a name="l01609"></a>01609 
<a name="l01620"></a>01620 <span class="keyword">template</span>&lt;str<span class="keywordtype">size_t</span> S&gt;
<a name="l01621"></a><a class="code" href="a00159.html">01621</a> <span class="keyword">class </span><a class="code" href="a00159.html" title="A string class that has a predefined string buffer.">stringbuf</a> : <span class="keyword">public</span> <a class="code" href="a00082.html" title="A string class that uses a cstring buffer that is fixed in memory.">memstring</a>
<a name="l01622"></a>01622 {
<a name="l01623"></a>01623 <span class="keyword">private</span>:
<a name="l01624"></a>01624     <span class="keywordtype">char</span> buffer[<span class="keyword">sizeof</span>(<a class="code" href="a00158.html" title="This is an internal class which contains the actual string data along with some control...">cstring</a>) + S];
<a name="l01625"></a>01625     
<a name="l01626"></a>01626 <span class="keyword">public</span>:
<a name="l01630"></a><a class="code" href="a00159.html#a8a8e8dcc78a68275448dbf18b46767d1">01630</a>     <span class="keyword">inline</span> <a class="code" href="a00159.html#a8a8e8dcc78a68275448dbf18b46767d1" title="Create an empty instance of a string buffer.">stringbuf</a>() : <a class="code" href="a00082.html" title="A string class that uses a cstring buffer that is fixed in memory.">memstring</a>(buffer, S) {};
<a name="l01631"></a>01631 
<a name="l01636"></a><a class="code" href="a00159.html#a2ce8b5bf24b4079901784a55ac57de60">01636</a>     <span class="keyword">inline</span> <a class="code" href="a00159.html#a2ce8b5bf24b4079901784a55ac57de60" title="Create a string buffer from a null terminated string.">stringbuf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *text) : <a class="code" href="a00082.html" title="A string class that uses a cstring buffer that is fixed in memory.">memstring</a>(buffer, S) {<span class="keyword">set</span>(text);};
<a name="l01637"></a>01637 
<a name="l01642"></a><a class="code" href="a00159.html#a3e92c96e44b3fc93d60f07ecfe7599b5">01642</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <span class="keywordtype">char</span> *text)
<a name="l01643"></a>01643         {<span class="keyword">set</span>(text);};
<a name="l01644"></a>01644 
<a name="l01649"></a><a class="code" href="a00159.html#ae702e26ed8b5d84c7ecc2bf05a2b5005">01649</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<span class="keywordtype">string</span>&amp; <span class="keywordtype">object</span>)
<a name="l01650"></a>01650         {<span class="keyword">set</span>(<span class="keywordtype">object</span>.c_str());}; 
<a name="l01651"></a>01651 };
<a name="l01652"></a>01652 
<a name="l01653"></a>01653 <span class="preprocessor">#if !defined(_MSWINDOWS_) &amp;&amp; !defined(__QNX__)</span>
<a name="l01654"></a>01654 <span class="preprocessor"></span>
<a name="l01661"></a><a class="code" href="a00214.html#aa7295db46dc899d662593334cc613565">01661</a> <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a00214.html#aa7295db46dc899d662593334cc613565" title="Convenience function for case insensitive null terminated string compare.">stricmp</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *string1, <span class="keyword">const</span> <span class="keywordtype">char</span> *string2)
<a name="l01662"></a>01662     {<span class="keywordflow">return</span> string::case_compare(string1, string2);}
<a name="l01663"></a>01663 
<a name="l01671"></a><a class="code" href="a00214.html#a921788aca36506dda3e809c8ed766bd2">01671</a> <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a00214.html#a921788aca36506dda3e809c8ed766bd2" title="Convenience function for case insensitive null terminated string compare.">strnicmp</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *string1, <span class="keyword">const</span> <span class="keywordtype">char</span> *string2, <span class="keywordtype">size_t</span> <a class="code" href="a00214.html#a8049d3aa4d2ad2df40e33d0104fe0c05" title="Template for max value of a type.">max</a>)
<a name="l01672"></a>01672     {<span class="keywordflow">return</span> string::case_compare(string1, string2, max);}
<a name="l01673"></a>01673 
<a name="l01674"></a>01674 <span class="preprocessor">#endif</span>
<a name="l01675"></a>01675 <span class="preprocessor"></span>
<a name="l01679"></a><a class="code" href="a00214.html#a374ce231b5a8b3d7a6ae8f00158261cb">01679</a> <span class="keyword">typedef</span> <span class="keywordtype">string</span> <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">string_t</a>;
<a name="l01680"></a>01680 
<a name="l01685"></a><a class="code" href="a00214.html#ad412a12981fa5ebe1b83ac1fb48585ef">01685</a> <span class="keyword">typedef</span> <span class="keywordtype">string</span> <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">String</a>;
<a name="l01686"></a>01686 
<a name="l01693"></a><a class="code" href="a00214.html#a5a538868e213fb709c68752abfd81ccd">01693</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="a00214.html#ae8329c8eceb3e760d48253f1c3386623" title="Compare two socket addresses to see if equal.">eq</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *s1, <span class="keywordtype">char</span> <span class="keyword">const</span> *s2)
<a name="l01694"></a>01694     {<span class="keywordflow">return</span> String::equal(s1, s2);}
<a name="l01695"></a>01695 
<a name="l01703"></a><a class="code" href="a00214.html#a9f9f30f18e91dc198e02f3fd04990333">01703</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="a00214.html#ae8329c8eceb3e760d48253f1c3386623" title="Compare two socket addresses to see if equal.">eq</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *s1, <span class="keywordtype">char</span> <span class="keyword">const</span> *s2, <span class="keywordtype">size_t</span> size)
<a name="l01704"></a>01704     {<span class="keywordflow">return</span> String::equal(s1, s2, size);}
<a name="l01705"></a>01705 
<a name="l01712"></a><a class="code" href="a00214.html#ae4100d6cb8b875b33ed3de8045c1205e">01712</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="a00214.html#ae8329c8eceb3e760d48253f1c3386623" title="Compare two socket addresses to see if equal.">eq</a>(<a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">String</a> &amp;s1, <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">String</a> &amp;s2)
<a name="l01713"></a>01713     {<span class="keywordflow">return</span> String::equal(s1.<a class="code" href="a00157.html#aeece9515d4c1ff248f2938a053f63592" title="Get character text buffer of string object.">c_str</a>(), s2.<a class="code" href="a00157.html#aeece9515d4c1ff248f2938a053f63592" title="Get character text buffer of string object.">c_str</a>());}
<a name="l01714"></a>01714 
<a name="l01722"></a><a class="code" href="a00214.html#a939694d1a80bae979f88d7e2b24de0b0">01722</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="a00214.html#a742db3229a0512ac26f85c592fc6bdfb" title="Compare two host addresses to see if equal.">ieq</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *s1, <span class="keywordtype">char</span> <span class="keyword">const</span> *s2)
<a name="l01723"></a>01723     {<span class="keywordflow">return</span> String::case_equal(s1, s2);}
<a name="l01724"></a>01724 
<a name="l01733"></a><a class="code" href="a00214.html#a3e83dcdc34a42190fc6bf18e98c1e28b">01733</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="a00214.html#a742db3229a0512ac26f85c592fc6bdfb" title="Compare two host addresses to see if equal.">ieq</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *s1, <span class="keywordtype">char</span> <span class="keyword">const</span> *s2, <span class="keywordtype">size_t</span> size)
<a name="l01734"></a>01734     {<span class="keywordflow">return</span> String::case_equal(s1, s2, size);}
<a name="l01735"></a>01735 
<a name="l01743"></a><a class="code" href="a00214.html#a336cf1a9fe0522e4d6101ca7078ca61a">01743</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="a00214.html#a742db3229a0512ac26f85c592fc6bdfb" title="Compare two host addresses to see if equal.">ieq</a>(<a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">String</a> &amp;s1, <a class="code" href="a00157.html" title="A copy-on-write string class that operates by reference count.">String</a> &amp;s2)
<a name="l01744"></a>01744     {<span class="keywordflow">return</span> String::case_equal(s1.<a class="code" href="a00157.html#aeece9515d4c1ff248f2938a053f63592" title="Get character text buffer of string object.">c_str</a>(), s2.<a class="code" href="a00157.html#aeece9515d4c1ff248f2938a053f63592" title="Get character text buffer of string object.">c_str</a>());}
<a name="l01745"></a>01745 
<a name="l01746"></a>01746 END_NAMESPACE
<a name="l01747"></a>01747 
<a name="l01748"></a>01748 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:01 2010 for UCommon by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>