Go to the documentation of this file.
20 #if U_SHOW_CPLUSPLUS_API
129 UBool incremental) = 0;
#define FALSE
The FALSE value of a UBool.
UnicodeMatcher defines a protocol for objects that can match a range of characters in a Replaceable s...
virtual ~UnicodeMatcher()
Destructor.
virtual UnicodeString & toPattern(UnicodeString &result, UBool escapeUnprintable=FALSE) const =0
Returns a string representation of this matcher.
Basic definitions for ICU, for both C and C++ APIs.
A mutable set of Unicode characters and multicharacter strings.
int8_t UBool
The ICU boolean type.
Replaceable is an abstract base class representing a string of characters that supports the replaceme...
@ U_PARTIAL_MATCH
Constant returned by matches() indicating a partial match between the text and this matcher.
virtual UBool matchesIndexValue(uint8_t v) const =0
Returns TRUE if this matcher will match a character c, where c & 0xFF == v, at offset,...
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.
@ U_MATCH
Constant returned by matches() indicating a complete match between the text and this matcher.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
virtual UMatchDegree matches(const Replaceable &text, int32_t &offset, int32_t limit, UBool incremental)=0
Return a UMatchDegree value indicating the degree of match for the given text at the given offset.
UMatchDegree
Constants returned by UnicodeMatcher::matches() indicating the degree of match.
@ U_MISMATCH
Constant returned by matches() indicating a mismatch between the text and this matcher.
virtual void addMatchSetTo(UnicodeSet &toUnionTo) const =0
Union the set of all characters that may be matched by this object into the given set.