• Home
  • Raw
  • Download

Lines Matching refs:fRXPat

60     fRXPat            = rxp;  in RegexCompile()
68 fModeFlags = fRXPat->fFlags | 0x80000000; in RegexCompile()
111 fRXPat->fPatternString = new UnicodeString(pat); in compile()
113 utext_openConstUnicodeString(&patternText, fRXPat->fPatternString, &e); in compile()
140 U_ASSERT(fRXPat->fPattern == NULL || utext_nativeLength(fRXPat->fPattern) == 0); in compile()
143 fRXPat->fPattern = utext_clone(fRXPat->fPattern, pat, FALSE, TRUE, fStatus); in compile()
147 fRXPat->fStaticSets = RegexStaticSets::gStaticSets->fPropSets; in compile()
148 fRXPat->fStaticSets8 = RegexStaticSets::gStaticSets->fPropSets8; in compile()
311 fRXPat->fMinMatchLen = minMatchLength(3, fRXPat->fCompiledPat->size()-1); in compile()
321 int32_t numSets = fRXPat->fSets->size(); in compile()
322 fRXPat->fSets8 = new Regex8BitSet[numSets]; in compile()
324 if (fRXPat->fSets8 == NULL) { in compile()
330 UnicodeSet *s = (UnicodeSet *)fRXPat->fSets->elementAt(i); in compile()
331 fRXPat->fSets8[i].init(s); in compile()
410 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(savePosition); in doParseActions()
412 op = buildOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+1); in doParseActions()
413 fRXPat->fCompiledPat->setElementAt(op, savePosition); in doParseActions()
422 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); in doParseActions()
428 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); in doParseActions()
481 fParenStack.push(fRXPat->fCompiledPat->size()-3, *fStatus); // The first NOP location in doParseActions()
482 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP loc in doParseActions()
485 fRXPat->fGroupMap->addElement(varsLoc, *fStatus); in doParseActions()
489 int32_t groupNumber = fRXPat->fGroupMap->size(); in doParseActions()
490 …int32_t previousMapping = uhash_puti(fRXPat->fNamedCaptureMap, fCaptureName, groupNumber, fStatus); in doParseActions()
515 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
516 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP loc in doParseActions()
542 fParenStack.push(fRXPat->fCompiledPat->size()-3, *fStatus); // The first NOP in doParseActions()
543 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP in doParseActions()
579 appendOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+ 2); in doParseActions()
580 appendOp(URX_JMP, fRXPat->fCompiledPat->size()+ 3); in doParseActions()
590 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
591 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP location in doParseActions()
618 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The STATE_SAVE location in doParseActions()
619 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP location in doParseActions()
668 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
669 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The 2nd NOP location in doParseActions()
721 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
722 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The 2nd NOP location in doParseActions()
780 if (topLoc == fRXPat->fCompiledPat->size() - 1) { in doParseActions()
781 int32_t repeatedOp = (int32_t)fRXPat->fCompiledPat->elementAti(topLoc); in doParseActions()
815 if (minMatchLength(topLoc, fRXPat->fCompiledPat->size()-1) == 0) { in doParseActions()
822 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
853 int32_t saveStateOp = buildOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()); in doParseActions()
854 fRXPat->fCompiledPat->setElementAt(saveStateOp, saveStateLoc); in doParseActions()
870 int32_t jmp2_loc = fRXPat->fCompiledPat->size(); in doParseActions()
873 fRXPat->fCompiledPat->setElementAt(jmp1_op, jmp1_loc); in doParseActions()
912 if (topLoc == fRXPat->fCompiledPat->size() - 1) { in doParseActions()
913 int32_t repeatedOp = (int32_t)fRXPat->fCompiledPat->elementAti(topLoc); in doParseActions()
918 fRXPat->fCompiledPat->setElementAt(loopOpI, topLoc); in doParseActions()
936 fRXPat->fCompiledPat->setElementAt(loopOpI, topLoc); in doParseActions()
951 if (minMatchLength(saveStateLoc, fRXPat->fCompiledPat->size()-1) == 0) { in doParseActions()
956 fRXPat->fCompiledPat->setElementAt(op, saveStateLoc+1); in doParseActions()
962 int32_t continueLoc = fRXPat->fCompiledPat->size()+1; in doParseActions()
966 fRXPat->fCompiledPat->setElementAt(saveStateOp, saveStateLoc); in doParseActions()
982 int32_t saveLoc = fRXPat->fCompiledPat->size(); // loc 3. in doParseActions()
984 fRXPat->fCompiledPat->setElementAt(jmpOp, jmpLoc); in doParseActions()
1061 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1063 int32_t loopOp = (int32_t)fRXPat->fCompiledPat->popi(); in doParseActions()
1066 fRXPat->fCompiledPat->push(loopOp, *fStatus); in doParseActions()
1283 int32_t numCaptureGroups = fRXPat->fGroupMap->size(); in doParseActions()
1331 int32_t groupNumber = uhash_geti(fRXPat->fNamedCaptureMap, fCaptureName); in doParseActions()
1370 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1373 appendOp(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+2); in doParseActions()
1401 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1404 int32_t L7 = fRXPat->fCompiledPat->size()+1; in doParseActions()
1406 fRXPat->fCompiledPat->setElementAt(op, topLoc+1); in doParseActions()
1433 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1436 int32_t continueLoc = fRXPat->fCompiledPat->size()+1; in doParseActions()
1438 fRXPat->fCompiledPat->setElementAt(op, topLoc+1); in doParseActions()
1506 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP in doParseActions()
1507 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP in doParseActions()
1922 if (fLiteralChars.length() > 0x00ffffff || fRXPat->fLiteralText.length() > 0x00ffffff) { in fixLiterals()
1926 appendOp(URX_STRING_I, fRXPat->fLiteralText.length()); in fixLiterals()
1930 appendOp(URX_STRING, fRXPat->fLiteralText.length()); in fixLiterals()
1935 fRXPat->fLiteralText.append(fLiteralChars); in fixLiterals()
1985 fRXPat->fCompiledPat->addElement(op, *fStatus); in appendOp()
1986 if ((fRXPat->fCompiledPat->size() > 0x00fffff0) && U_SUCCESS(*fStatus)) { in appendOp()
2006 UVector64 *code = fRXPat->fCompiledPat; in insertOp()
2068 if (size <= 0 || size > 0x100 || fRXPat->fDataSize < 0) { in allocateData()
2072 int32_t dataIndex = fRXPat->fDataSize; in allocateData()
2073 fRXPat->fDataSize += size; in allocateData()
2074 if (fRXPat->fDataSize >= 0x00fffff0) { in allocateData()
2095 if (size <= 0 || size > 0x100 || fRXPat->fFrameSize < 0) { in allocateStackData()
2099 int32_t dataIndex = fRXPat->fFrameSize; in allocateStackData()
2100 fRXPat->fFrameSize += size; in allocateStackData()
2101 if (fRXPat->fFrameSize >= 0x00fffff0) { in allocateStackData()
2130 if (fRXPat->fCompiledPat->size() == fMatchCloseParen) in blockTopLoc()
2135 U_ASSERT(URX_TYPE(((uint32_t)fRXPat->fCompiledPat->elementAti(theLoc))) == URX_NOP); in blockTopLoc()
2141 theLoc = fRXPat->fCompiledPat->size()-1; in blockTopLoc()
2142 int32_t opAtTheLoc = (int32_t)fRXPat->fCompiledPat->elementAti(theLoc); in blockTopLoc()
2150 fRXPat->fCompiledPat->insertElementAt(nop, theLoc, *fStatus); in blockTopLoc()
2191 U_ASSERT(patIdx>0 && patIdx <= fRXPat->fCompiledPat->size()); in handleCloseParen()
2192 patOp = (int32_t)fRXPat->fCompiledPat->elementAti(patIdx); in handleCloseParen()
2194 patOp |= fRXPat->fCompiledPat->size(); // Set it now. in handleCloseParen()
2195 fRXPat->fCompiledPat->setElementAt(patOp, patIdx); in handleCloseParen()
2220 int32_t captureOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen+1); in handleCloseParen()
2232 int32_t stoOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen+1); in handleCloseParen()
2241 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-5); in handleCloseParen()
2251 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-1); in handleCloseParen()
2260 int32_t saveOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen); in handleCloseParen()
2262 int32_t dest = fRXPat->fCompiledPat->size()-1; in handleCloseParen()
2264 fRXPat->fCompiledPat->setElementAt(saveOp, fMatchOpenParen); in handleCloseParen()
2273 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-4); in handleCloseParen()
2282 int32_t patEnd = fRXPat->fCompiledPat->size() - 1; in handleCloseParen()
2297 fRXPat->fCompiledPat->setElementAt(minML, fMatchOpenParen-2); in handleCloseParen()
2298 fRXPat->fCompiledPat->setElementAt(maxML, fMatchOpenParen-1); in handleCloseParen()
2310 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-5); in handleCloseParen()
2318 int32_t patEnd = fRXPat->fCompiledPat->size() - 1; in handleCloseParen()
2333 fRXPat->fCompiledPat->setElementAt(minML, fMatchOpenParen-3); in handleCloseParen()
2334 fRXPat->fCompiledPat->setElementAt(maxML, fMatchOpenParen-2); in handleCloseParen()
2338 int32_t op = buildOp(URX_RELOC_OPRND, fRXPat->fCompiledPat->size()); in handleCloseParen()
2339 fRXPat->fCompiledPat->setElementAt(op, fMatchOpenParen-1); in handleCloseParen()
2352 fMatchCloseParen = fRXPat->fCompiledPat->size(); in handleCloseParen()
2398 int32_t setNumber = fRXPat->fSets->size(); in compileSet()
2399 fRXPat->fSets->addElement(theSet, *fStatus); in compileSet()
2443 fRXPat->fCompiledPat->setElementAt(op, topOfBlock); in compileInterval()
2449 int32_t loopEnd = fRXPat->fCompiledPat->size(); in compileInterval()
2451 fRXPat->fCompiledPat->setElementAt(op, topOfBlock+1); in compileInterval()
2454 fRXPat->fCompiledPat->setElementAt(fIntervalLow, topOfBlock+2); in compileInterval()
2455 fRXPat->fCompiledPat->setElementAt(fIntervalUpper, topOfBlock+3); in compileInterval()
2485 fRXPat->fCompiledPat->setSize(topOfBlock); in compileInlineInterval()
2495 if (topOfBlock != fRXPat->fCompiledPat->size()-1 && fIntervalUpper != 1) { in compileInlineInterval()
2505 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(topOfBlock); in compileInlineInterval()
2510 int32_t endOfSequenceLoc = fRXPat->fCompiledPat->size()-1 in compileInlineInterval()
2515 fRXPat->fCompiledPat->setElementAt(saveOp, topOfBlock); in compileInlineInterval()
2666 int32_t end = fRXPat->fCompiledPat->size(); in matchStartType()
2674 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2714 fRXPat->fStartType = START_START; in matchStartType()
2721 fRXPat->fStartType = START_LINE; in matchStartType()
2729 fRXPat->fInitialChars->add(URX_VAL(op)); in matchStartType()
2740 U_ASSERT(sn > 0 && sn < fRXPat->fSets->size()); in matchStartType()
2741 const UnicodeSet *s = (UnicodeSet *)fRXPat->fSets->elementAt(sn); in matchStartType()
2742 fRXPat->fInitialChars->addAll(*s); in matchStartType()
2754 U_ASSERT(sn > 0 && sn < fRXPat->fSets->size()); in matchStartType()
2755 const UnicodeSet *s = (UnicodeSet *)fRXPat->fSets->elementAt(sn); in matchStartType()
2756 fRXPat->fInitialChars->addAll(*s); in matchStartType()
2766 fRXPat->fInitialChars->clear(); in matchStartType()
2767 fRXPat->fInitialChars->complement(); in matchStartType()
2778 const UnicodeSet *s = fRXPat->fStaticSets[sn]; in matchStartType()
2779 fRXPat->fInitialChars->addAll(*s); in matchStartType()
2791 const UnicodeSet *s = fRXPat->fStaticSets[sn]; in matchStartType()
2794 fRXPat->fInitialChars->addAll(sc); in matchStartType()
2811 fRXPat->fInitialChars->addAll(s); in matchStartType()
2828 fRXPat->fInitialChars->addAll(s); in matchStartType()
2847 fRXPat->fInitialChars->addAll(s); in matchStartType()
2866 fRXPat->fInitialChars->addAll(starters); in matchStartType()
2870 fRXPat->fInitialChars->add(c); in matchStartType()
2886 fRXPat->fInitialChars->clear(); in matchStartType()
2887 fRXPat->fInitialChars->complement(); in matchStartType()
2951 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2959 UChar32 c = fRXPat->fLiteralText.char32At(stringStartIdx); in matchStartType()
2960 fRXPat->fInitialChars->add(c); in matchStartType()
2965 fRXPat->fInitialStringIdx = stringStartIdx; in matchStartType()
2966 fRXPat->fInitialStringLen = stringLen; in matchStartType()
2980 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2988 UChar32 c = fRXPat->fLiteralText.char32At(stringStartIdx); in matchStartType()
2991 fRXPat->fInitialChars->addAll(s); in matchStartType()
3009 int32_t loopEndLoc = (int32_t)fRXPat->fCompiledPat->elementAti(loc+1); in matchStartType()
3011 int32_t minLoopCount = (int32_t)fRXPat->fCompiledPat->elementAti(loc+2); in matchStartType()
3053 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
3105 fRXPat->fInitialChars8->init(fRXPat->fInitialChars); in matchStartType()
3116 if (fRXPat->fStartType == START_START) { in matchStartType()
3119 } else if (numInitialStrings == 1 && fRXPat->fMinMatchLen > 0) { in matchStartType()
3121 UChar32 c = fRXPat->fLiteralText.char32At(fRXPat->fInitialStringIdx); in matchStartType()
3122 U_ASSERT(fRXPat->fInitialChars->contains(c)); in matchStartType()
3123 fRXPat->fStartType = START_STRING; in matchStartType()
3124 fRXPat->fInitialChar = c; in matchStartType()
3125 } else if (fRXPat->fStartType == START_LINE) { in matchStartType()
3128 } else if (fRXPat->fMinMatchLen == 0) { in matchStartType()
3130 fRXPat->fStartType = START_NO_INFO; in matchStartType()
3131 } else if (fRXPat->fInitialChars->size() == 1) { in matchStartType()
3133 fRXPat->fStartType = START_CHAR; in matchStartType()
3134 fRXPat->fInitialChar = fRXPat->fInitialChars->charAt(0); in matchStartType()
3135 U_ASSERT(fRXPat->fInitialChar != (UChar32)-1); in matchStartType()
3136 } else if (fRXPat->fInitialChars->contains((UChar32)0, (UChar32)0x10ffff) == FALSE && in matchStartType()
3137 fRXPat->fMinMatchLen > 0) { in matchStartType()
3139 fRXPat->fStartType = START_SET; in matchStartType()
3142 fRXPat->fStartType = START_NO_INFO; in matchStartType()
3170 U_ASSERT(end < fRXPat->fCompiledPat->size()); in minMatchLength()
3191 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3302 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3328 int32_t loopEndLoc = (int32_t)fRXPat->fCompiledPat->elementAti(loc+1); in minMatchLength()
3330 int32_t minLoopCount = (int32_t)fRXPat->fCompiledPat->elementAti(loc+2); in minMatchLength()
3365 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3454 U_ASSERT(end < fRXPat->fCompiledPat->size()); in maxMatchLength()
3469 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3598 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3626 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3636 int32_t loopEndLoc = URX_VAL(fRXPat->fCompiledPat->elementAti(loc+1)); in maxMatchLength()
3644 … int32_t maxLoopCount = static_cast<int32_t>(fRXPat->fCompiledPat->elementAti(loc+3)); in maxMatchLength()
3698 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3748 int32_t end = fRXPat->fCompiledPat->size(); in stripNOPs()
3757 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in stripNOPs()
3772 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(src); in stripNOPs()
3792 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3801 if (where > fRXPat->fGroupMap->size()) { in stripNOPs()
3805 where = fRXPat->fGroupMap->elementAti(where-1); in stripNOPs()
3807 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3810 fRXPat->fNeedsAltInput = TRUE; in stripNOPs()
3863 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3874 fRXPat->fCompiledPat->setSize(dst); in stripNOPs()
3910 …utext_extract(fRXPat->fPattern, fScanIndex-U_PARSE_CONTEXT_LEN+1, fScanIndex, fParseErr->preContex… in error()
3911 …utext_extract(fRXPat->fPattern, fScanIndex, fScanIndex+U_PARSE_CONTEXT_LEN-1, fParseErr->postConte… in error()
3959 ch = UTEXT_NEXT32(fRXPat->fPattern); in nextCharLL()
4007 fScanIndex = UTEXT_GETNATIVEINDEX(fRXPat->fPattern); in nextChar()
4065 int64_t pos = UTEXT_GETNATIVEINDEX(fRXPat->fPattern); in nextChar()
4075 if (UTEXT_FULL_TEXT_IN_CHUNK(fRXPat->fPattern, fPatternLength)) { in nextChar()
4077 …regex_ucstr_unescape_charAt, &endIndex, (int32_t)fPatternLength, (void *)fRXPat->fPattern->chunkCo… in nextChar()
4083 UTEXT_SETNATIVEINDEX(fRXPat->fPattern, endIndex); in nextChar()
4086 … struct URegexUTextUnescapeCharContext context = U_REGEX_UTEXT_UNESCAPE_CONTEXT(fRXPat->fPattern); in nextChar()
4088 UTEXT_SETNATIVEINDEX(fRXPat->fPattern, pos); in nextChar()
4094 UTEXT_PREVIOUS32(fRXPat->fPattern); in nextChar()
4096 utext_moveIndex32(fRXPat->fPattern, offset - context.lastOffset - 1); in nextChar()
4289 int64_t savedNextIndex = UTEXT_GETNATIVEINDEX(fRXPat->fPattern); in scanPosixProp()
4349 UTEXT_SETNATIVEINDEX(fRXPat->fPattern, savedNextIndex); in scanPosixProp()
4405 set = new UnicodeSet(*(fRXPat->fStaticSets[URX_ISWORD_SET])); in createSetForProperty()