#ifndef RBBIRPT_H
#define RBBIRPT_H
U_NAMESPACE_BEGIN
static const uint8_t kRuleSet_digit_char = 128;
static const uint8_t kRuleSet_white_space = 129;
static const uint8_t kRuleSet_rule_char = 130;
enum Regex_PatternParseAction {
doPossessivePlus,
doCloseParen,
doProperty,
doBeginMatchMode,
doOrOperator,
doOpenCaptureParen,
doBadOpenParenType,
doRuleError,
doIntevalLowerDigit,
doBackslashs,
doNGOpt,
doBackslashw,
doMismatchedParenErr,
doOpenLookBehind,
doBackslashz,
doIntervalError,
doStar,
doCaret,
doEnterQuoteMode,
doNGStar,
doMatchMode,
doIntervalUpperDigit,
doOpenLookAheadNeg,
doPlus,
doOpenNonCaptureParen,
doBackslashA,
doBackslashB,
doNGPlus,
doSetMatchMode,
doPatFinish,
doBackslashD,
doPossessiveInterval,
doEscapeError,
doBackslashG,
doSuppressComments,
doMatchModeParen,
doOpt,
doInterval,
doLiteralChar,
doIntervalInit,
doOpenAtomicParen,
doBackslashS,
doOpenLookAhead,
doBackRef,
doDollar,
doDotAny,
doBackslashW,
doBackslashX,
doScanUnicodeSet,
doBackslashZ,
doPerlInline,
doPossessiveOpt,
doNOP,
doConditionalExpr,
doExit,
doNGInterval,
doPatStart,
doBadModeFlag,
doBackslashb,
doPossessiveStar,
doBackslashd,
doIntervalSame,
doOpenLookBehindNeg,
rbbiLastAction};
struct RegexTableEl {
Regex_PatternParseAction fAction;
uint8_t fCharClass; uint8_t fNextState; uint8_t fPushState;
UBool fNextChar;
};
static const struct RegexTableEl gRuleParseStateTable[] = {
{doNOP, 0, 0, 0, TRUE}
, {doPatStart, 255, 2,0, FALSE} , {doLiteralChar, 254, 14,0, TRUE} , {doLiteralChar, 130, 14,0, TRUE} , {doScanUnicodeSet, 91 , 14,0, TRUE} , {doNOP, 40 , 27,0, TRUE} , {doDotAny, 46 , 14,0, TRUE} , {doCaret, 94 , 2,0, TRUE} , {doDollar, 36 , 2,0, TRUE} , {doNOP, 92 , 81,0, TRUE} , {doOrOperator, 124 , 2,0, TRUE} , {doCloseParen, 41 , 255,0, TRUE} , {doPatFinish, 253, 2,0, FALSE} , {doRuleError, 255, 101,0, FALSE} , {doNOP, 42 , 59,0, TRUE} , {doNOP, 43 , 62,0, TRUE} , {doNOP, 63 , 65,0, TRUE} , {doIntervalInit, 123 , 68,0, TRUE} , {doNOP, 40 , 23,0, TRUE} , {doNOP, 255, 20,0, FALSE} , {doOrOperator, 124 , 2,0, TRUE} , {doCloseParen, 41 , 255,0, TRUE} , {doNOP, 255, 2,0, FALSE} , {doSuppressComments, 63 , 25,0, TRUE} , {doNOP, 255, 27,0, FALSE} , {doNOP, 35 , 47, 14, TRUE} , {doNOP, 255, 29,0, FALSE} , {doSuppressComments, 63 , 29,0, TRUE} , {doOpenCaptureParen, 255, 2, 14, FALSE} , {doOpenNonCaptureParen, 58 , 2, 14, TRUE} , {doOpenAtomicParen, 62 , 2, 14, TRUE} , {doOpenLookAhead, 61 , 2, 20, TRUE} , {doOpenLookAheadNeg, 33 , 2, 20, TRUE} , {doNOP, 60 , 44,0, TRUE} , {doNOP, 35 , 47, 2, TRUE} , {doBeginMatchMode, 105 , 50,0, FALSE} , {doBeginMatchMode, 109 , 50,0, FALSE} , {doBeginMatchMode, 115 , 50,0, FALSE} , {doBeginMatchMode, 119 , 50,0, FALSE} , {doBeginMatchMode, 120 , 50,0, FALSE} , {doBeginMatchMode, 45 , 50,0, FALSE} , {doConditionalExpr, 40 , 101,0, TRUE} , {doPerlInline, 123 , 101,0, TRUE} , {doBadOpenParenType, 255, 101,0, FALSE} , {doOpenLookBehind, 61 , 2, 20, TRUE} , {doOpenLookBehindNeg, 33 , 2, 20, TRUE} , {doBadOpenParenType, 255, 101,0, FALSE} , {doNOP, 41 , 255,0, TRUE} , {doMismatchedParenErr, 253, 101,0, FALSE} , {doNOP, 255, 47,0, TRUE} , {doMatchMode, 105 , 50,0, TRUE} , {doMatchMode, 109 , 50,0, TRUE} , {doMatchMode, 115 , 50,0, TRUE} , {doMatchMode, 119 , 50,0, TRUE} , {doMatchMode, 120 , 50,0, TRUE} , {doMatchMode, 45 , 50,0, TRUE} , {doSetMatchMode, 41 , 2,0, TRUE} , {doMatchModeParen, 58 , 2, 14, TRUE} , {doBadModeFlag, 255, 101,0, FALSE} , {doNGStar, 63 , 20,0, TRUE} , {doPossessiveStar, 43 , 20,0, TRUE} , {doStar, 255, 20,0, FALSE} , {doNGPlus, 63 , 20,0, TRUE} , {doPossessivePlus, 43 , 20,0, TRUE} , {doPlus, 255, 20,0, FALSE} , {doNGOpt, 63 , 20,0, TRUE} , {doPossessiveOpt, 43 , 20,0, TRUE} , {doOpt, 255, 20,0, FALSE} , {doNOP, 129, 68,0, TRUE} , {doNOP, 128, 71,0, FALSE} , {doIntervalError, 255, 101,0, FALSE} , {doIntevalLowerDigit, 128, 71,0, TRUE} , {doNOP, 44 , 75,0, TRUE} , {doIntervalSame, 125 , 78,0, TRUE} , {doIntervalError, 255, 101,0, FALSE} , {doIntervalUpperDigit, 128, 75,0, TRUE} , {doNOP, 125 , 78,0, TRUE} , {doIntervalError, 255, 101,0, FALSE} , {doNGInterval, 63 , 20,0, TRUE} , {doPossessiveInterval, 43 , 20,0, TRUE} , {doInterval, 255, 20,0, FALSE} , {doBackslashA, 65 , 2,0, TRUE} , {doBackslashB, 66 , 2,0, TRUE} , {doBackslashb, 98 , 2,0, TRUE} , {doBackslashd, 100 , 14,0, TRUE} , {doBackslashD, 68 , 14,0, TRUE} , {doBackslashG, 71 , 2,0, TRUE} , {doProperty, 78 , 14,0, FALSE} , {doProperty, 112 , 14,0, FALSE} , {doProperty, 80 , 14,0, FALSE} , {doEnterQuoteMode, 81 , 2,0, TRUE} , {doBackslashS, 83 , 14,0, TRUE} , {doBackslashs, 115 , 14,0, TRUE} , {doBackslashW, 87 , 14,0, TRUE} , {doBackslashw, 119 , 14,0, TRUE} , {doBackslashX, 88 , 14,0, TRUE} , {doBackslashZ, 90 , 2,0, TRUE} , {doBackslashz, 122 , 2,0, TRUE} , {doBackRef, 128, 14,0, TRUE} , {doEscapeError, 253, 101,0, FALSE} , {doLiteralChar, 255, 14,0, TRUE} , {doExit, 255, 101,0, TRUE} };
static const char * const RegexStateNames[] = { 0,
"start",
"term",
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
"expr-quant",
0,
0,
0,
0,
0,
"expr-cont",
0,
0,
"open-paren-quant",
0,
"open-paren-quant2",
0,
"open-paren",
0,
"open-paren-extended",
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
"open-paren-lookbehind",
0,
0,
"paren-comment",
0,
0,
"paren-flag",
0,
0,
0,
0,
0,
0,
0,
0,
"quant-star",
0,
0,
"quant-plus",
0,
0,
"quant-opt",
0,
0,
"interval-open",
0,
0,
"interval-lower",
0,
0,
0,
"interval-upper",
0,
0,
"interval-type",
0,
0,
"backslash",
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
"errorDeath",
0};
U_NAMESPACE_END
#endif