00001 /* 00002 ******************************************************************************* 00003 * Copyright (C) 2010-2012, 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 00025 00033 enum UStringTrieResult { 00041 USTRINGTRIE_NO_MATCH, 00048 USTRINGTRIE_NO_VALUE, 00056 USTRINGTRIE_FINAL_VALUE, 00064 USTRINGTRIE_INTERMEDIATE_VALUE 00065 }; 00066 00073 #define USTRINGTRIE_MATCHES(result) ((result)!=USTRINGTRIE_NO_MATCH) 00074 00084 #define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE) 00085 00093 #define USTRINGTRIE_HAS_NEXT(result) ((result)&1) 00094 00095 #endif /* __USTRINGTRIE_H__ */