20 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION
412 virtual void reset();
virtual int32_t getOffset(void) const =0
Return the current index in the text being searched.
The BreakIterator class implements methods for finding the location of boundaries in text...
virtual int32_t handlePrev(int32_t position, UErrorCode &status)=0
Abstract method which subclasses override to provide the mechanism for finding the previous match in ...
C++ API: SearchIterator object.
The RuleBasedCollator class provides the simple implementation of Collator, using data-driven tables...
virtual UBool operator==(const SearchIterator &that) const
Equality operator.
C++ API: RuleBasedCollator class provides the simple implementation of Collator.
Abstract class that defines an API for iteration on text objects.
#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.
virtual void setText(const UnicodeString &text, UErrorCode &status)
Set the string text to be searched.
virtual void reset()
Resets the iteration.
virtual SearchIterator * safeClone(void) const =0
Returns a copy of SearchIterator with the same behavior, and iterating over the same text...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
virtual void setOffset(int32_t position, UErrorCode &status)=0
Sets the index to point to the given position, and clears any state that's affected.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
SearchIterator & operator=(const SearchIterator &that)
Assignment operator.
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...
Basic definitions for ICU, for both C and C++ APIs.
C++ API: Collation Element Iterator.
virtual int32_t handleNext(int32_t position, UErrorCode &status)=0
Abstract method which subclasses override to provide the mechanism for finding the next match in the ...
A Locale object represents a specific geographical, political, or cultural region.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
struct UStringSearch UStringSearch
Data structure for searching.
StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...
int8_t UBool
The ICU boolean type.