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;
627 UHashtable *fNamedCaptureMap;
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;
838 virtual UBool find();
899 virtual int32_t groupCount()
const;
933 virtual UText *group(int32_t groupNum,
UText *dest, int64_t &group_len,
UErrorCode &status)
const;
942 virtual int32_t start(
UErrorCode &status)
const;
951 virtual int64_t start64(
UErrorCode &status)
const;
967 virtual int32_t start(int32_t group,
UErrorCode &status)
const;
982 virtual int64_t start64(int32_t group,
UErrorCode &status)
const;
997 virtual int32_t end(
UErrorCode &status)
const;
1012 virtual int64_t end64(
UErrorCode &status)
const;
1032 virtual int32_t end(int32_t group,
UErrorCode &status)
const;
1051 virtual int64_t end64(int32_t group,
UErrorCode &status)
const;
1177 virtual UText *inputText()
const;
1223 virtual RegexMatcher ®ion(int64_t regionStart, int64_t regionLimit, int64_t startIndex,
UErrorCode &status);
1233 virtual int32_t regionStart()
const;
1243 virtual int64_t regionStart64()
const;
1254 virtual int32_t regionEnd()
const;
1264 virtual int64_t regionEnd64()
const;
1274 virtual UBool hasTransparentBounds()
const;
1304 virtual UBool hasAnchoringBounds()
const;
1334 virtual UBool hitEnd()
const;
1345 virtual UBool requireEnd()
const;
1564 int32_t destCapacity,
1591 virtual int32_t split(
UText *input,
1593 int32_t destCapacity,
1617 virtual void setTimeLimit(int32_t limit,
UErrorCode &status);
1625 virtual int32_t getTimeLimit()
const;
1648 virtual void setStackLimit(int32_t limit,
UErrorCode &status);
1657 virtual int32_t getStackLimit()
const;
1674 const void *context,
1689 const void *&context,
1707 const void *context,
1722 const void *&context,
1725 #ifndef U_HIDE_INTERNAL_API
1731 void setTrace(
UBool state);
1739 static UClassID U_EXPORT2 getStaticClassID();
1759 friend class RegexCImpl;
1761 #ifndef U_HIDE_INTERNAL_API
1763 void resetPreserveRegion();
1772 inline void backTrack(int64_t &inputIdx, int32_t &patIdx);
1773 UBool isWordBoundary(int64_t pos);
1774 UBool isUWordBoundary(int64_t pos);
1775 REStackFrame *resetStack();
1776 inline REStackFrame *StateSave(REStackFrame *fp, int64_t savePatIdx,
UErrorCode &status);
1780 inline UBool findProgressInterrupt(int64_t matchIndex,
UErrorCode &status);
1782 int64_t appendGroup(int32_t groupNum,
UText *dest,
UErrorCode &status)
const;
1786 UBool isChunkWordBoundary(int32_t pos);
1794 UText *fAltInputText;
1796 int64_t fInputLength;
1799 int64_t fRegionStart;
1800 int64_t fRegionLimit;
1802 int64_t fAnchorStart;
1803 int64_t fAnchorLimit;
1809 int64_t fActiveStart;
1810 int64_t fActiveLimit;
1814 UBool fTransparentBounds;
1815 UBool fAnchoringBounds;
1818 int64_t fMatchStart;
1822 int64_t fLastMatchEnd;
1824 int64_t fAppendPosition;
1833 REStackFrame *fFrame;
1838 int64_t fSmallData[8];
1844 int32_t fTickCounter;
1849 int32_t fStackLimit;
1854 const void *fCallbackContext;
1858 const void *fFindProgressCallbackContext;
1861 UBool fInputUniStrMaybeMutable;
1872 #endif // UCONFIG_NO_REGULAR_EXPRESSIONS
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
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...
#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.
A mutable set of Unicode characters and multicharacter strings.
C++ API: Common ICU base class UObject.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#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...
UBool operator!=(const RegexPattern &that) const
Comparison operator.
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.