47 #if !UCONFIG_NO_REGULAR_EXPRESSIONS 67 class RuleBasedBreakIterator;
326 virtual uint32_t flags()
const;
474 virtual int32_t groupNumberFromName(
const char *groupName, int32_t nameLength,
UErrorCode &status)
const;
517 int32_t destCapacity,
559 virtual int32_t split(
UText *input,
561 int32_t destCapacity,
577 static UClassID U_EXPORT2 getStaticClassID();
587 UVector64 *fCompiledPat;
592 Regex8BitSet *fSets8;
598 int32_t fMinMatchLen;
610 UVector32 *fGroupMap;
616 Regex8BitSet *fStaticSets8;
620 int32_t fInitialStringIdx;
621 int32_t fInitialStringLen;
624 Regex8BitSet *fInitialChars8;
625 UBool fNeedsAltInput;
629 friend class RegexCompile;
631 friend class RegexCImpl;
639 void dumpOp(int32_t index)
const;
642 #ifndef U_HIDE_INTERNAL_API 647 void dumpPattern()
const;
833 virtual UBool find();
900 virtual int32_t groupCount()
const;
939 virtual UText *group(int32_t groupNum,
UText *dest, int64_t &group_len,
UErrorCode &status)
const;
948 virtual int32_t start(
UErrorCode &status)
const;
957 virtual int64_t start64(
UErrorCode &status)
const;
973 virtual int32_t start(int32_t group,
UErrorCode &status)
const;
988 virtual int64_t start64(int32_t group,
UErrorCode &status)
const;
1003 virtual int32_t end(
UErrorCode &status)
const;
1018 virtual int64_t end64(
UErrorCode &status)
const;
1038 virtual int32_t end(int32_t group,
UErrorCode &status)
const;
1057 virtual int64_t end64(int32_t group,
UErrorCode &status)
const;
1183 virtual UText *inputText()
const;
1229 virtual RegexMatcher ®ion(int64_t regionStart, int64_t regionLimit, int64_t startIndex,
UErrorCode &status);
1239 virtual int32_t regionStart()
const;
1249 virtual int64_t regionStart64()
const;
1260 virtual int32_t regionEnd()
const;
1270 virtual int64_t regionEnd64()
const;
1280 virtual UBool hasTransparentBounds()
const;
1310 virtual UBool hasAnchoringBounds()
const;
1340 virtual UBool hitEnd()
const;
1351 virtual UBool requireEnd()
const;
1570 int32_t destCapacity,
1597 virtual int32_t split(
UText *input,
1599 int32_t destCapacity,
1623 virtual void setTimeLimit(int32_t limit,
UErrorCode &status);
1631 virtual int32_t getTimeLimit()
const;
1654 virtual void setStackLimit(int32_t limit,
UErrorCode &status);
1663 virtual int32_t getStackLimit()
const;
1680 const void *context,
1695 const void *&context,
1713 const void *context,
1728 const void *&context,
1731 #ifndef U_HIDE_INTERNAL_API 1737 void setTrace(
UBool state);
1745 static UClassID U_EXPORT2 getStaticClassID();
1765 friend class RegexCImpl;
1767 #ifndef U_HIDE_INTERNAL_API 1769 void resetPreserveRegion();
1778 inline void backTrack(int64_t &inputIdx, int32_t &patIdx);
1779 UBool isWordBoundary(int64_t pos);
1780 UBool isUWordBoundary(int64_t pos);
1781 REStackFrame *resetStack();
1782 inline REStackFrame *StateSave(REStackFrame *fp, int64_t savePatIdx,
UErrorCode &status);
1786 inline UBool findProgressInterrupt(int64_t matchIndex,
UErrorCode &status);
1788 int64_t appendGroup(int32_t groupNum,
UText *dest,
UErrorCode &status)
const;
1792 UBool isChunkWordBoundary(int32_t pos);
1800 UText *fAltInputText;
1802 int64_t fInputLength;
1805 int64_t fRegionStart;
1806 int64_t fRegionLimit;
1808 int64_t fAnchorStart;
1809 int64_t fAnchorLimit;
1815 int64_t fActiveStart;
1816 int64_t fActiveLimit;
1820 UBool fTransparentBounds;
1821 UBool fAnchoringBounds;
1824 int64_t fMatchStart;
1828 int64_t fLastMatchEnd;
1830 int64_t fAppendPosition;
1839 REStackFrame *fFrame;
1844 int64_t fSmallData[8];
1850 int32_t fTickCounter;
1855 int32_t fStackLimit;
1860 const void *fCallbackContext;
1864 const void *fFindProgressCallbackContext;
1867 UBool fInputUniStrMaybeMutable;
1878 #endif // UCONFIG_NO_REGULAR_EXPRESSIONS struct UHashtable UHashtable
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Class RegexPattern represents a compiled regular expression.
UBool URegexFindProgressCallback(const void *context, int64_t matchIndex)
Function pointer for a regular expression find callback function.
C API: Abstract Unicode Text API.
class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...
UBool operator!=(const RegexPattern &that) const
Comparison operator.
#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.
C API: Regular Expressions.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
A mutable set of Unicode characters and multicharacter strings.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UBool URegexMatchCallback(const void *context, int32_t steps)
Function pointer for a regular expression matching callback function.
C API: Parse Error Information.
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.
A subclass of BreakIterator whose behavior is specified using a list of rules.
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.