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

The best match so far: earliest start, then smallest branch id. More...

Public Member Functions

void consider (std::int64_t end_pos, std::int32_t pattern_id, std::int32_t pattern_len)
 Keeps the match ending at end_pos if it beats the one held.
 

Public Attributes

std::int64_t start {-1}
 Its start, or -1 before any.
 
std::int32_t id {-1}
 Its branch.
 
std::int32_t len {0}
 Its length.
 

Detailed Description

The best match so far: earliest start, then smallest branch id.

Member Function Documentation

◆ consider()

void real::detail::ac_automaton::best_so_far::consider ( std::int64_t  end_pos,
std::int32_t  pattern_id,
std::int32_t  pattern_len 
)
inline

Keeps the match ending at end_pos if it beats the one held.

Parameters
[in]end_posIts last byte's position.
[in]pattern_idIts branch.
[in]pattern_lenIts length.

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