17 #if U_SHOW_CPLUSPLUS_API 24 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION 117 virtual void setOffset(int32_t position,
UErrorCode &status) = 0;
127 virtual int32_t getOffset(
void)
const = 0;
166 int32_t getMatchedStart(
void)
const;
182 int32_t getMatchedLength(
void)
const;
328 int32_t following(int32_t position,
UErrorCode &status);
368 int32_t preceding(int32_t position,
UErrorCode &status);
409 virtual void reset();
513 virtual int32_t handleNext(int32_t position,
UErrorCode &status)
535 virtual int32_t handlePrev(int32_t position,
UErrorCode &status)
548 virtual void setMatchLength(int32_t length);
560 virtual void setMatchStart(int32_t position);
566 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...
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.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
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.