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

The shape_lead counterpart: optional trail \b/\B, optional \Z/$, then exactly save 1, match ending the program. More...

#include <prefilter.hpp>

Public Attributes

std::uint8_t wb_trail {}
 
std::uint8_t end_anchor {}
 A trailing end anchor was peeled: 0 none, 1 \Z, 2 $ (end, or before ONE final newline, which is why ^X$ is not fullmatch(X)).
 
bool ok {}
 false: not exactly save 1, match at the end after peeling.
 

Detailed Description

The shape_lead counterpart: optional trail \b/\B, optional \Z/$, then exactly save 1, match ending the program.

Member Data Documentation

◆ end_anchor

std::uint8_t real::detail::shape_close::end_anchor {}

A trailing end anchor was peeled: 0 none, 1 \Z, 2 $ (end, or before ONE final newline, which is why ^X$ is not fullmatch(X)).

A recognizer that does not honour it MUST refuse the shape.

◆ wb_trail

std::uint8_t real::detail::shape_close::wb_trail {}

0/1/2, see wb_hint_of.


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