ICU 4.8.1.1
4.8.1.1
|
00001 /* 00002 ******************************************************************************* 00003 * Copyright (C) 2010-2011, International Business Machines 00004 * Corporation and others. All Rights Reserved. 00005 ******************************************************************************* 00006 * file name: udicttrie.h 00007 * encoding: US-ASCII 00008 * tab size: 8 (not used) 00009 * indentation:4 00010 * 00011 * created on: 2010dec17 00012 * created by: Markus W. Scherer 00013 */ 00014 00015 #ifndef __USTRINGTRIE_H__ 00016 #define __USTRINGTRIE_H__ 00017 00023 #include "unicode/utypes.h" 00024 00032 enum UStringTrieResult { 00040 USTRINGTRIE_NO_MATCH, 00047 USTRINGTRIE_NO_VALUE, 00055 USTRINGTRIE_FINAL_VALUE, 00063 USTRINGTRIE_INTERMEDIATE_VALUE 00064 }; 00065 00072 #define USTRINGTRIE_MATCHES(result) ((result)!=USTRINGTRIE_NO_MATCH) 00073 00083 #define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE) 00084 00092 #define USTRINGTRIE_HAS_NEXT(result) ((result)&1) 00093 00094 #endif /* __USTRINGTRIE_H__ */