REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
real::detail::lookaround_sub Struct Reference

A bounded lookaround sub-program, referenced by assert_lookaround's arg16. More...

Public Attributes

std::int32_t code_offset {}
 First instruction of the sub-program in code.
 
std::int32_t code_length {}
 Instruction count of the sub-program.
 
std::int32_t l_max {}
 Max bytes the sub-pattern can consume (bounded).
 
look_dir direction {look_dir::ahead}
 Ahead or behind.
 
bool negative {}
 (?! / (?<! (negated assertion).
 

Detailed Description

A bounded lookaround sub-program, referenced by assert_lookaround's arg16.

Its code is a region of the main code buffer, addressed by offset so a copy or move of dynamic_program stores no pointer. l_max bounds what the sub consumes (unbounded ones are rejected at compile time), which keeps the search linear.


The documentation for this struct was generated from the following file: