22 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION 405 virtual void reset();
429 static UClassID U_EXPORT2 getStaticClassID();
virtual int32_t getOffset(void) const =0
Return the current index in the text being searched.
C++ API: SearchIterator object.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
virtual UBool operator==(const SearchIterator &that) const
Equality operator.
C++ API: The RuleBasedCollator class implements the Collator abstract base class. ...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
SearchIterator & operator=(const SearchIterator &that)
Assignment operator.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
The RuleBasedCollator class provides the implementation of Collator, using data-driven tables...
Abstract class that defines an API for iteration on text objects.
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 ...
virtual void setText(const UnicodeString &text, UErrorCode &status)
Set the string text to be searched.
virtual void reset()
Resets the iteration.
The BreakIterator class implements methods for finding the location of boundaries in text...
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
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.
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 ...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
#define U_FINAL
Defined to the C++11 "final" keyword if available.
StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...
Basic definitions for ICU, for both C and C++ APIs.
C++ API: Collation Element Iterator.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
SearchIterator is an abstract base class that provides methods to search for a pattern within a text ...
struct UStringSearch UStringSearch
Data structure for searching.
int8_t UBool
The ICU boolean type.
virtual SearchIterator * safeClone(void) const =0
Returns a copy of SearchIterator with the same behavior, and iterating over the same text...
A Locale object represents a specific geographical, political, or cultural region.