forked from unicode-org/icu-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclassBytesTrie.html
739 lines (673 loc) · 46.9 KB
/
classBytesTrie.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ICU 74.1: icu::BytesTrie Class 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.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 id="projectrow">
<td id="projectalign">
<div id="projectname">ICU 74.1<span id="projectnumber"> 74.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceicu.html">icu</a></li><li class="navelem"><a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#friends">Friends</a> </div>
<div class="headertitle"><div class="title">icu::BytesTrie Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Light-weight, non-const reader class for a <a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a>.
<a href="classicu_1_1BytesTrie.html#details">More...</a></p>
<p><code>#include <<a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for icu::BytesTrie:</div>
<div class="dyncontent">
<div class="center">
<img src="classicu_1_1BytesTrie.png" usemap="#icu::BytesTrie_map" alt=""/>
<map id="icu::BytesTrie_map" name="icu::BytesTrie_map">
<area href="classicu_1_1UMemory.html" title="UMemory is the common ICU base class." alt="icu::UMemory" shape="rect" coords="0,0,89,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie_1_1Iterator.html">Iterator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1BytesTrie_1_1Iterator.html" title="Iterator for all of the (byte sequence, value) pairs in a BytesTrie.">Iterator</a> for all of the (byte sequence, value) pairs in a <a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a>. <a href="classicu_1_1BytesTrie_1_1Iterator.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie_1_1State.html">State</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a> state object, for saving a trie's current state and resetting the trie back to this state later. <a href="classicu_1_1BytesTrie_1_1State.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad80f8e9d219cc6ccb159ea133244718f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#ad80f8e9d219cc6ccb159ea133244718f">BytesTrie</a> (const void *trieBytes)</td></tr>
<tr class="memdesc:ad80f8e9d219cc6ccb159ea133244718f"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a> reader instance. <a href="classicu_1_1BytesTrie.html#ad80f8e9d219cc6ccb159ea133244718f">More...</a><br /></td></tr>
<tr class="separator:ad80f8e9d219cc6ccb159ea133244718f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a51ceaa466c1a6ee8488c53acea1b2dc4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#a51ceaa466c1a6ee8488c53acea1b2dc4">~BytesTrie</a> ()</td></tr>
<tr class="memdesc:a51ceaa466c1a6ee8488c53acea1b2dc4"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="classicu_1_1BytesTrie.html#a51ceaa466c1a6ee8488c53acea1b2dc4">More...</a><br /></td></tr>
<tr class="separator:a51ceaa466c1a6ee8488c53acea1b2dc4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa228c8b87e2750808992ee65d8f6ae1e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#aa228c8b87e2750808992ee65d8f6ae1e">BytesTrie</a> (const <a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> &other)</td></tr>
<tr class="memdesc:aa228c8b87e2750808992ee65d8f6ae1e"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor, copies the other trie reader object and its state, but not the byte array which will be shared. <a href="classicu_1_1BytesTrie.html#aa228c8b87e2750808992ee65d8f6ae1e">More...</a><br /></td></tr>
<tr class="separator:aa228c8b87e2750808992ee65d8f6ae1e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af75d6c9b144bb90a9468c07d301a5b5b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#af75d6c9b144bb90a9468c07d301a5b5b">reset</a> ()</td></tr>
<tr class="memdesc:af75d6c9b144bb90a9468c07d301a5b5b"><td class="mdescLeft"> </td><td class="mdescRight">Resets this trie to its initial state. <a href="classicu_1_1BytesTrie.html#af75d6c9b144bb90a9468c07d301a5b5b">More...</a><br /></td></tr>
<tr class="separator:af75d6c9b144bb90a9468c07d301a5b5b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad0c3af6d0f8d50d5a31e858b84b18025"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#ad0c3af6d0f8d50d5a31e858b84b18025">getState64</a> () const</td></tr>
<tr class="memdesc:ad0c3af6d0f8d50d5a31e858b84b18025"><td class="mdescLeft"> </td><td class="mdescRight">Returns the state of this trie as a 64-bit integer. <a href="classicu_1_1BytesTrie.html#ad0c3af6d0f8d50d5a31e858b84b18025">More...</a><br /></td></tr>
<tr class="separator:ad0c3af6d0f8d50d5a31e858b84b18025"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8a48c930d5dd27872210a10c187d60cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#a8a48c930d5dd27872210a10c187d60cb">resetToState64</a> (uint64_t state)</td></tr>
<tr class="memdesc:a8a48c930d5dd27872210a10c187d60cb"><td class="mdescLeft"> </td><td class="mdescRight">Resets this trie to the saved state. <a href="classicu_1_1BytesTrie.html#a8a48c930d5dd27872210a10c187d60cb">More...</a><br /></td></tr>
<tr class="separator:a8a48c930d5dd27872210a10c187d60cb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95bbbe534f866796cf436fbfc55902e2"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#a95bbbe534f866796cf436fbfc55902e2">saveState</a> (<a class="el" href="classicu_1_1BytesTrie_1_1State.html">State</a> &state) const</td></tr>
<tr class="memdesc:a95bbbe534f866796cf436fbfc55902e2"><td class="mdescLeft"> </td><td class="mdescRight">Saves the state of this trie. <a href="classicu_1_1BytesTrie.html#a95bbbe534f866796cf436fbfc55902e2">More...</a><br /></td></tr>
<tr class="separator:a95bbbe534f866796cf436fbfc55902e2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad380f7889bd3c7a773e1423448340253"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#ad380f7889bd3c7a773e1423448340253">resetToState</a> (const <a class="el" href="classicu_1_1BytesTrie_1_1State.html">State</a> &state)</td></tr>
<tr class="memdesc:ad380f7889bd3c7a773e1423448340253"><td class="mdescLeft"> </td><td class="mdescRight">Resets this trie to the saved state. <a href="classicu_1_1BytesTrie.html#ad380f7889bd3c7a773e1423448340253">More...</a><br /></td></tr>
<tr class="separator:ad380f7889bd3c7a773e1423448340253"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2008e7aa8af0a8e4cb0a0cc5a75d404a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#a2008e7aa8af0a8e4cb0a0cc5a75d404a">current</a> () const</td></tr>
<tr class="memdesc:a2008e7aa8af0a8e4cb0a0cc5a75d404a"><td class="mdescLeft"> </td><td class="mdescRight">Determines whether the byte sequence so far matches, whether it has a value, and whether another input byte can continue a matching byte sequence. <a href="classicu_1_1BytesTrie.html#a2008e7aa8af0a8e4cb0a0cc5a75d404a">More...</a><br /></td></tr>
<tr class="separator:a2008e7aa8af0a8e4cb0a0cc5a75d404a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a21e94ec7cc629081ed6c1cb501a95026"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#a21e94ec7cc629081ed6c1cb501a95026">first</a> (int32_t inByte)</td></tr>
<tr class="memdesc:a21e94ec7cc629081ed6c1cb501a95026"><td class="mdescLeft"> </td><td class="mdescRight">Traverses the trie from the initial state for this input byte. <a href="classicu_1_1BytesTrie.html#a21e94ec7cc629081ed6c1cb501a95026">More...</a><br /></td></tr>
<tr class="separator:a21e94ec7cc629081ed6c1cb501a95026"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae5eb2d1f5a56cb0f710d3bed532740a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#ae5eb2d1f5a56cb0f710d3bed532740a0">next</a> (int32_t inByte)</td></tr>
<tr class="memdesc:ae5eb2d1f5a56cb0f710d3bed532740a0"><td class="mdescLeft"> </td><td class="mdescRight">Traverses the trie from the current state for this input byte. <a href="classicu_1_1BytesTrie.html#ae5eb2d1f5a56cb0f710d3bed532740a0">More...</a><br /></td></tr>
<tr class="separator:ae5eb2d1f5a56cb0f710d3bed532740a0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a212225e559a813c222a345598477c19b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#a212225e559a813c222a345598477c19b">next</a> (const char *s, int32_t length)</td></tr>
<tr class="memdesc:a212225e559a813c222a345598477c19b"><td class="mdescLeft"> </td><td class="mdescRight">Traverses the trie from the current state for this byte sequence. <a href="classicu_1_1BytesTrie.html#a212225e559a813c222a345598477c19b">More...</a><br /></td></tr>
<tr class="separator:a212225e559a813c222a345598477c19b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0d3271ae57e9cd635dd2896c9110bb6a"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#a0d3271ae57e9cd635dd2896c9110bb6a">getValue</a> () const</td></tr>
<tr class="memdesc:a0d3271ae57e9cd635dd2896c9110bb6a"><td class="mdescLeft"> </td><td class="mdescRight">Returns a matching byte sequence's value if called immediately after <a class="el" href="classicu_1_1BytesTrie.html#a2008e7aa8af0a8e4cb0a0cc5a75d404a" title="Determines whether the byte sequence so far matches, whether it has a value, and whether another inpu...">current()</a>/first()/next() returned USTRINGTRIE_INTERMEDIATE_VALUE or USTRINGTRIE_FINAL_VALUE. <a href="classicu_1_1BytesTrie.html#a0d3271ae57e9cd635dd2896c9110bb6a">More...</a><br /></td></tr>
<tr class="separator:a0d3271ae57e9cd635dd2896c9110bb6a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a36d9e909b6291ea6da8d9e84988d0b6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#a36d9e909b6291ea6da8d9e84988d0b6c">hasUniqueValue</a> (int32_t &uniqueValue) const</td></tr>
<tr class="memdesc:a36d9e909b6291ea6da8d9e84988d0b6c"><td class="mdescLeft"> </td><td class="mdescRight">Determines whether all byte sequences reachable from the current state map to the same value. <a href="classicu_1_1BytesTrie.html#a36d9e909b6291ea6da8d9e84988d0b6c">More...</a><br /></td></tr>
<tr class="separator:a36d9e909b6291ea6da8d9e84988d0b6c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab44c4b2ce931218c62256920783dd6b2"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#ab44c4b2ce931218c62256920783dd6b2">getNextBytes</a> (<a class="el" href="classicu_1_1ByteSink.html">ByteSink</a> &out) const</td></tr>
<tr class="memdesc:ab44c4b2ce931218c62256920783dd6b2"><td class="mdescLeft"> </td><td class="mdescRight">Finds each byte which continues the byte sequence from the current state. <a href="classicu_1_1BytesTrie.html#ab44c4b2ce931218c62256920783dd6b2">More...</a><br /></td></tr>
<tr class="separator:ab44c4b2ce931218c62256920783dd6b2"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ac9c15bc2f42d2934d0654c9e332ed8d4"><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#ac9c15bc2f42d2934d0654c9e332ed8d4">BytesTrieBuilder</a></td></tr>
<tr class="separator:ac9c15bc2f42d2934d0654c9e332ed8d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af14dbed26f3ba3c9c0f19215dcd807c0"><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1BytesTrie.html#af14dbed26f3ba3c9c0f19215dcd807c0">::BytesTrieTest</a></td></tr>
<tr class="separator:af14dbed26f3ba3c9c0f19215dcd807c0"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Light-weight, non-const reader class for a <a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a>. </p>
<p >Traverses a byte-serialized data structure with minimal state, for mapping byte sequences to non-negative integer values.</p>
<p >This class owns the serialized trie data only if it was constructed by the builder's build() method. The public constructor and the copy constructor only alias the data (only copy the pointer). There is no assignment operator.</p>
<p >This class is not intended for public subclassing. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable000071">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00055">55</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="ad80f8e9d219cc6ccb159ea133244718f" name="ad80f8e9d219cc6ccb159ea133244718f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad80f8e9d219cc6ccb159ea133244718f">◆ </a></span>BytesTrie() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">icu::BytesTrie::BytesTrie </td>
<td>(</td>
<td class="paramtype">const void * </td>
<td class="paramname"><em>trieBytes</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>Constructs a <a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a> reader instance. </p>
<p >The trieBytes must contain a copy of a byte sequence from the <a class="el" href="classicu_1_1BytesTrieBuilder.html" title="Builder class for BytesTrie.">BytesTrieBuilder</a>, starting with the first byte of that sequence. The <a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a> object will not read more bytes than the <a class="el" href="classicu_1_1BytesTrieBuilder.html" title="Builder class for BytesTrie.">BytesTrieBuilder</a> generated in the corresponding build() call.</p>
<p >The array is not copied/cloned and must not be modified while the <a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a> object is in use.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">trieBytes</td><td>The byte array that contains the serialized trie. </td></tr>
</table>
</dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000072">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00071">71</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="a51ceaa466c1a6ee8488c53acea1b2dc4" name="a51ceaa466c1a6ee8488c53acea1b2dc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51ceaa466c1a6ee8488c53acea1b2dc4">◆ </a></span>~BytesTrie()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">icu::BytesTrie::~BytesTrie </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000073">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</div>
</div>
<a id="aa228c8b87e2750808992ee65d8f6ae1e" name="aa228c8b87e2750808992ee65d8f6ae1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa228c8b87e2750808992ee65d8f6ae1e">◆ </a></span>BytesTrie() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">icu::BytesTrie::BytesTrie </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & </td>
<td class="paramname"><em>other</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>Copy constructor, copies the other trie reader object and its state, but not the byte array which will be shared. </p>
<p >(Shallow copy.) </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">other</td><td>Another <a class="el" href="classicu_1_1BytesTrie.html" title="Light-weight, non-const reader class for a BytesTrie.">BytesTrie</a> object. </td></tr>
</table>
</dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000074">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00087">87</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2008e7aa8af0a8e4cb0a0cc5a75d404a" name="a2008e7aa8af0a8e4cb0a0cc5a75d404a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2008e7aa8af0a8e4cb0a0cc5a75d404a">◆ </a></span>current()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> icu::BytesTrie::current </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Determines whether the byte sequence so far matches, whether it has a value, and whether another input byte can continue a matching byte sequence. </p>
<dl class="section return"><dt>Returns</dt><dd>The match/value Result. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000081">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</div>
</div>
<a id="a21e94ec7cc629081ed6c1cb501a95026" name="a21e94ec7cc629081ed6c1cb501a95026"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21e94ec7cc629081ed6c1cb501a95026">◆ </a></span>first()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> icu::BytesTrie::first </td>
<td>(</td>
<td class="paramtype">int32_t </td>
<td class="paramname"><em>inByte</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>Traverses the trie from the initial state for this input byte. </p>
<p >Equivalent to <a class="el" href="classicu_1_1BytesTrie.html#af75d6c9b144bb90a9468c07d301a5b5b" title="Resets this trie to its initial state.">reset()</a>.next(inByte). </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">inByte</td><td>Input byte value. Values -0x100..-1 are treated like 0..0xff. Values below -0x100 and above 0xff will never match. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The match/value Result. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000082">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00203">203</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="ab44c4b2ce931218c62256920783dd6b2" name="ab44c4b2ce931218c62256920783dd6b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab44c4b2ce931218c62256920783dd6b2">◆ </a></span>getNextBytes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t icu::BytesTrie::getNextBytes </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classicu_1_1ByteSink.html">ByteSink</a> & </td>
<td class="paramname"><em>out</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds each byte which continues the byte sequence from the current state. </p>
<p >That is, each byte b for which it would be next(b)!=USTRINGTRIE_NO_MATCH now. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">out</td><td>Each next byte is appended to this object. (Only uses the out.Append(s, length) method.) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes which continue the byte sequence from here </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000087">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</div>
</div>
<a id="ad0c3af6d0f8d50d5a31e858b84b18025" name="ad0c3af6d0f8d50d5a31e858b84b18025"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0c3af6d0f8d50d5a31e858b84b18025">◆ </a></span>getState64()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint64_t icu::BytesTrie::getState64 </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>Returns the state of this trie as a 64-bit integer. </p>
<p >The state value is never 0.</p>
<dl class="section return"><dt>Returns</dt><dd>opaque state value </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classicu_1_1BytesTrie.html#a8a48c930d5dd27872210a10c187d60cb" title="Resets this trie to the saved state.">resetToState64</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000076">Stable:</a></b></dt><dd>ICU 65 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00110">110</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="a0d3271ae57e9cd635dd2896c9110bb6a" name="a0d3271ae57e9cd635dd2896c9110bb6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d3271ae57e9cd635dd2896c9110bb6a">◆ </a></span>getValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int32_t icu::BytesTrie::getValue </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>Returns a matching byte sequence's value if called immediately after <a class="el" href="classicu_1_1BytesTrie.html#a2008e7aa8af0a8e4cb0a0cc5a75d404a" title="Determines whether the byte sequence so far matches, whether it has a value, and whether another inpu...">current()</a>/first()/next() returned USTRINGTRIE_INTERMEDIATE_VALUE or USTRINGTRIE_FINAL_VALUE. </p>
<p ><a class="el" href="classicu_1_1BytesTrie.html#a0d3271ae57e9cd635dd2896c9110bb6a" title="Returns a matching byte sequence's value if called immediately after current()/first()/next() returne...">getValue()</a> can be called multiple times.</p>
<p >Do not call <a class="el" href="classicu_1_1BytesTrie.html#a0d3271ae57e9cd635dd2896c9110bb6a" title="Returns a matching byte sequence's value if called immediately after current()/first()/next() returne...">getValue()</a> after USTRINGTRIE_NO_MATCH or USTRINGTRIE_NO_VALUE! </p><dl class="section return"><dt>Returns</dt><dd>The value for the byte sequence so far. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000085">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00246">246</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="a36d9e909b6291ea6da8d9e84988d0b6c" name="a36d9e909b6291ea6da8d9e84988d0b6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36d9e909b6291ea6da8d9e84988d0b6c">◆ </a></span>hasUniqueValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> icu::BytesTrie::hasUniqueValue </td>
<td>(</td>
<td class="paramtype">int32_t & </td>
<td class="paramname"><em>uniqueValue</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>Determines whether all byte sequences reachable from the current state map to the same value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">uniqueValue</td><td>Receives the unique value, if this function returns true. (output-only) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if all byte sequences reachable from the current state map to the same value. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000086">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00262">262</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="a212225e559a813c222a345598477c19b" name="a212225e559a813c222a345598477c19b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a212225e559a813c222a345598477c19b">◆ </a></span>next() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> icu::BytesTrie::next </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t </td>
<td class="paramname"><em>length</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Traverses the trie from the current state for this byte sequence. </p>
<p >Equivalent to </p><div class="fragment"><div class="line">Result result=<a class="code hl_function" href="classicu_1_1BytesTrie.html#a2008e7aa8af0a8e4cb0a0cc5a75d404a">current</a>();</div>
<div class="line"><span class="keywordflow">for</span>(each c in s)</div>
<div class="line"> <span class="keywordflow">if</span>(!<a class="code hl_define" href="ustringtrie_8h.html#a7e1962396a228f3d0f7d073fef78e2e0">USTRINGTRIE_HAS_NEXT</a>(result)) <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda59cdeb2ea73a75c61684b4ea11ccfb37">USTRINGTRIE_NO_MATCH</a>;</div>
<div class="line"> result=<a class="code hl_function" href="classicu_1_1BytesTrie.html#ae5eb2d1f5a56cb0f710d3bed532740a0">next</a>(c);</div>
<div class="line"><span class="keywordflow">return</span> result;</div>
<div class="ttc" id="aclassicu_1_1BytesTrie_html_a2008e7aa8af0a8e4cb0a0cc5a75d404a"><div class="ttname"><a href="classicu_1_1BytesTrie.html#a2008e7aa8af0a8e4cb0a0cc5a75d404a">icu::BytesTrie::current</a></div><div class="ttdeci">UStringTrieResult current() const</div><div class="ttdoc">Determines whether the byte sequence so far matches, whether it has a value, and whether another inpu...</div></div>
<div class="ttc" id="aclassicu_1_1BytesTrie_html_ae5eb2d1f5a56cb0f710d3bed532740a0"><div class="ttname"><a href="classicu_1_1BytesTrie.html#ae5eb2d1f5a56cb0f710d3bed532740a0">icu::BytesTrie::next</a></div><div class="ttdeci">UStringTrieResult next(int32_t inByte)</div><div class="ttdoc">Traverses the trie from the current state for this input byte.</div></div>
<div class="ttc" id="austringtrie_8h_html_a760046451d48a1551ba71162a31365bda59cdeb2ea73a75c61684b4ea11ccfb37"><div class="ttname"><a href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bda59cdeb2ea73a75c61684b4ea11ccfb37">USTRINGTRIE_NO_MATCH</a></div><div class="ttdeci">@ USTRINGTRIE_NO_MATCH</div><div class="ttdoc">The input unit(s) did not continue a matching string.</div><div class="ttdef"><b>Definition:</b> <a href="ustringtrie_8h_source.html#l00043">ustringtrie.h:43</a></div></div>
<div class="ttc" id="austringtrie_8h_html_a7e1962396a228f3d0f7d073fef78e2e0"><div class="ttname"><a href="ustringtrie_8h.html#a7e1962396a228f3d0f7d073fef78e2e0">USTRINGTRIE_HAS_NEXT</a></div><div class="ttdeci">#define USTRINGTRIE_HAS_NEXT(result)</div><div class="ttdoc">Equivalent to (result==USTRINGTRIE_NO_VALUE || result==USTRINGTRIE_INTERMEDIATE_VALUE) but this macro...</div><div class="ttdef"><b>Definition:</b> <a href="ustringtrie_8h_source.html#l00095">ustringtrie.h:95</a></div></div>
</div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">s</td><td>A string or byte sequence. Can be nullptr if length is 0. </td></tr>
<tr><td class="paramname">length</td><td>The length of the byte sequence. Can be -1 if NUL-terminated. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The match/value Result. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000084">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</div>
</div>
<a id="ae5eb2d1f5a56cb0f710d3bed532740a0" name="ae5eb2d1f5a56cb0f710d3bed532740a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5eb2d1f5a56cb0f710d3bed532740a0">◆ </a></span>next() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="ustringtrie_8h.html#a760046451d48a1551ba71162a31365bd">UStringTrieResult</a> icu::BytesTrie::next </td>
<td>(</td>
<td class="paramtype">int32_t </td>
<td class="paramname"><em>inByte</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Traverses the trie from the current state for this input byte. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">inByte</td><td>Input byte value. Values -0x100..-1 are treated like 0..0xff. Values below -0x100 and above 0xff will never match. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The match/value Result. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000083">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
</div>
</div>
<a id="af75d6c9b144bb90a9468c07d301a5b5b" name="af75d6c9b144bb90a9468c07d301a5b5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af75d6c9b144bb90a9468c07d301a5b5b">◆ </a></span>reset()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & icu::BytesTrie::reset </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>Resets this trie to its initial state. </p>
<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000075">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00096">96</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="ad380f7889bd3c7a773e1423448340253" name="ad380f7889bd3c7a773e1423448340253"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad380f7889bd3c7a773e1423448340253">◆ </a></span>resetToState()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & icu::BytesTrie::resetToState </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classicu_1_1BytesTrie_1_1State.html">State</a> & </td>
<td class="paramname"><em>state</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>Resets this trie to the saved state. </p>
<p >If the state object contains no state, or the state of a different trie, then this trie remains unchanged. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">state</td><td>The <a class="el" href="classicu_1_1BytesTrie_1_1State.html" title="BytesTrie state object, for saving a trie's current state and resetting the trie back to this state l...">State</a> object which holds a saved trie state. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classicu_1_1BytesTrie.html#a95bbbe534f866796cf436fbfc55902e2" title="Saves the state of this trie.">saveState</a> </dd>
<dd>
<a class="el" href="classicu_1_1BytesTrie.html#af75d6c9b144bb90a9468c07d301a5b5b" title="Resets this trie to its initial state.">reset</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000080">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00179">179</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="a8a48c930d5dd27872210a10c187d60cb" name="a8a48c930d5dd27872210a10c187d60cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a48c930d5dd27872210a10c187d60cb">◆ </a></span>resetToState64()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & icu::BytesTrie::resetToState64 </td>
<td>(</td>
<td class="paramtype">uint64_t </td>
<td class="paramname"><em>state</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>Resets this trie to the saved state. </p>
<p >Unlike resetToState(State), the 64-bit state value must be from <a class="el" href="classicu_1_1BytesTrie.html#ad0c3af6d0f8d50d5a31e858b84b18025" title="Returns the state of this trie as a 64-bit integer.">getState64()</a> from the same trie object or from one initialized the exact same way. Because of no validation, this method is faster.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">state</td><td>The opaque trie state value from <a class="el" href="classicu_1_1BytesTrie.html#ad0c3af6d0f8d50d5a31e858b84b18025" title="Returns the state of this trie as a 64-bit integer.">getState64()</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classicu_1_1BytesTrie.html#ad0c3af6d0f8d50d5a31e858b84b18025" title="Returns the state of this trie as a 64-bit integer.">getState64</a> </dd>
<dd>
<a class="el" href="classicu_1_1BytesTrie.html#ad380f7889bd3c7a773e1423448340253" title="Resets this trie to the saved state.">resetToState</a> </dd>
<dd>
<a class="el" href="classicu_1_1BytesTrie.html#af75d6c9b144bb90a9468c07d301a5b5b" title="Resets this trie to its initial state.">reset</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000077">Stable:</a></b></dt><dd>ICU 65 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00129">129</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="a95bbbe534f866796cf436fbfc55902e2" name="a95bbbe534f866796cf436fbfc55902e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95bbbe534f866796cf436fbfc55902e2">◆ </a></span>saveState()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classicu_1_1BytesTrie.html">BytesTrie</a> & icu::BytesTrie::saveState </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classicu_1_1BytesTrie_1_1State.html">State</a> & </td>
<td class="paramname"><em>state</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>Saves the state of this trie. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">state</td><td>The <a class="el" href="classicu_1_1BytesTrie_1_1State.html" title="BytesTrie state object, for saving a trie's current state and resetting the trie back to this state l...">State</a> object to hold the trie's state. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classicu_1_1BytesTrie.html#ad380f7889bd3c7a773e1423448340253" title="Resets this trie to the saved state.">resetToState</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000079">Stable:</a></b></dt><dd>ICU 4.8 </dd></dl>
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00162">162</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="af14dbed26f3ba3c9c0f19215dcd807c0" name="af14dbed26f3ba3c9c0f19215dcd807c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af14dbed26f3ba3c9c0f19215dcd807c0">◆ </a></span>::BytesTrieTest</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">friend class ::BytesTrieTest</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00383">383</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<a id="ac9c15bc2f42d2934d0654c9e332ed8d4" name="ac9c15bc2f42d2934d0654c9e332ed8d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9c15bc2f42d2934d0654c9e332ed8d4">◆ </a></span>BytesTrieBuilder</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">friend class <a class="el" href="classicu_1_1BytesTrieBuilder.html">BytesTrieBuilder</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="bytestrie_8h_source.html#l00382">382</a> of file <a class="el" href="bytestrie_8h_source.html">bytestrie.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>common/unicode/<a class="el" href="bytestrie_8h_source.html">bytestrie.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>