ustringtrie.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
* Copyright (C) 2010-2012, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
* file name: udicttrie.h
* encoding: UTF-8
* tab size: 8 (not used)
* indentation:4
*
* created on: 2010dec17
* created by: Markus W. Scherer
*/
#ifndef __USTRINGTRIE_H__
#define __USTRINGTRIE_H__
#include "unicode/utypes.h"
enum UStringTrieResult {
USTRINGTRIE_NO_MATCH,
USTRINGTRIE_NO_VALUE,
USTRINGTRIE_FINAL_VALUE,
USTRINGTRIE_INTERMEDIATE_VALUE
};
#define USTRINGTRIE_MATCHES(result) ((result)!=USTRINGTRIE_NO_MATCH)
#define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE)
#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
#endif /* __USTRINGTRIE_H__ */
UStringTrieResult
UStringTrieResult
Return values for BytesTrie::next(), UCharsTrie::next() and similar methods.
Definition: ustringtrie.h:35
USTRINGTRIE_FINAL_VALUE
@ USTRINGTRIE_FINAL_VALUE
The input unit(s) continued a matching string and there is a value for the string so far.
Definition: ustringtrie.h:58
USTRINGTRIE_NO_MATCH
@ USTRINGTRIE_NO_MATCH
The input unit(s) did not continue a matching string.
Definition: ustringtrie.h:43
USTRINGTRIE_INTERMEDIATE_VALUE
@ USTRINGTRIE_INTERMEDIATE_VALUE
The input unit(s) continued a matching string and there is a value for the string so far.
Definition: ustringtrie.h:66
USTRINGTRIE_NO_VALUE
@ USTRINGTRIE_NO_VALUE
The input unit(s) continued a matching string but there is no value for the string so far.
Definition: ustringtrie.h:50
utypes.h
Basic definitions for ICU, for both C and C++ APIs.