17 #if U_SHOW_CPLUSPLUS_API 24 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION 406 virtual void reset();
430 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.
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.
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
Standard ICU4C error code type, a substitute for exceptions.
#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.