22 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION 116 virtual void setOffset(int32_t position,
UErrorCode &status) = 0;
126 virtual int32_t getOffset(
void)
const = 0;
165 int32_t getMatchedStart(
void)
const;
181 int32_t getMatchedLength(
void)
const;
327 int32_t following(int32_t position,
UErrorCode &status);
367 int32_t preceding(int32_t position,
UErrorCode &status);
408 virtual void reset();
512 virtual int32_t handleNext(int32_t position,
UErrorCode &status)
534 virtual int32_t handlePrev(int32_t position,
UErrorCode &status)
547 virtual void setMatchLength(int32_t length);
559 virtual void setMatchStart(int32_t position);
565 void setMatchNotFound();
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Abstract class that defines an API for iteration on text objects.
The BreakIterator class implements methods for finding the location of boundaries in text...
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
UBool operator!=(const SearchIterator &that) const
Not-equal operator.
#define NULL
Define NULL if necessary, to nullptr for C++ and to ((void *)0) for C.
UnicodeString m_text_
Unicode string version of the search text.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Character Iterator.
USearch * m_search_
C search data struct.
SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...
UObject is the common ICU "boilerplate" class.
BreakIterator * m_breakiterator_
Break iterator.
int8_t UBool
The ICU boolean type.