This file is indexed.

/usr/share/doc/ucommon-doc/html/a00725.html is in ucommon-doc 7.0.0-12.

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
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UCommon: ucommon::charbuf&lt; S &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">UCommon
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="a00566.html">ucommon</a></li><li class="navelem"><a class="el" href="a00725.html">charbuf</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">ucommon::charbuf&lt; S &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A copy-on-write string class that operates by reference count.  
 <a href="a00725.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00968_source.html">string.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1d360e9984c7598565254e00c2e1211a"><td class="memItemLeft" align="right" valign="top"><a id="a1d360e9984c7598565254e00c2e1211a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a1d360e9984c7598565254e00c2e1211a">charbuf</a> ()</td></tr>
<tr class="memdesc:a1d360e9984c7598565254e00c2e1211a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new character buffer with an empty string. <br /></td></tr>
<tr class="separator:a1d360e9984c7598565254e00c2e1211a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa52c0ad267c4089ddb9fa38bdb40a761"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#aa52c0ad267c4089ddb9fa38bdb40a761">charbuf</a> (const char *text)</td></tr>
<tr class="memdesc:aa52c0ad267c4089ddb9fa38bdb40a761"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a character buffer with assigned text.  <a href="#aa52c0ad267c4089ddb9fa38bdb40a761">More...</a><br /></td></tr>
<tr class="separator:aa52c0ad267c4089ddb9fa38bdb40a761"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36217a813d3c263f1212e8c1f94967bf"><td class="memItemLeft" align="right" valign="top"><a id="a36217a813d3c263f1212e8c1f94967bf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a36217a813d3c263f1212e8c1f94967bf">charbuf</a> (const <a class="el" href="a00725.html">charbuf</a> &amp;<a class="el" href="a00566.html#a9d0aa33290b08e0eeeffa9ed9cdd67db">copy</a>)</td></tr>
<tr class="memdesc:a36217a813d3c263f1212e8c1f94967bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
<tr class="separator:a36217a813d3c263f1212e8c1f94967bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a071e13b02e730d633837c5e808f6d484"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a071e13b02e730d633837c5e808f6d484">len</a> (void) const</td></tr>
<tr class="memdesc:a071e13b02e730d633837c5e808f6d484"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get current length of string.  <a href="#a071e13b02e730d633837c5e808f6d484">More...</a><br /></td></tr>
<tr class="separator:a071e13b02e730d633837c5e808f6d484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dff2bf8a7c11c5fad04e33b45366f2c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a4dff2bf8a7c11c5fad04e33b45366f2c">operator bool</a> () const</td></tr>
<tr class="memdesc:a4dff2bf8a7c11c5fad04e33b45366f2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test if data is contained in the object.  <a href="#a4dff2bf8a7c11c5fad04e33b45366f2c">More...</a><br /></td></tr>
<tr class="separator:a4dff2bf8a7c11c5fad04e33b45366f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ce0bac9580ec4355171059f7362f3a7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a2ce0bac9580ec4355171059f7362f3a7">operator char *</a> ()</td></tr>
<tr class="memdesc:a2ce0bac9580ec4355171059f7362f3a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get text by casting reference.  <a href="#a2ce0bac9580ec4355171059f7362f3a7">More...</a><br /></td></tr>
<tr class="separator:a2ce0bac9580ec4355171059f7362f3a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab48ee0f03a94e204d13caf4c5fe63f49"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#ab48ee0f03a94e204d13caf4c5fe63f49">operator!</a> () const</td></tr>
<tr class="memdesc:ab48ee0f03a94e204d13caf4c5fe63f49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test if the object is empty.  <a href="#ab48ee0f03a94e204d13caf4c5fe63f49">More...</a><br /></td></tr>
<tr class="separator:ab48ee0f03a94e204d13caf4c5fe63f49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e32a4df26719cdba1b57e19d79ba663"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a3e32a4df26719cdba1b57e19d79ba663">operator()</a> (size_t offset)</td></tr>
<tr class="memdesc:a3e32a4df26719cdba1b57e19d79ba663"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to an offset in the object by expression operator.  <a href="#a3e32a4df26719cdba1b57e19d79ba663">More...</a><br /></td></tr>
<tr class="separator:a3e32a4df26719cdba1b57e19d79ba663"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c52b028339f59db5ad404375d63cd44"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a1c52b028339f59db5ad404375d63cd44">operator*</a> ()</td></tr>
<tr class="memdesc:a1c52b028339f59db5ad404375d63cd44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get text by object pointer reference.  <a href="#a1c52b028339f59db5ad404375d63cd44">More...</a><br /></td></tr>
<tr class="separator:a1c52b028339f59db5ad404375d63cd44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52ef9cf9922d1cf3903dede00e001e5c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a52ef9cf9922d1cf3903dede00e001e5c">operator+=</a> (const char *text)</td></tr>
<tr class="memdesc:a52ef9cf9922d1cf3903dede00e001e5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Concatenate text into the object.  <a href="#a52ef9cf9922d1cf3903dede00e001e5c">More...</a><br /></td></tr>
<tr class="separator:a52ef9cf9922d1cf3903dede00e001e5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaa0c49de80a5663908d3d50aa72280e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#acaa0c49de80a5663908d3d50aa72280e">operator=</a> (const char *text)</td></tr>
<tr class="memdesc:acaa0c49de80a5663908d3d50aa72280e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign null terminated text to the object.  <a href="#acaa0c49de80a5663908d3d50aa72280e">More...</a><br /></td></tr>
<tr class="separator:acaa0c49de80a5663908d3d50aa72280e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d98c258137a87a7269450c482102d12"><td class="memItemLeft" align="right" valign="top">char &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a0d98c258137a87a7269450c482102d12">operator[]</a> (size_t offset) const</td></tr>
<tr class="memdesc:a0d98c258137a87a7269450c482102d12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Array operator to get a character from the object.  <a href="#a0d98c258137a87a7269450c482102d12">More...</a><br /></td></tr>
<tr class="separator:a0d98c258137a87a7269450c482102d12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46f0952aae526e1e0901dd3745e00feb"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00725.html#a46f0952aae526e1e0901dd3745e00feb">size</a> (void) const</td></tr>
<tr class="memdesc:a46f0952aae526e1e0901dd3745e00feb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get allocated size of the object.  <a href="#a46f0952aae526e1e0901dd3745e00feb">More...</a><br /></td></tr>
<tr class="separator:a46f0952aae526e1e0901dd3745e00feb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;size_t S&gt;<br />
class ucommon::charbuf&lt; S &gt;</h3>

