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

A loose-match key (lowercase, no _/-/space; UAX44-LM3-ish) built into a fixed buffer, so no heap or <string> is needed at parse time. A name longer than the buffer simply fails to match. More...

Public Member Functions

constexpr std::string_view view () const
 The normalised key as a view into data.
 

Public Attributes

std::array< char, 64 > data {}
 The normalised bytes, the first len of which are meaningful.
 
std::size_t len {}
 Bytes held in data; a longer name is truncated and so matches nothing.
 

Detailed Description

A loose-match key (lowercase, no _/-/space; UAX44-LM3-ish) built into a fixed buffer, so no heap or <string> is needed at parse time. A name longer than the buffer simply fails to match.

Member Function Documentation

◆ view()

constexpr std::string_view real::detail::parser::loose_buf::view ( ) const
inlineconstexpr

The normalised key as a view into data.

Returns
A view valid for this buffer's lifetime.

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