47 #if U_SHOW_CPLUSPLUS_API 49 #if !UCONFIG_NO_REGULAR_EXPRESSIONS 69 class RuleBasedBreakIterator;
328 virtual uint32_t flags()
const;
476 virtual int32_t groupNumberFromName(
const char *groupName, int32_t nameLength,
UErrorCode &status)
const;
519 int32_t destCapacity,
561 virtual int32_t split(
UText *input,
563 int32_t destCapacity,
579 static UClassID U_EXPORT2 getStaticClassID();
589 UVector64 *fCompiledPat;
594 Regex8BitSet *fSets8;
600 int32_t fMinMatchLen;
612 UVector32 *fGroupMap;
618 Regex8BitSet *fStaticSets8;
622 int32_t fInitialStringIdx;
623 int32_t fInitialStringLen;
626 Regex8BitSet *fInitialChars8;
627 UBool fNeedsAltInput;
631 friend class RegexCompile;
633 friend class RegexCImpl;
639 bool initNamedCaptureMap();
642 void dumpOp(int32_t index)
const;
645 #ifndef U_HIDE_INTERNAL_API 650 void dumpPattern()
const;
836 virtual UBool find();
903 virtual int32_t groupCount()
const;
942 virtual UText *group(int32_t groupNum,
UText *dest, int64_t &group_len,
UErrorCode &status)
const;
951 virtual int32_t start(
UErrorCode &status)
const;
960 virtual int64_t start64(
UErrorCode &status)
const;
976 virtual int32_t start(int32_t group,
UErrorCode &status)
const;
991 virtual int64_t start64(int32_t group,
UErrorCode &status)
const;
1006 virtual int32_t end(
UErrorCode &status)
const;
1021 virtual int64_t end64(
UErrorCode &status)
const;
1041 virtual int32_t end(int32_t group,
UErrorCode &status)
const;
1060 virtual int64_t end64(int32_t group,
UErrorCode &status)
const;
1186 virtual UText *inputText()
const;
1232 virtual RegexMatcher ®ion(int64_t regionStart, int64_t regionLimit, int64_t startIndex,
UErrorCode &status);
1242 virtual int32_t regionStart()
const;
1252 virtual int64_t regionStart64()
const;
1263 virtual int32_t regionEnd()
const;
1273 virtual int64_t regionEnd64()
const;
1283 virtual UBool hasTransparentBounds()
const;
1313 virtual UBool hasAnchoringBounds()
const;
1343 virtual UBool hitEnd()
const;
1354 virtual UBool requireEnd()
const;
1573 int32_t destCapacity,
1600 virtual int32_t split(
UText *input,
1602 int32_t destCapacity,
1626 virtual void setTimeLimit(int32_t limit,
UErrorCode &status);
1634 virtual int32_t getTimeLimit()
const;
1657 virtual void setStackLimit(int32_t limit,
UErrorCode &status);
1666 virtual int32_t getStackLimit()
const;
1683 const void *context,
1698 const void *&context,
1716 const void *context,
1731 const void *&context,
1734 #ifndef U_HIDE_INTERNAL_API 1740 void setTrace(
UBool state);
1748 static UClassID U_EXPORT2 getStaticClassID();
1768 friend class RegexCImpl;
1770 #ifndef U_HIDE_INTERNAL_API 1772 void resetPreserveRegion();
1781 inline void backTrack(int64_t &inputIdx, int32_t &patIdx);
1782 UBool isWordBoundary(int64_t pos);
1783 UBool isUWordBoundary(int64_t pos);
1784 REStackFrame *resetStack();
1785 inline REStackFrame *StateSave(REStackFrame *fp, int64_t savePatIdx,
UErrorCode &status);
1789 inline UBool findProgressInterrupt(int64_t matchIndex,
UErrorCode &status);
1791 int64_t appendGroup(int32_t groupNum,
UText *dest,
UErrorCode &status)
const;
1795 UBool isChunkWordBoundary(int32_t pos);
1803 UText *fAltInputText;
1805 int64_t fInputLength;
1808 int64_t fRegionStart;
1809 int64_t fRegionLimit;
1811 int64_t fAnchorStart;
1812 int64_t fAnchorLimit;
1818 int64_t fActiveStart;
1819 int64_t fActiveLimit;
1823 UBool fTransparentBounds;
1824 UBool fAnchoringBounds;
1827 int64_t fMatchStart;
1831 int64_t fLastMatchEnd;
1833 int64_t fAppendPosition;
1842 REStackFrame *fFrame;
1847 int64_t fSmallData[8];
1853 int32_t fTickCounter;
1858 int32_t fStackLimit;
1863 const void *fCallbackContext;
1867 const void *fFindProgressCallbackContext;
1870 UBool fInputUniStrMaybeMutable;
1881 #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...
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.
UBool URegexMatchCallback(const void *context, int32_t steps)
Function pointer for a regular expression matching callback function.
C API: Parse Error Information.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#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.