Lines Matching refs:tokenPos

181     bool matchAt(size_t tokenPos,size_t tokenLen,const std::string &str,
207 int tokenPos=0; in compile() local
211 tokenPos++; in compile()
263 prevTokenPos = tokenPos; in compile()
268 prevTokenPos = tokenPos; in compile()
273 prevTokenPos = tokenPos; in compile()
277 prevTokenPos = tokenPos; in compile()
281 prevTokenPos = tokenPos; in compile()
286 prevTokenPos = tokenPos; in compile()
371 int ddiff = static_cast<int>(tokenPos-prevTokenPos); in compile()
377 std::copy_n(data.begin()+prevTokenPos,ddiff,data.begin()+tokenPos); in compile()
379 tokenPos+=ddiff; in compile()
391 tokenPos++; in compile()
399 prevTokenPos = tokenPos; in compile()
448 bool Ex::Private::matchAt(size_t tokenPos,size_t tokenLen,const std::string &str,Match &match,const… in matchAt() argument
450 …DBG("%d:matchAt(tokenPos=%zu, str='%s', pos=%zu)\n",level,tokenPos,pos<str.length() ? str.substr(p… in matchAt()
487 auto processSequence = [this,&tokenPos,&tokenLen,&index,&str,&matchCharClass, in matchAt()
491 PToken tok = data[++tokenPos]; in matchAt()
496 tokenPos++; in matchAt()
500 …while (index<=str.length() && matchCharClass(tokenPos,str[index])) { index++; if (type==Optional) … in matchAt()
501 tokenPos+=tok.value()+1; // skip over character ranges + end token in matchAt()
506 tokenPos++; in matchAt()
511 tokenPos++; in matchAt()
516 tokenPos++; in matchAt()
521 tokenPos++; in matchAt()
526 tokenPos++; in matchAt()
530 size_t tokenStart = ++tokenPos; in matchAt()
531 while (tokenPos<tokenLen && data[tokenPos].kind()!=PToken::Kind::EndCapture) { tokenPos++; } in matchAt()
534 bool found = matchAt(tokenStart,tokenPos,str,rangeMatch,index,level+1); in matchAt()
539 tokenPos++; // skip over EndCapture in matchAt()
541 tokenPos++; // skip over end marker in matchAt()
545 bool found = matchAt(tokenPos,tokenLen,str,match,index,level+1); in matchAt()
556 while (tokenPos<tokenLen) in matchAt()
558 PToken tok = data[tokenPos]; in matchAt()
559 DBG("loop tokenPos=%zu token=%s\n",tokenPos,tok.kindStr()); in matchAt()
564 index++,tokenPos++; in matchAt()
568 if (index>=str.length() || !matchCharClass(tokenPos,str[index])) return false; in matchAt()
569 index++,tokenPos+=tok.value()+1; // skip over character ranges + end token in matchAt()
629 if (tokenPos<tokenLen-1 && data[tokenPos+1].kind()==PToken::Kind::BeginCapture) in matchAt()
640 tokenPos++; in matchAt()