47 #if !UCONFIG_NO_REGULAR_EXPRESSIONS
65 class RuleBasedBreakIterator;
324 virtual uint32_t flags()
const;
480 int32_t destCapacity,
522 virtual int32_t split(
UText *input,
524 int32_t destCapacity,
540 static UClassID U_EXPORT2 getStaticClassID();
550 UVector64 *fCompiledPat;
555 Regex8BitSet *fSets8;
561 int32_t fMinMatchLen;
573 UVector32 *fGroupMap;
576 int32_t fMaxCaptureDigits;
581 Regex8BitSet *fStaticSets8;
585 int32_t fInitialStringIdx;
586 int32_t fInitialStringLen;
589 Regex8BitSet *fInitialChars8;
590 UBool fNeedsAltInput;
592 friend class RegexCompile;
594 friend class RegexCImpl;
602 void dumpOp(int32_t index)
const;
605 #ifndef U_HIDE_INTERNAL_API
610 void dumpPattern()
const;
801 virtual UBool find();
863 virtual int32_t groupCount()
const;
897 virtual UText *group(int32_t groupNum,
UText *dest, int64_t &group_len,
UErrorCode &status)
const;
924 virtual int32_t start(
UErrorCode &status)
const;
933 virtual int64_t start64(
UErrorCode &status)
const;
949 virtual int32_t start(int32_t group,
UErrorCode &status)
const;
964 virtual int64_t start64(int32_t group,
UErrorCode &status)
const;
980 virtual int32_t end(
UErrorCode &status)
const;
995 virtual int64_t end64(
UErrorCode &status)
const;
1015 virtual int32_t end(int32_t group,
UErrorCode &status)
const;
1034 virtual int64_t end64(int32_t group,
UErrorCode &status)
const;
1161 virtual UText *inputText()
const;
1207 virtual RegexMatcher ®ion(int64_t regionStart, int64_t regionLimit, int64_t startIndex,
UErrorCode &status);
1217 virtual int32_t regionStart()
const;
1227 virtual int64_t regionStart64()
const;
1238 virtual int32_t regionEnd()
const;
1248 virtual int64_t regionEnd64()
const;
1258 virtual UBool hasTransparentBounds()
const;
1288 virtual UBool hasAnchoringBounds()
const;
1318 virtual UBool hitEnd()
const;
1329 virtual UBool requireEnd()
const;
1548 int32_t destCapacity,
1575 virtual int32_t split(
UText *input,
1577 int32_t destCapacity,
1601 virtual void setTimeLimit(int32_t limit,
UErrorCode &status);
1609 virtual int32_t getTimeLimit()
const;
1632 virtual void setStackLimit(int32_t limit,
UErrorCode &status);
1641 virtual int32_t getStackLimit()
const;
1658 const void *context,
1673 const void *&context,
1691 const void *context,
1706 const void *&context,
1709 #ifndef U_HIDE_INTERNAL_API
1715 void setTrace(
UBool state);
1723 static UClassID U_EXPORT2 getStaticClassID();
1743 friend class RegexCImpl;
1745 #ifndef U_HIDE_INTERNAL_API
1747 void resetPreserveRegion();
1756 inline void backTrack(int64_t &inputIdx, int32_t &patIdx);
1757 UBool isWordBoundary(int64_t pos);
1758 UBool isUWordBoundary(int64_t pos);
1759 REStackFrame *resetStack();
1760 inline REStackFrame *StateSave(REStackFrame *fp, int64_t savePatIdx,
UErrorCode &status);
1764 inline UBool findProgressInterrupt(int64_t matchIndex,
UErrorCode &status);
1766 int64_t appendGroup(int32_t groupNum,
UText *dest,
UErrorCode &status)
const;
1770 UBool isChunkWordBoundary(int32_t pos);
1778 UText *fAltInputText;
1780 int64_t fInputLength;
1783 int64_t fRegionStart;
1784 int64_t fRegionLimit;
1786 int64_t fAnchorStart;
1787 int64_t fAnchorLimit;
1793 int64_t fActiveStart;
1794 int64_t fActiveLimit;
1798 UBool fTransparentBounds;
1799 UBool fAnchoringBounds;
1802 int64_t fMatchStart;
1806 int64_t fLastMatchEnd;
1808 int64_t fAppendPosition;
1817 REStackFrame *fFrame;
1822 int64_t fSmallData[8];
1828 int32_t fTickCounter;
1833 int32_t fStackLimit;
1838 const void *fCallbackContext;
1842 const void *fFindProgressCallbackContext;
1845 UBool fInputUniStrMaybeMutable;
1856 #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.