<p>A copy-on-write string class that operates by reference count. </p>
<p>This string class anchors a counted object that is managed as a copy-on-write instance of the string data. This means that multiple instances of the string class can refer to the same string in memory if it has not been modifed, which reduces heap allocation. The string class offers functions to manipulate both the string object, and generic safe string functions to manipulate ordinary null terminated character arrays directly in memory. </p><dl class="section author"><dt>Author</dt><dd>David Sugar <a href="#" onclick="location.href='mai'+'lto:'+'dyf'+'et'+'@gn'+'ut'+'ele'+'ph'+'ony'+'.o'+'rg'; return false;">dyfet<span style="display: none;">.nosp@m.</span>@gnu<span style="display: none;">.nosp@m.</span>telep<span style="display: none;">.nosp@m.</span>hony<span style="display: none;">.nosp@m.</span>.org</a> A string class that uses a cstring buffer that is fixed in memory. This allows one to manipulate a fixed buffer of text in memory through the string class. The size of the memory used must include space for the overhead() size needed for the cstring object control data. </dd>
<dd>
David Sugar <a href="#" onclick="location.href='mai'+'lto:'+'dyf'+'et'+'@gn'+'ut'+'ele'+'ph'+'ony'+'.o'+'rg'; return false;">dyfet<span style="display: none;">.nosp@m.</span>@gnu<span style="display: none;">.nosp@m.</span>telep<span style="display: none;">.nosp@m.</span>hony<span style="display: none;">.nosp@m.</span>.org</a> A template to create a character array that can be manipulated as a string. This is a mini string/stringbuf class that supports a subset of functionality but does not require a complex supporting object. Like stringbuf, this can be used to create local string variables. </dd>
<dd>
David Sugar <a href="#" onclick="location.href='mai'+'lto:'+'dyf'+'et'+'@gn'+'ut'+'ele'+'ph'+'ony'+'.o'+'rg'; return false;">dyfet<span style="display: none;">.nosp@m.</span>@gnu<span style="display: none;">.nosp@m.</span>telep<span style="display: none;">.nosp@m.</span>hony<span style="display: none;">.nosp@m.</span>.org</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01459">1459</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa52c0ad267c4089ddb9fa38bdb40a761"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa52c0ad267c4089ddb9fa38bdb40a761">&#9670;&nbsp;</a></span>charbuf()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::<a class="el" href="a00725.html">charbuf</a> </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a character buffer with assigned text. </p>
<p>If the text is larger than the size of the object, it is truncated. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>to assign. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01477">1477</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a071e13b02e730d633837c5e808f6d484"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a071e13b02e730d633837c5e808f6d484">&#9670;&nbsp;</a></span>len()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::len </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get current length of string. </p>
<dl class="section return"><dt>Returns</dt><dd>length of string. </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01571">1571</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="a4dff2bf8a7c11c5fad04e33b45366f2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dff2bf8a7c11c5fad04e33b45366f2c">&#9670;&nbsp;</a></span>operator bool()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Test if data is contained in the object. </p>
<dl class="section return"><dt>Returns</dt><dd>true if there is text. </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01509">1509</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="a2ce0bac9580ec4355171059f7362f3a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ce0bac9580ec4355171059f7362f3a7">&#9670;&nbsp;</a></span>operator char *()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::operator char * </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get text by casting reference. </p>
<dl class="section return"><dt>Returns</dt><dd>pointer to text in object. </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01525">1525</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="ab48ee0f03a94e204d13caf4c5fe63f49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab48ee0f03a94e204d13caf4c5fe63f49">&#9670;&nbsp;</a></span>operator!()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::operator! </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Test if the object is empty. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the object is empty. </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01517">1517</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="a3e32a4df26719cdba1b57e19d79ba663"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e32a4df26719cdba1b57e19d79ba663">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get a pointer to an offset in the object by expression operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>of character in string buffer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to offset in object. </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01553">1553</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="a1c52b028339f59db5ad404375d63cd44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c52b028339f59db5ad404375d63cd44">&#9670;&nbsp;</a></span>operator*()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::operator* </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get text by object pointer reference. </p>
<dl class="section return"><dt>Returns</dt><dd>pointer to text in object. </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01533">1533</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="a52ef9cf9922d1cf3903dede00e001e5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52ef9cf9922d1cf3903dede00e001e5c">&#9670;&nbsp;</a></span>operator+=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::operator+= </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Concatenate text into the object. </p>
<p>If the text is larger than the size of the object, then it is truncated. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>to append. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01501">1501</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="acaa0c49de80a5663908d3d50aa72280e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acaa0c49de80a5663908d3d50aa72280e">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Assign null terminated text to the object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>to assign. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01492">1492</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="a0d98c258137a87a7269450c482102d12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d98c258137a87a7269450c482102d12">&#9670;&nbsp;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char&amp; <a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Array operator to get a character from the object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>of character in string buffer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>character at offset. </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01542">1542</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<a id="a46f0952aae526e1e0901dd3745e00feb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46f0952aae526e1e0901dd3745e00feb">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="a00725.html">ucommon::charbuf</a>&lt; S &gt;::size </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get allocated size of the object. </p>
<dl class="section return"><dt>Returns</dt><dd>allocated size. </dd></dl>

<p class="definition">Definition at line <a class="el" href="a00968_source.html#l01563">1563</a> of file <a class="el" href="a00968_source.html">string.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>ucommon/<a class="el" href="a00968_source.html">string.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>