ICU 76.1: common/unicode/ustringtrie.h Source File

ICU 76.1 76.1

ustringtrie.h
Go to the documentation of this file.
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *******************************************************************************
5 * Copyright (C) 2010-2012, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: udicttrie.h
9 * encoding: UTF-8
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2010dec17
14 * created by: Markus W. Scherer
15 */
16
17 #ifndef __USTRINGTRIE_H__
18 #define __USTRINGTRIE_H__
19
25 #include "unicode/utypes.h"
26
27
35 enum UStringTrieResult {
43 USTRINGTRIE_NO_MATCH,
50 USTRINGTRIE_NO_VALUE,
58 USTRINGTRIE_FINAL_VALUE,
66 USTRINGTRIE_INTERMEDIATE_VALUE
67 };
68
75 #define USTRINGTRIE_MATCHES(result) ((result)!=USTRINGTRIE_NO_MATCH)
76
86 #define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE)
87
95 #define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
96
97 #endif /* __USTRINGTRIE_H__ */
UStringTrieResult
UStringTrieResult
Return values for BytesTrie::next(), UCharsTrie::next() and similar methods.
Definition: ustringtrie.h:35
USTRINGTRIE_FINAL_VALUE
@ USTRINGTRIE_FINAL_VALUE
The input unit(s) continued a matching string and there is a value for the string so far.
Definition: ustringtrie.h:58
USTRINGTRIE_NO_MATCH
@ USTRINGTRIE_NO_MATCH
The input unit(s) did not continue a matching string.
Definition: ustringtrie.h:43
USTRINGTRIE_INTERMEDIATE_VALUE
@ USTRINGTRIE_INTERMEDIATE_VALUE
The input unit(s) continued a matching string and there is a value for the string so far.
Definition: ustringtrie.h:66
USTRINGTRIE_NO_VALUE
@ USTRINGTRIE_NO_VALUE
The input unit(s) continued a matching string but there is no value for the string so far.
Definition: ustringtrie.h:50
utypes.h
Basic definitions for ICU, for both C and C++ APIs.