24 #if !UCONFIG_NO_BREAK_ITERATION
38 struct RBBIDataHeader;
39 class RuleBasedBreakIteratorTables;
41 class RBBIDataWrapper;
43 class LanguageBreakEngine;
44 class UnhandledEngine;
45 struct RBBIStateTable;
208 friend class RBBIRuleBuilder;
308 virtual int32_t hashCode(
void)
const;
505 virtual int32_t getRuleStatus()
const;
616 virtual void reset(
void);
633 virtual int32_t getBreakType()
const;
640 virtual void setBreakType(
int32_t type);
660 int32_t handlePrevious(
const RBBIStateTable *statetable);
671 int32_t handleNext(
const RBBIStateTable *statetable);
699 const LanguageBreakEngine *getLanguageBreakEngine(
UChar32 c);
704 void makeRuleStatusValid();
The BreakIterator class implements methods for finding the location of boundaries in text...
A subclass of BreakIterator whose behavior is specified using a list of rules.
UBool operator!=(const BreakIterator &that) const
Not-equal operator.
EDontAdopt
Constant to be used in the constructor RuleBasedBreakIterator(RBBIDataHeader*, EDontAdopt, UErrorCode &); which does not adopt the memory indicated by the RBBIDataHeader* parameter.
virtual CharacterIterator & getText(void) const =0
Return a CharacterIterator over the text being analyzed.
virtual BreakIterator * createBufferClone(void *stackBuffer, int32_t &BufferSize, UErrorCode &status)=0
Thread safe client-buffer-based cloning operation Do NOT call delete on a safeclone, since 'new' is not used to create it.
A concrete subclass of CharacterIterator that iterates over the characters (code units or code points...
int32_t fLastRuleStatusIndex
Index of the Rule {tag} values for the most recent match.
virtual UBool operator==(const BreakIterator &that) const
Equality operator.
unsigned char uint8_t
Define 64 bit limits.
unsigned int uint32_t
Define 64 bit limits.
virtual int32_t current(void) const =0
Return character index of the current interator position within the text.
virtual void setText(const UnicodeString &text)=0
Change the text over which this operates.
UBool operator!=(const BreakIterator &rhs) const
Returns the complement of the result of operator==.
virtual int32_t next(void)=0
Return the boundary following the current boundary.
virtual void adoptText(CharacterIterator *it)=0
Change the text over which this operates.
Abstract class that defines an API for iteration on text objects.
CharacterIterator * fCharIter
A character iterator that refers to the same text as the UText, above.
UText * fText
The UText through which this BreakIterator accesses the text.
RBBIDataWrapper * fData
The rule data for this BreakIterator instance.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
virtual int32_t first(void)=0
Return the index of the first character in the text being scanned.
UStack * fLanguageBreakEngines
If present, UStack of LanguageBreakEngine objects that might handle dictionary characters.
virtual int32_t last(void)=0
Return the index immediately BEYOND the last character in the text being scanned. ...
C++ API: String Character Iterator.
virtual BreakIterator * clone(void) const =0
Return a polymorphic copy of this object.
virtual int32_t following(int32_t offset)=0
Return the first boundary following the specified offset.
uint32_t fDictionaryCharCount
Counter for the number of characters encountered with the "dictionary" flag set.
int32_t fNumCachedBreakPositions
The number of elements in fCachedBreakPositions.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
C API: Data loading interface.
virtual int32_t preceding(int32_t offset)=0
Return the first boundary preceding the specified offset.
struct UDataMemory UDataMemory
Forward declaration of the data memory type.
virtual UBool operator==(const BreakIterator &) const =0
Return true if another object is semantically equal to this one.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UnhandledEngine * fUnhandledBreakEngine
If present, the special LanguageBreakEngine used for handling characters that are in the dictionary s...
C++ API: UChar Character Iterator.
A concrete subclass of CharacterIterator that iterates over the characters (code units or code points...
virtual UBool isBoundary(int32_t offset)=0
Return true if the specfied position is a boundary position.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API If the compiler doesn't support namespaces...
UCharCharacterIterator * fDCharIter
When the input text is provided by a UText, this dummy CharacterIterator over an empty string will be...
C API: Parse Error Information.
int32_t fPositionInCache
if fCachedBreakPositions is not null, this indicates which item in the cache the current iteration po...
UBool fLastStatusIndexValid
Rule tag value valid flag.
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...
virtual int32_t previous(void)=0
Return the boundary preceding the current boundary.
int32_t * fCachedBreakPositions
When a range of characters is divided up using the dictionary, the break positions that are discovere...
int32_t fBreakType
The type of the break iterator, or -1 if it has not been set.
virtual UText * getUText(UText *fillIn, UErrorCode &status) const =0
Get a UText for the text being analyzed.
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
StringCharacterIterator * fSCharIter
When the input text is provided by a UnicodeString, this will point to a characterIterator that wraps...
virtual UClassID getDynamicClassID(void) const =0
Return a polymorphic class ID for this object.
signed int int32_t
Define 64 bit limits.
int8_t UBool
The ICU boolean type.