ICU 56.1: ustringtrie.h Source File

ICU 56.1 56.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

ustringtrie.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * Copyright (C) 2010-2012, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *******************************************************************************
6 * file name: udicttrie.h
7 * encoding: US-ASCII
8 * tab size: 8 (not used)
9 * indentation:4
10 *
11 * created on: 2010dec17
12 * created by: Markus W. Scherer
13 */
14
15 #ifndef __USTRINGTRIE_H__
16 #define __USTRINGTRIE_H__
17
23 #include "unicode/utypes.h"
24
25
33 enum UStringTrieResult {
41 USTRINGTRIE_NO_MATCH,
48 USTRINGTRIE_NO_VALUE,
56 USTRINGTRIE_FINAL_VALUE,
64 USTRINGTRIE_INTERMEDIATE_VALUE
65 };
66
73 #define USTRINGTRIE_MATCHES(result) ((result)!=USTRINGTRIE_NO_MATCH)
74
84 #define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE)
85
93 #define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
94
95 #endif /* __USTRINGTRIE_H__ */
USTRINGTRIE_NO_VALUE
The input unit(s) continued a matching string but there is no value for the string so far...
Definition: ustringtrie.h:48
USTRINGTRIE_FINAL_VALUE
The input unit(s) continued a matching string and there is a value for the string so far...
Definition: ustringtrie.h:56
UStringTrieResult
UStringTrieResult
Return values for BytesTrie::next(), UCharsTrie::next() and similar methods.
Definition: ustringtrie.h:33
USTRINGTRIE_NO_MATCH
The input unit(s) did not continue a matching string.
Definition: ustringtrie.h:41
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
USTRINGTRIE_INTERMEDIATE_VALUE
The input unit(s) continued a matching string and there is a value for the string so far...
Definition: ustringtrie.h:64