47 #if !UCONFIG_NO_REGULAR_EXPRESSIONS
83 #undef RegexPatternDump
84 #define RegexPatternDump(pat)
346 virtual uint32_t flags()
const;
505 int32_t destCapacity,
547 virtual int32_t split(
UText *input,
549 int32_t destCapacity,
575 UVector64 *fCompiledPat;
580 Regex8BitSet *fSets8;
586 int32_t fMinMatchLen;
598 UVector32 *fGroupMap;
601 int32_t fMaxCaptureDigits;
606 Regex8BitSet *fStaticSets8;
610 int32_t fInitialStringIdx;
611 int32_t fInitialStringLen;
614 Regex8BitSet *fInitialChars8;
615 UBool fNeedsAltInput;
617 friend class RegexCompile;
619 friend class RegexCImpl;
627 void dumpOp(int32_t index)
const;
821 virtual UBool find();
868 virtual int32_t groupCount()
const;
902 virtual UText *group(int32_t groupNum,
UText *dest, int64_t &group_len,
UErrorCode &status)
const;
929 virtual int32_t start(
UErrorCode &status)
const;
938 virtual int64_t start64(
UErrorCode &status)
const;
954 virtual int32_t start(int32_t group,
UErrorCode &status)
const;
969 virtual int64_t start64(int32_t group,
UErrorCode &status)
const;
985 virtual int32_t end(
UErrorCode &status)
const;
1000 virtual int64_t end64(
UErrorCode &status)
const;
1020 virtual int32_t end(int32_t group,
UErrorCode &status)
const;
1039 virtual int64_t end64(int32_t group,
UErrorCode &status)
const;
1167 virtual UText *inputText()
const;
1213 virtual RegexMatcher ®ion(int64_t regionStart, int64_t regionLimit, int64_t startIndex,
UErrorCode &status);
1223 virtual int32_t regionStart()
const;
1233 virtual int64_t regionStart64()
const;
1244 virtual int32_t regionEnd()
const;
1254 virtual int64_t regionEnd64()
const;
1264 virtual UBool hasTransparentBounds()
const;
1294 virtual UBool hasAnchoringBounds()
const;
1324 virtual UBool hitEnd()
const;
1335 virtual UBool requireEnd()
const;
1554 int32_t destCapacity,
1581 virtual int32_t split(
UText *input,
1583 int32_t destCapacity,
1607 virtual void setTimeLimit(int32_t limit,
UErrorCode &status);
1615 virtual int32_t getTimeLimit()
const;
1638 virtual void setStackLimit(int32_t limit,
UErrorCode &status);
1647 virtual int32_t getStackLimit()
const;
1664 const void *context,
1679 const void *&context,
1697 const void *context,
1712 const void *&context,
1721 void setTrace(
UBool state);
1749 friend class RegexCImpl;
1752 void resetPreserveRegion();
1760 inline void backTrack(int64_t &inputIdx, int32_t &patIdx);
1761 UBool isWordBoundary(int64_t pos);
1762 UBool isUWordBoundary(int64_t pos);
1763 REStackFrame *resetStack();
1764 inline REStackFrame *StateSave(REStackFrame *fp, int64_t savePatIdx,
UErrorCode &status);
1768 int64_t appendGroup(int32_t groupNum,
UText *dest,
UErrorCode &status)
const;
1770 UBool findUsingChunk();
1772 UBool isChunkWordBoundary(int32_t pos);
1780 UText *fAltInputText;
1782 int64_t fInputLength;
1785 int64_t fRegionStart;
1786 int64_t fRegionLimit;
1788 int64_t fAnchorStart;
1789 int64_t fAnchorLimit;
1795 int64_t fActiveStart;
1796 int64_t fActiveLimit;
1800 UBool fTransparentBounds;
1801 UBool fAnchoringBounds;
1804 int64_t fMatchStart;
1808 int64_t fLastMatchEnd;
1810 int64_t fAppendPosition;
1819 REStackFrame *fFrame;
1824 int64_t fSmallData[8];
1830 int32_t fTickCounter;
1835 int32_t fStackLimit;
1840 const void *fCallbackContext;
1844 const void *fFindProgressCallbackContext;
1847 UBool fInputUniStrMaybeMutable;
1860 #endif // UCONFIG_NO_REGULAR_EXPRESSIONS
A subclass of BreakIterator whose behavior is specified using a list of rules.
#define RegexPatternDump(pat)
RBBIPatternDump Debug function, displays the compiled form of a pattern.
Class RegexPattern represents a compiled regular expression.
A mutable set of Unicode characters and multicharacter strings.
#define U_INTERNAL
This is used to declare a function as an internal ICU C API.
UBool URegexFindProgressCallback(const void *context, int64_t matchIndex)
Function pointer for a regular expression find callback function.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
C API: Abstract Unicode Text API.
#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.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Common ICU base class UObject.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
#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.
UObject is the common ICU "boilerplate" class.
C API: Parse Error Information.
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...
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
class RegexMatcher bundles together a regular expression pattern and input text to which the expressi...
UBool operator!=(const RegexPattern &that) const
Comparison operator.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
int8_t UBool
The ICU boolean type.