ICU 57.1 57.1
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
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__ */
UStringTrieResult
Return values for BytesTrie::next(), UCharsTrie::next() and similar methods.
Definition ustringtrie.h:33
@ 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
@ USTRINGTRIE_NO_MATCH
The input unit(s) did not continue a matching string.
Definition ustringtrie.h:41
@ 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
@ 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
Basic definitions for ICU, for both C and C++ APIs.