• Home
  • Raw
  • Download

Lines Matching refs:fRXPat

62     fRXPat            = rxp;  in RegexCompile()
70 fModeFlags = fRXPat->fFlags | 0x80000000; in RegexCompile()
114 fRXPat->fPatternString = new UnicodeString(pat); in compile()
116 utext_openConstUnicodeString(&patternText, fRXPat->fPatternString, &e); in compile()
143 U_ASSERT(fRXPat->fPattern == NULL || utext_nativeLength(fRXPat->fPattern) == 0); in compile()
146 fRXPat->fPattern = utext_clone(fRXPat->fPattern, pat, FALSE, TRUE, fStatus); in compile()
150 fRXPat->fStaticSets = RegexStaticSets::gStaticSets->fPropSets; in compile()
151 fRXPat->fStaticSets8 = RegexStaticSets::gStaticSets->fPropSets8; in compile()
314 fRXPat->fMinMatchLen = minMatchLength(3, fRXPat->fCompiledPat->size()-1); in compile()
324 int32_t numSets = fRXPat->fSets->size(); in compile()
325 fRXPat->fSets8 = new Regex8BitSet[numSets]; in compile()
327 if (fRXPat->fSets8 == NULL) { in compile()
333 UnicodeSet *s = (UnicodeSet *)fRXPat->fSets->elementAt(i); in compile()
334 fRXPat->fSets8[i].init(s); in compile()
413 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(savePosition); in doParseActions()
415 op = buildOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+1); in doParseActions()
416 fRXPat->fCompiledPat->setElementAt(op, savePosition); in doParseActions()
425 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); in doParseActions()
431 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); in doParseActions()
484 fParenStack.push(fRXPat->fCompiledPat->size()-3, *fStatus); // The first NOP location in doParseActions()
485 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP loc in doParseActions()
488 fRXPat->fGroupMap->addElement(varsLoc, *fStatus); in doParseActions()
492 int32_t groupNumber = fRXPat->fGroupMap->size(); in doParseActions()
493 …int32_t previousMapping = uhash_puti(fRXPat->fNamedCaptureMap, fCaptureName, groupNumber, fStatus); in doParseActions()
518 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
519 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP loc in doParseActions()
545 fParenStack.push(fRXPat->fCompiledPat->size()-3, *fStatus); // The first NOP in doParseActions()
546 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP in doParseActions()
582 appendOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+ 2); in doParseActions()
583 appendOp(URX_JMP, fRXPat->fCompiledPat->size()+ 3); in doParseActions()
593 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
594 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP location in doParseActions()
621 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The STATE_SAVE location in doParseActions()
622 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP location in doParseActions()
671 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
672 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The 2nd NOP location in doParseActions()
724 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
725 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The 2nd NOP location in doParseActions()
783 if (topLoc == fRXPat->fCompiledPat->size() - 1) { in doParseActions()
784 int32_t repeatedOp = (int32_t)fRXPat->fCompiledPat->elementAti(topLoc); in doParseActions()
818 if (minMatchLength(topLoc, fRXPat->fCompiledPat->size()-1) == 0) { in doParseActions()
825 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
856 int32_t saveStateOp = buildOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()); in doParseActions()
857 fRXPat->fCompiledPat->setElementAt(saveStateOp, saveStateLoc); in doParseActions()
873 int32_t jmp2_loc = fRXPat->fCompiledPat->size(); in doParseActions()
876 fRXPat->fCompiledPat->setElementAt(jmp1_op, jmp1_loc); in doParseActions()
915 if (topLoc == fRXPat->fCompiledPat->size() - 1) { in doParseActions()
916 int32_t repeatedOp = (int32_t)fRXPat->fCompiledPat->elementAti(topLoc); in doParseActions()
921 fRXPat->fCompiledPat->setElementAt(loopOpI, topLoc); in doParseActions()
939 fRXPat->fCompiledPat->setElementAt(loopOpI, topLoc); in doParseActions()
954 if (minMatchLength(saveStateLoc, fRXPat->fCompiledPat->size()-1) == 0) { in doParseActions()
959 fRXPat->fCompiledPat->setElementAt(op, saveStateLoc+1); in doParseActions()
965 int32_t continueLoc = fRXPat->fCompiledPat->size()+1; in doParseActions()
969 fRXPat->fCompiledPat->setElementAt(saveStateOp, saveStateLoc); in doParseActions()
985 int32_t saveLoc = fRXPat->fCompiledPat->size(); // loc 3. in doParseActions()
987 fRXPat->fCompiledPat->setElementAt(jmpOp, jmpLoc); in doParseActions()
1064 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1066 int32_t loopOp = (int32_t)fRXPat->fCompiledPat->popi(); in doParseActions()
1069 fRXPat->fCompiledPat->push(loopOp, *fStatus); in doParseActions()
1286 int32_t numCaptureGroups = fRXPat->fGroupMap->size(); in doParseActions()
1334 int32_t groupNumber = uhash_geti(fRXPat->fNamedCaptureMap, fCaptureName); in doParseActions()
1373 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1376 appendOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+2); in doParseActions()
1404 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1407 int32_t L7 = fRXPat->fCompiledPat->size()+1; in doParseActions()
1409 fRXPat->fCompiledPat->setElementAt(op, topLoc+1); in doParseActions()
1436 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1439 int32_t continueLoc = fRXPat->fCompiledPat->size()+1; in doParseActions()
1441 fRXPat->fCompiledPat->setElementAt(op, topLoc+1); in doParseActions()
1509 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP in doParseActions()
1510 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP in doParseActions()
1926 if (fLiteralChars.length() > 0x00ffffff || fRXPat->fLiteralText.length() > 0x00ffffff) { in fixLiterals()
1930 appendOp(URX_STRING_I, fRXPat->fLiteralText.length()); in fixLiterals()
1934 appendOp(URX_STRING, fRXPat->fLiteralText.length()); in fixLiterals()
1939 fRXPat->fLiteralText.append(fLiteralChars); in fixLiterals()
1989 fRXPat->fCompiledPat->addElement(op, *fStatus); in appendOp()
1990 if ((fRXPat->fCompiledPat->size() > 0x00fffff0) && U_SUCCESS(*fStatus)) { in appendOp()
2010 UVector64 *code = fRXPat->fCompiledPat; in insertOp()
2072 if (size <= 0 || size > 0x100 || fRXPat->fDataSize < 0) { in allocateData()
2076 int32_t dataIndex = fRXPat->fDataSize; in allocateData()
2077 fRXPat->fDataSize += size; in allocateData()
2078 if (fRXPat->fDataSize >= 0x00fffff0) { in allocateData()
2099 if (size <= 0 || size > 0x100 || fRXPat->fFrameSize < 0) { in allocateStackData()
2103 int32_t dataIndex = fRXPat->fFrameSize; in allocateStackData()
2104 fRXPat->fFrameSize += size; in allocateStackData()
2105 if (fRXPat->fFrameSize >= 0x00fffff0) { in allocateStackData()
2134 if (fRXPat->fCompiledPat->size() == fMatchCloseParen) in blockTopLoc()
2139 U_ASSERT(URX_TYPE(((uint32_t)fRXPat->fCompiledPat->elementAti(theLoc))) == URX_NOP); in blockTopLoc()
2145 theLoc = fRXPat->fCompiledPat->size()-1; in blockTopLoc()
2146 int32_t opAtTheLoc = (int32_t)fRXPat->fCompiledPat->elementAti(theLoc); in blockTopLoc()
2154 fRXPat->fCompiledPat->insertElementAt(nop, theLoc, *fStatus); in blockTopLoc()
2195 U_ASSERT(patIdx>0 && patIdx <= fRXPat->fCompiledPat->size()); in handleCloseParen()
2196 patOp = (int32_t)fRXPat->fCompiledPat->elementAti(patIdx); in handleCloseParen()
2198 patOp |= fRXPat->fCompiledPat->size(); // Set it now. in handleCloseParen()
2199 fRXPat->fCompiledPat->setElementAt(patOp, patIdx); in handleCloseParen()
2224 int32_t captureOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen+1); in handleCloseParen()
2236 int32_t stoOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen+1); in handleCloseParen()
2245 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-5); in handleCloseParen()
2255 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-1); in handleCloseParen()
2264 int32_t saveOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen); in handleCloseParen()
2266 int32_t dest = fRXPat->fCompiledPat->size()-1; in handleCloseParen()
2268 fRXPat->fCompiledPat->setElementAt(saveOp, fMatchOpenParen); in handleCloseParen()
2277 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-4); in handleCloseParen()
2286 int32_t patEnd = fRXPat->fCompiledPat->size() - 1; in handleCloseParen()
2301 fRXPat->fCompiledPat->setElementAt(minML, fMatchOpenParen-2); in handleCloseParen()
2302 fRXPat->fCompiledPat->setElementAt(maxML, fMatchOpenParen-1); in handleCloseParen()
2314 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-5); in handleCloseParen()
2322 int32_t patEnd = fRXPat->fCompiledPat->size() - 1; in handleCloseParen()
2337 fRXPat->fCompiledPat->setElementAt(minML, fMatchOpenParen-3); in handleCloseParen()
2338 fRXPat->fCompiledPat->setElementAt(maxML, fMatchOpenParen-2); in handleCloseParen()
2342 int32_t op = buildOp(URX_RELOC_OPRND, fRXPat->fCompiledPat->size()); in handleCloseParen()
2343 fRXPat->fCompiledPat->setElementAt(op, fMatchOpenParen-1); in handleCloseParen()
2356 fMatchCloseParen = fRXPat->fCompiledPat->size(); in handleCloseParen()
2402 int32_t setNumber = fRXPat->fSets->size(); in compileSet()
2403 fRXPat->fSets->addElement(theSet, *fStatus); in compileSet()
2447 fRXPat->fCompiledPat->setElementAt(op, topOfBlock); in compileInterval()
2453 int32_t loopEnd = fRXPat->fCompiledPat->size(); in compileInterval()
2455 fRXPat->fCompiledPat->setElementAt(op, topOfBlock+1); in compileInterval()
2458 fRXPat->fCompiledPat->setElementAt(fIntervalLow, topOfBlock+2); in compileInterval()
2459 fRXPat->fCompiledPat->setElementAt(fIntervalUpper, topOfBlock+3); in compileInterval()
2489 fRXPat->fCompiledPat->setSize(topOfBlock); in compileInlineInterval()
2499 if (topOfBlock != fRXPat->fCompiledPat->size()-1 && fIntervalUpper != 1) { in compileInlineInterval()
2509 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(topOfBlock); in compileInlineInterval()
2514 int32_t endOfSequenceLoc = fRXPat->fCompiledPat->size()-1 in compileInlineInterval()
2519 fRXPat->fCompiledPat->setElementAt(saveOp, topOfBlock); in compileInlineInterval()
2674 int32_t end = fRXPat->fCompiledPat->size(); in matchStartType()
2682 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2722 fRXPat->fStartType = START_START; in matchStartType()
2729 fRXPat->fStartType = START_LINE; in matchStartType()
2737 fRXPat->fInitialChars->add(URX_VAL(op)); in matchStartType()
2748 U_ASSERT(sn > 0 && sn < fRXPat->fSets->size()); in matchStartType()
2749 const UnicodeSet *s = (UnicodeSet *)fRXPat->fSets->elementAt(sn); in matchStartType()
2750 fRXPat->fInitialChars->addAll(*s); in matchStartType()
2762 U_ASSERT(sn > 0 && sn < fRXPat->fSets->size()); in matchStartType()
2763 const UnicodeSet *s = (UnicodeSet *)fRXPat->fSets->elementAt(sn); in matchStartType()
2764 fRXPat->fInitialChars->addAll(*s); in matchStartType()
2774 fRXPat->fInitialChars->clear(); in matchStartType()
2775 fRXPat->fInitialChars->complement(); in matchStartType()
2786 const UnicodeSet *s = fRXPat->fStaticSets[sn]; in matchStartType()
2787 fRXPat->fInitialChars->addAll(*s); in matchStartType()
2799 const UnicodeSet *s = fRXPat->fStaticSets[sn]; in matchStartType()
2802 fRXPat->fInitialChars->addAll(sc); in matchStartType()
2819 fRXPat->fInitialChars->addAll(s); in matchStartType()
2836 fRXPat->fInitialChars->addAll(s); in matchStartType()
2855 fRXPat->fInitialChars->addAll(s); in matchStartType()
2874 fRXPat->fInitialChars->addAll(starters); in matchStartType()
2878 fRXPat->fInitialChars->add(c); in matchStartType()
2894 fRXPat->fInitialChars->clear(); in matchStartType()
2895 fRXPat->fInitialChars->complement(); in matchStartType()
2960 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2968 UChar32 c = fRXPat->fLiteralText.char32At(stringStartIdx); in matchStartType()
2969 fRXPat->fInitialChars->add(c); in matchStartType()
2974 fRXPat->fInitialStringIdx = stringStartIdx; in matchStartType()
2975 fRXPat->fInitialStringLen = stringLen; in matchStartType()
2989 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2997 UChar32 c = fRXPat->fLiteralText.char32At(stringStartIdx); in matchStartType()
3000 fRXPat->fInitialChars->addAll(s); in matchStartType()
3018 int32_t loopEndLoc = (int32_t)fRXPat->fCompiledPat->elementAti(loc+1); in matchStartType()
3020 int32_t minLoopCount = (int32_t)fRXPat->fCompiledPat->elementAti(loc+2); in matchStartType()
3062 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
3114 fRXPat->fInitialChars8->init(fRXPat->fInitialChars); in matchStartType()
3125 if (fRXPat->fStartType == START_START) { in matchStartType()
3128 } else if (numInitialStrings == 1 && fRXPat->fMinMatchLen > 0) { in matchStartType()
3130 UChar32 c = fRXPat->fLiteralText.char32At(fRXPat->fInitialStringIdx); in matchStartType()
3131 U_ASSERT(fRXPat->fInitialChars->contains(c)); in matchStartType()
3132 fRXPat->fStartType = START_STRING; in matchStartType()
3133 fRXPat->fInitialChar = c; in matchStartType()
3134 } else if (fRXPat->fStartType == START_LINE) { in matchStartType()
3137 } else if (fRXPat->fMinMatchLen == 0) { in matchStartType()
3139 fRXPat->fStartType = START_NO_INFO; in matchStartType()
3140 } else if (fRXPat->fInitialChars->size() == 1) { in matchStartType()
3142 fRXPat->fStartType = START_CHAR; in matchStartType()
3143 fRXPat->fInitialChar = fRXPat->fInitialChars->charAt(0); in matchStartType()
3144 U_ASSERT(fRXPat->fInitialChar != (UChar32)-1); in matchStartType()
3145 } else if (fRXPat->fInitialChars->contains((UChar32)0, (UChar32)0x10ffff) == FALSE && in matchStartType()
3146 fRXPat->fMinMatchLen > 0) { in matchStartType()
3148 fRXPat->fStartType = START_SET; in matchStartType()
3151 fRXPat->fStartType = START_NO_INFO; in matchStartType()
3179 U_ASSERT(end < fRXPat->fCompiledPat->size()); in minMatchLength()
3200 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3312 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3338 int32_t loopEndLoc = (int32_t)fRXPat->fCompiledPat->elementAti(loc+1); in minMatchLength()
3340 int32_t minLoopCount = (int32_t)fRXPat->fCompiledPat->elementAti(loc+2); in minMatchLength()
3375 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3464 U_ASSERT(end < fRXPat->fCompiledPat->size()); in maxMatchLength()
3479 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3608 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3636 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3646 int32_t loopEndLoc = URX_VAL(fRXPat->fCompiledPat->elementAti(loc+1)); in maxMatchLength()
3654 … int32_t maxLoopCount = static_cast<int32_t>(fRXPat->fCompiledPat->elementAti(loc+3)); in maxMatchLength()
3708 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3758 int32_t end = fRXPat->fCompiledPat->size(); in stripNOPs()
3767 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in stripNOPs()
3782 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(src); in stripNOPs()
3802 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3811 if (where > fRXPat->fGroupMap->size()) { in stripNOPs()
3815 where = fRXPat->fGroupMap->elementAti(where-1); in stripNOPs()
3817 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3820 fRXPat->fNeedsAltInput = TRUE; in stripNOPs()
3873 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3884 fRXPat->fCompiledPat->setSize(dst); in stripNOPs()
3920 …utext_extract(fRXPat->fPattern, fScanIndex-U_PARSE_CONTEXT_LEN+1, fScanIndex, fParseErr->preContex… in error()
3921 …utext_extract(fRXPat->fPattern, fScanIndex, fScanIndex+U_PARSE_CONTEXT_LEN-1, fParseErr->postConte… in error()
3969 ch = UTEXT_NEXT32(fRXPat->fPattern); in nextCharLL()
4017 fScanIndex = UTEXT_GETNATIVEINDEX(fRXPat->fPattern); in nextChar()
4075 int64_t pos = UTEXT_GETNATIVEINDEX(fRXPat->fPattern); in nextChar()
4085 if (UTEXT_FULL_TEXT_IN_CHUNK(fRXPat->fPattern, fPatternLength)) { in nextChar()
4087 …regex_ucstr_unescape_charAt, &endIndex, (int32_t)fPatternLength, (void *)fRXPat->fPattern->chunkCo… in nextChar()
4093 UTEXT_SETNATIVEINDEX(fRXPat->fPattern, endIndex); in nextChar()
4096 … struct URegexUTextUnescapeCharContext context = U_REGEX_UTEXT_UNESCAPE_CONTEXT(fRXPat->fPattern); in nextChar()
4098 UTEXT_SETNATIVEINDEX(fRXPat->fPattern, pos); in nextChar()
4104 UTEXT_PREVIOUS32(fRXPat->fPattern); in nextChar()
4106 utext_moveIndex32(fRXPat->fPattern, offset - context.lastOffset - 1); in nextChar()
4299 int64_t savedNextIndex = UTEXT_GETNATIVEINDEX(fRXPat->fPattern); in scanPosixProp()
4359 UTEXT_SETNATIVEINDEX(fRXPat->fPattern, savedNextIndex); in scanPosixProp()
4415 set = new UnicodeSet(*(fRXPat->fStaticSets[URX_ISWORD_SET])); in createSetForProperty()