Lines Matching refs:offset

131 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
133 out << offset << ":\t"
134 << "save_start\t" << buf.GetU8(offset + 1) << std::endl;
135 return offset + GetSize();
146 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
148 out << offset << ":\t"
149 << "save_end\t" << buf.GetU8(offset + 1) << std::endl;
150 return offset + GetSize();
161 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
163 out << offset << ":\t"
164 << "char\t" << static_cast<char>(buf.GetU16(offset + 1)) << std::endl;
165 return offset + GetSize();
175 uint32_t Char32OpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
177 out << offset << ":\t"
178 << "char32\t" << static_cast<char>(buf.GetU32(offset + 1)) << std::endl;
179 return offset + GetSize();
189 void GotoOpCode::UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const
191 buf->PutU32(offset + 1, para);
194 uint32_t GotoOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
196 out << offset << ":\t"
197 << "goto\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl;
198 return offset + GetSize();
201 uint32_t SplitNextOpCode::InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const
203 buf->Insert(offset, GetSize());
204 buf->PutU8(offset, GetOpCode());
205 buf->PutU32(offset + 1, para);
216 uint32_t SplitNextOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
218 out << offset << ":\t"
219 << "split_next\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl;
220 return offset + GetSize();
223 uint32_t SplitFirstOpCode::InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const
225 buf->Insert(offset, GetSize());
226 buf->PutU8(offset, GetOpCode());
227 buf->PutU32(offset + 1, para);
238 uint32_t SplitFirstOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
240 out << offset << ":\t"
241 << "split_first\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl;
242 return offset + GetSize();
254 uint32_t LoopOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
256 out << offset << ":\t"
257 << "loop\t" << buf.GetU32(offset + 1) + offset + GetSize() << "\t"
258 << buf.GetU32(offset + RegExpOpCode::OP_SIZE_FIVE) << "\t" << buf.GetU32(offset + RegExpOpCode::OP_SIZE_NINE)
260 return offset + GetSize();
272 uint32_t LoopGreedyOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
274 out << offset << ":\t"
275 << "greedy_loop\t" << buf.GetU32(offset + 1) + offset + GetSize() << "\t"
276 << buf.GetU32(offset + RegExpOpCode::OP_SIZE_FIVE) << "\t" << buf.GetU32(offset + RegExpOpCode::OP_SIZE_NINE)
278 return offset + GetSize();
281 uint32_t PushCharOpCode::InsertOpCode(DynChunk *buf, uint32_t offset) const
283 buf->Insert(offset, GetSize());
284 buf->PutU8(offset, GetOpCode());
288 uint32_t PushCharOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
290 out << offset << ":\t"
292 return offset + GetSize();
295 uint32_t PushOpCode::InsertOpCode(DynChunk *buf, uint32_t offset) const
297 buf->Insert(offset, GetSize());
298 buf->PutU8(offset, GetOpCode());
302 uint32_t PushOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
304 out << offset << ":\t"
306 return offset + GetSize();
315 uint32_t PopOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
317 out << offset << ":\t"
319 return offset + GetSize();
322 uint32_t CheckCharOpCode::EmitOpCode(DynChunk *buf, uint32_t offset) const
325 buf->EmitU32(offset);
329 uint32_t CheckCharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
331 out << offset << ":\t"
332 << "check_char\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl;
333 return offset + GetSize();
336 uint32_t SaveResetOpCode::InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t start, uint32_t end) const
340 buf->Insert(offset, GetSize());
341 buf->PutU8(offset, GetOpCode());
342 buf->PutU8(offset + RegExpOpCode::OP_SIZE_ONE, captureStart);
343 buf->PutU8(offset + RegExpOpCode::OP_SIZE_TWO, captureEnd);
347 uint32_t SaveResetOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
349 out << offset << ":\t"
350 << "save_reset\t" << buf.GetU8(offset + RegExpOpCode::OP_SIZE_ONE) << "\t"
351 << buf.GetU8(offset + RegExpOpCode::OP_SIZE_TWO) << std::endl;
352 return offset + GetSize();
361 uint32_t MatchOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
363 out << offset << ":\t"
365 return offset + GetSize();
374 uint32_t MatchEndOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
376 out << offset << ":\t"
378 return offset + GetSize();
387 uint32_t LineStartOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
389 out << offset << ":\t"
391 return offset + GetSize();
400 uint32_t LineEndOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
402 out << offset << ":\t"
404 return offset + GetSize();
413 uint32_t WordBoundaryOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
415 out << offset << ":\t"
417 return offset + GetSize();
427 uint32_t offset) const
429 out << offset << ":\t"
431 return offset + GetSize();
440 uint32_t AllOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
442 out << offset << ":\t"
444 return offset + GetSize();
453 uint32_t DotsOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
455 out << offset << ":\t"
457 return offset + GetSize();
460 uint32_t MatchAheadOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
462 out << offset << ":\t"
463 << "match_ahead\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl;
464 return offset + GetSize();
467 uint32_t RangeOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
469 out << offset << ":\t"
471 size_t size = buf.GetU16(offset + 1);
473 out << buf.GetU16(offset + RegExpOpCode::OP_SIZE_THREE + (i * RegExpOpCode::OP_SIZE_FOUR)) << "\t"
474 << buf.GetU16(offset + RegExpOpCode::OP_SIZE_THREE +
479 return offset + size * RegExpOpCode::OP_SIZE_FOUR + RegExpOpCode::OP_SIZE_THREE;
494 uint32_t Range32OpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
496 out << offset << ":\t"
498 size_t size = buf.GetU16(offset + 1);
500 out << buf.GetU32(offset + RegExpOpCode::OP_SIZE_THREE + (i * RegExpOpCode::OP_SIZE_EIGHT)) << "\t"
501 << buf.GetU32(offset + RegExpOpCode::OP_SIZE_THREE +
506 return offset + size * +RegExpOpCode::OP_SIZE_EIGHT + RegExpOpCode::OP_SIZE_THREE;
521 uint32_t SparseOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
523 out << offset << ":\t"
525 size_t size = buf.GetU16(offset + 1);
527 out << static_cast<char>(buf.GetU16(offset + RegExpOpCode::OP_SIZE_THREE + (i * RegExpOpCode::OP_SIZE_SIX)))
528 << "\t" << buf.GetU32(offset + RegExpOpCode::OP_SIZE_THREE +
530 offset + size * RegExpOpCode::OP_SIZE_SIX + RegExpOpCode::OP_SIZE_THREE
534 return offset + size * RegExpOpCode::OP_SIZE_SIX + RegExpOpCode::OP_SIZE_THREE;
537 uint32_t MatchAheadOpCode::InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const
539 buf->Insert(offset, GetSize());
540 buf->PutU8(offset, GetOpCode());
541 buf->PutU32(offset + 1, para);
545 uint32_t NegativeMatchAheadOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
547 out << offset << ":\t"
548 << "negative_match_ahead\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl;
549 return offset + GetSize();
552 uint32_t NegativeMatchAheadOpCode::InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const
554 buf->Insert(offset, GetSize());
555 buf->PutU8(offset, GetOpCode());
556 buf->PutU32(offset + 1, para);
566 uint32_t PrevOpCode::DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const
568 out << offset << ":\t"
570 return offset + GetSize();
581 uint32_t BackReferenceOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
583 out << offset << ":\t"
584 << "backreference\t" << buf.GetU8(offset + 1) << std::endl;
585 return offset + GetSize();
596 uint32_t BackwardBackReferenceOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const
598 out << offset << ":\t"
599 << "backward_backreference\t" << buf.GetU8(offset + 1) << std::endl;
600 return offset + GetSize();