Lines Matching refs:fCompiledPat
317 fRXPat->fMinMatchLen = minMatchLength(3, fRXPat->fCompiledPat->size()-1); in compile()
371 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_STATE_SAVE, 2), *fStatus); in doParseActions()
372 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_JMP, 3), *fStatus); in doParseActions()
373 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_FAIL, 0), *fStatus); in doParseActions()
396 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_END, 0), *fStatus); in doParseActions()
416 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(savePosition); in doParseActions()
418 op = URX_BUILD(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+1); in doParseActions()
419 fRXPat->fCompiledPat->setElementAt(op, savePosition); in doParseActions()
425 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
429 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); in doParseActions()
434 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
435 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); in doParseActions()
460 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
464 fRXPat->fCompiledPat->addElement(cop, *fStatus); in doParseActions()
465 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
473 fParenStack.push(fRXPat->fCompiledPat->size()-3, *fStatus); // The first NOP location in doParseActions()
474 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP loc in doParseActions()
490 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
491 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
497 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
498 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP loc in doParseActions()
513 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
517 fRXPat->fCompiledPat->addElement(stoOp, *fStatus); in doParseActions()
518 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
526 fParenStack.push(fRXPat->fCompiledPat->size()-3, *fStatus); // The first NOP in doParseActions()
527 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP in doParseActions()
564 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
566 op = URX_BUILD(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+ 2); in doParseActions()
567 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
569 op = URX_BUILD(URX_JMP, fRXPat->fCompiledPat->size()+ 3); in doParseActions()
570 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
573 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
576 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
579 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
580 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
586 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
587 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP location in doParseActions()
608 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
611 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
614 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
620 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The STATE_SAVE location in doParseActions()
621 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP location in doParseActions()
657 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
661 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
662 … fRXPat->fCompiledPat->addElement(0, *fStatus); // MinMatchLength. To be filled later. in doParseActions()
663 … fRXPat->fCompiledPat->addElement(0, *fStatus); // MaxMatchLength. To be filled later. in doParseActions()
667 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
668 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
674 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
675 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The 2nd NOP location in doParseActions()
713 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
717 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
718 … fRXPat->fCompiledPat->addElement(0, *fStatus); // MinMatchLength. To be filled later. in doParseActions()
719 … fRXPat->fCompiledPat->addElement(0, *fStatus); // MaxMatchLength. To be filled later. in doParseActions()
720 … fRXPat->fCompiledPat->addElement(0, *fStatus); // Continue Loc. To be filled later. in doParseActions()
724 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
725 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
731 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP location in doParseActions()
732 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The 2nd NOP location in doParseActions()
790 if (topLoc == fRXPat->fCompiledPat->size() - 1) { in doParseActions()
791 int32_t repeatedOp = (int32_t)fRXPat->fCompiledPat->elementAti(topLoc); in doParseActions()
796 fRXPat->fCompiledPat->addElement(loopOpI, *fStatus); in doParseActions()
800 fRXPat->fCompiledPat->addElement(loopOpC, *fStatus); in doParseActions()
816 fRXPat->fCompiledPat->addElement(loopOpI, *fStatus); in doParseActions()
820 fRXPat->fCompiledPat->addElement(loopOpC, *fStatus); in doParseActions()
830 if (minMatchLength(topLoc, fRXPat->fCompiledPat->size()-1) == 0) { in doParseActions()
838 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
841 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
845 fRXPat->fCompiledPat->addElement(jmpOp, *fStatus); in doParseActions()
858 fRXPat->fCompiledPat->addElement(saveStateOp, *fStatus); in doParseActions()
872 int32_t saveStateOp = URX_BUILD(URX_STATE_SAVE, fRXPat->fCompiledPat->size()); in doParseActions()
873 fRXPat->fCompiledPat->setElementAt(saveStateOp, saveStateLoc); in doParseActions()
889 int32_t jmp2_loc = fRXPat->fCompiledPat->size(); in doParseActions()
892 fRXPat->fCompiledPat->setElementAt(jmp1_op, jmp1_loc); in doParseActions()
895 fRXPat->fCompiledPat->addElement(jmp2_op, *fStatus); in doParseActions()
898 fRXPat->fCompiledPat->addElement(save_op, *fStatus); in doParseActions()
933 if (topLoc == fRXPat->fCompiledPat->size() - 1) { in doParseActions()
934 int32_t repeatedOp = (int32_t)fRXPat->fCompiledPat->elementAti(topLoc); in doParseActions()
939 fRXPat->fCompiledPat->setElementAt(loopOpI, topLoc); in doParseActions()
943 fRXPat->fCompiledPat->addElement(loopOpC, *fStatus); in doParseActions()
959 fRXPat->fCompiledPat->setElementAt(loopOpI, topLoc); in doParseActions()
963 fRXPat->fCompiledPat->addElement(loopOpC, *fStatus); in doParseActions()
976 if (minMatchLength(saveStateLoc, fRXPat->fCompiledPat->size()-1) == 0) { in doParseActions()
982 fRXPat->fCompiledPat->setElementAt(op, saveStateLoc+1); in doParseActions()
988 int32_t continueLoc = fRXPat->fCompiledPat->size()+1; in doParseActions()
992 fRXPat->fCompiledPat->setElementAt(saveStateOp, saveStateLoc); in doParseActions()
995 fRXPat->fCompiledPat->addElement(jmpOp, *fStatus); in doParseActions()
1008 int32_t saveLoc = fRXPat->fCompiledPat->size(); // loc 3. in doParseActions()
1011 fRXPat->fCompiledPat->setElementAt(jmpOp, jmpLoc); in doParseActions()
1012 fRXPat->fCompiledPat->addElement(stateSaveOp, *fStatus); in doParseActions()
1084 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1086 int32_t loopOp = (int32_t)fRXPat->fCompiledPat->popi(); in doParseActions()
1089 fRXPat->fCompiledPat->push(loopOp, *fStatus); in doParseActions()
1093 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1137 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1154 fRXPat->fCompiledPat->addElement(URX_BUILD(op, 0), *fStatus); in doParseActions()
1171 fRXPat->fCompiledPat->addElement(URX_BUILD(op, 0), *fStatus); in doParseActions()
1177 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_CARET, 0), *fStatus); in doParseActions()
1189 fRXPat->fCompiledPat->addElement(URX_BUILD(op, 1), *fStatus); in doParseActions()
1202 fRXPat->fCompiledPat->addElement(URX_BUILD(op, 0), *fStatus); in doParseActions()
1208 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_BACKSLASH_D, 1), *fStatus); in doParseActions()
1213 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_BACKSLASH_D, 0), *fStatus); in doParseActions()
1218 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_BACKSLASH_G, 0), *fStatus); in doParseActions()
1223 fRXPat->fCompiledPat->addElement( in doParseActions()
1229 fRXPat->fCompiledPat->addElement( in doParseActions()
1235 fRXPat->fCompiledPat->addElement( in doParseActions()
1241 fRXPat->fCompiledPat->addElement( in doParseActions()
1247 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_BACKSLASH_X, 0), *fStatus); in doParseActions()
1253 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_DOLLAR, 0), *fStatus); in doParseActions()
1258 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_BACKSLASH_Z, 0), *fStatus); in doParseActions()
1324 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1348 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1351 op = URX_BUILD(URX_STATE_SAVE, fRXPat->fCompiledPat->size()+2); in doParseActions()
1352 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1356 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1360 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1383 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1386 int32_t L7 = fRXPat->fCompiledPat->size()+1; in doParseActions()
1388 fRXPat->fCompiledPat->setElementAt(op, topLoc+1); in doParseActions()
1392 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1396 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1418 fRXPat->fCompiledPat->setElementAt(op, topLoc); in doParseActions()
1421 int32_t continueLoc = fRXPat->fCompiledPat->size()+1; in doParseActions()
1423 fRXPat->fCompiledPat->setElementAt(op, topLoc+1); in doParseActions()
1427 fRXPat->fCompiledPat->addElement(op, *fStatus); in doParseActions()
1484 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
1485 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_NOP, 0), *fStatus); in doParseActions()
1492 fParenStack.push(fRXPat->fCompiledPat->size()-2, *fStatus); // The first NOP in doParseActions()
1493 fParenStack.push(fRXPat->fCompiledPat->size()-1, *fStatus); // The second NOP in doParseActions()
1865 fRXPat->fCompiledPat->addElement(op, *fStatus); in fixLiterals()
1875 fRXPat->fCompiledPat->addElement(op, *fStatus); in fixLiterals()
1877 fRXPat->fCompiledPat->addElement(op, *fStatus); in fixLiterals()
1901 UVector64 *code = fRXPat->fCompiledPat; in insertOp()
1973 if (fRXPat->fCompiledPat->size() == fMatchCloseParen) in blockTopLoc()
1978 U_ASSERT(URX_TYPE(((uint32_t)fRXPat->fCompiledPat->elementAti(theLoc))) == URX_NOP); in blockTopLoc()
1984 theLoc = fRXPat->fCompiledPat->size()-1; in blockTopLoc()
1985 int32_t opAtTheLoc = (int32_t)fRXPat->fCompiledPat->elementAti(theLoc); in blockTopLoc()
1993 fRXPat->fCompiledPat->insertElementAt(nop, theLoc, *fStatus); in blockTopLoc()
2034 U_ASSERT(patIdx>0 && patIdx <= fRXPat->fCompiledPat->size()); in handleCloseParen()
2035 patOp = (int32_t)fRXPat->fCompiledPat->elementAti(patIdx); in handleCloseParen()
2037 patOp |= fRXPat->fCompiledPat->size(); // Set it now. in handleCloseParen()
2038 fRXPat->fCompiledPat->setElementAt(patOp, patIdx); in handleCloseParen()
2063 int32_t captureOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen+1); in handleCloseParen()
2068 fRXPat->fCompiledPat->addElement(endCaptureOp, *fStatus); in handleCloseParen()
2076 int32_t stoOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen+1); in handleCloseParen()
2080 fRXPat->fCompiledPat->addElement(ldOp, *fStatus); in handleCloseParen()
2086 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-5); in handleCloseParen()
2090 fRXPat->fCompiledPat->addElement(op, *fStatus); in handleCloseParen()
2097 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-1); in handleCloseParen()
2101 fRXPat->fCompiledPat->addElement(op, *fStatus); in handleCloseParen()
2103 fRXPat->fCompiledPat->addElement(op, *fStatus); in handleCloseParen()
2105 fRXPat->fCompiledPat->addElement(op, *fStatus); in handleCloseParen()
2109 int32_t saveOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen); in handleCloseParen()
2111 int32_t dest = fRXPat->fCompiledPat->size()-1; in handleCloseParen()
2113 fRXPat->fCompiledPat->setElementAt(saveOp, fMatchOpenParen); in handleCloseParen()
2122 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-4); in handleCloseParen()
2126 fRXPat->fCompiledPat->addElement(op, *fStatus); in handleCloseParen()
2128 fRXPat->fCompiledPat->addElement(op, *fStatus); in handleCloseParen()
2133 int32_t patEnd = fRXPat->fCompiledPat->size() - 1; in handleCloseParen()
2144 fRXPat->fCompiledPat->setElementAt(minML, fMatchOpenParen-2); in handleCloseParen()
2145 fRXPat->fCompiledPat->setElementAt(maxML, fMatchOpenParen-1); in handleCloseParen()
2157 int32_t startOp = (int32_t)fRXPat->fCompiledPat->elementAti(fMatchOpenParen-5); in handleCloseParen()
2161 fRXPat->fCompiledPat->addElement(op, *fStatus); in handleCloseParen()
2166 int32_t patEnd = fRXPat->fCompiledPat->size() - 1; in handleCloseParen()
2177 fRXPat->fCompiledPat->setElementAt(minML, fMatchOpenParen-3); in handleCloseParen()
2178 fRXPat->fCompiledPat->setElementAt(maxML, fMatchOpenParen-2); in handleCloseParen()
2182 op = URX_BUILD(URX_RELOC_OPRND, fRXPat->fCompiledPat->size()); in handleCloseParen()
2183 fRXPat->fCompiledPat->setElementAt(op, fMatchOpenParen-1); in handleCloseParen()
2196 fMatchCloseParen = fRXPat->fCompiledPat->size(); in handleCloseParen()
2223 fRXPat->fCompiledPat->addElement(URX_BUILD(URX_BACKTRACK, 0), *fStatus); in compileSet()
2245 fRXPat->fCompiledPat->addElement(setOp, *fStatus); in compileSet()
2283 fRXPat->fCompiledPat->setElementAt(op, topOfBlock); in compileInterval()
2289 int32_t loopEnd = fRXPat->fCompiledPat->size(); in compileInterval()
2291 fRXPat->fCompiledPat->setElementAt(op, topOfBlock+1); in compileInterval()
2294 fRXPat->fCompiledPat->setElementAt(fIntervalLow, topOfBlock+2); in compileInterval()
2295 fRXPat->fCompiledPat->setElementAt(fIntervalUpper, topOfBlock+3); in compileInterval()
2300 fRXPat->fCompiledPat->addElement(op, *fStatus); in compileInterval()
2324 fRXPat->fCompiledPat->setSize(topOfBlock); in compileInlineInterval()
2328 if (topOfBlock != fRXPat->fCompiledPat->size()-1 && fIntervalUpper != 1) { in compileInlineInterval()
2338 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(topOfBlock); in compileInlineInterval()
2343 int32_t endOfSequenceLoc = fRXPat->fCompiledPat->size()-1 in compileInlineInterval()
2348 fRXPat->fCompiledPat->setElementAt(saveOp, topOfBlock); in compileInlineInterval()
2359 fRXPat->fCompiledPat->addElement(saveOp, *fStatus); in compileInlineInterval()
2362 fRXPat->fCompiledPat->addElement(saveOp, *fStatus); in compileInlineInterval()
2364 fRXPat->fCompiledPat->addElement(op, *fStatus); in compileInlineInterval()
2403 int32_t end = fRXPat->fCompiledPat->size(); in matchStartType()
2411 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2656 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2685 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2720 int32_t loopEndLoc = (int32_t)fRXPat->fCompiledPat->elementAti(loc+1); in matchStartType()
2722 int32_t minLoopCount = (int32_t)fRXPat->fCompiledPat->elementAti(loc+2); in matchStartType()
2764 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in matchStartType()
2881 U_ASSERT(end < fRXPat->fCompiledPat->size()); in minMatchLength()
2902 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3010 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3036 int32_t loopEndLoc = (int32_t)fRXPat->fCompiledPat->elementAti(loc+1); in minMatchLength()
3038 int32_t minLoopCount = (int32_t)fRXPat->fCompiledPat->elementAti(loc+2); in minMatchLength()
3073 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in minMatchLength()
3162 U_ASSERT(end < fRXPat->fCompiledPat->size()); in maxMatchLength()
3177 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3303 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3331 int32_t stringLenOp = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3370 op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in maxMatchLength()
3420 int32_t end = fRXPat->fCompiledPat->size(); in stripNOPs()
3429 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(loc); in stripNOPs()
3444 int32_t op = (int32_t)fRXPat->fCompiledPat->elementAti(src); in stripNOPs()
3464 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3479 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3532 fRXPat->fCompiledPat->setElementAt(op, dst); in stripNOPs()
3543 fRXPat->fCompiledPat->setSize(dst); in stripNOPs()