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

A parsed character class: its ASCII bitmap plus any non-ASCII code-point ranges. Bundling the two (rather than parallel side tables) makes them impossible to desynchronize. More...

#include <ast.hpp>

Collaboration diagram for real::detail::class_def:
[legend]

Public Attributes

char_class ascii
 ASCII members as a bitmap (all 256 bytes in bytes mode); pre-negation.
 
std::vector< code_rangeranges
 Non-ASCII code-point ranges (code-point mode only; empty otherwise).
 
bool codepoint_predicate {}
 Emit as a match-time klass_cp (a Unicode shorthand \w/\d/\s in text mode), not the byte-NFA.
 

Detailed Description

A parsed character class: its ASCII bitmap plus any non-ASCII code-point ranges. Bundling the two (rather than parallel side tables) makes them impossible to desynchronize.


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