ICU 73.2  73.2
ustringtrie.h
Go to the documentation of this file.
00001 // © 2016 and later: Unicode, Inc. and others.
00002 // License & terms of use: http://www.unicode.org/copyright.html
00003 /*
00004 *******************************************************************************
00005 *   Copyright (C) 2010-2012, International Business Machines
00006 *   Corporation and others.  All Rights Reserved.
00007 *******************************************************************************
00008 *   file name:  udicttrie.h
00009 *   encoding:   UTF-8
00010 *   tab size:   8 (not used)
00011 *   indentation:4
00012 *
00013 *   created on: 2010dec17
00014 *   created by: Markus W. Scherer
00015 */
00016 
00017 #ifndef __USTRINGTRIE_H__
00018 #define __USTRINGTRIE_H__
00019 
00025 #include "unicode/utypes.h"
00026 
00027 
00035 enum UStringTrieResult {
00043     USTRINGTRIE_NO_MATCH,
00050     USTRINGTRIE_NO_VALUE,
00058     USTRINGTRIE_FINAL_VALUE,
00066     USTRINGTRIE_INTERMEDIATE_VALUE
00067 };
00068 
00075 #define USTRINGTRIE_MATCHES(result) ((result)!=USTRINGTRIE_NO_MATCH)
00076 
00086 #define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE)
00087 
00095 #define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
00096 
00097 #endif  /* __USTRINGTRIE_H__ */