Go to the documentation of this file.
22 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION
405 virtual void reset();
429 static UClassID U_EXPORT2 getStaticClassID();
The BreakIterator class implements methods for finding the location of boundaries in text.
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.
int8_t UBool
The ICU boolean type.
C++ API: Collation Element Iterator.
virtual void reset()
Resets the iteration.
virtual void setText(const UnicodeString &text, UErrorCode &status)
Set the string text to be searched.
C++ API: The RuleBasedCollator class implements the Collator abstract base 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.
StringSearch is a SearchIterator that provides language-sensitive text searching based on the compari...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
virtual UBool operator==(const SearchIterator &that) const
Equality operator.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
The RuleBasedCollator class provides the implementation of Collator, using data-driven tables.
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 int32_t handlePrev(int32_t position, UErrorCode &status)=0
Abstract method which subclasses override to provide the mechanism for finding the previous match in ...
Abstract class that defines an API for iteration on text objects.
virtual int32_t getOffset(void) const =0
Return the current index in the text being searched.
struct UStringSearch UStringSearch
Data structure for searching.
virtual SearchIterator * safeClone(void) const =0
Returns a copy of SearchIterator with the same behavior, and iterating over the same text,...
#define U_NAMESPACE_BEGIN
C++ API: SearchIterator object.
A Locale object represents a specific geographical, political, or cultural region.
SearchIterator & operator=(const SearchIterator &that)
Assignment operator.