Vince's CSV Parser
Loading...
Searching...
No Matches
csv::internals::ParserDFAState Struct Reference

Explicit DFA state at a parse boundary. More...

#include <core.hpp>

Public Member Functions

 ParserDFAState (bool quote_escape, bool pending_quote=false, bool pending_linefeed=false) noexcept
 

Public Attributes

bool quote_escape = false
 
bool pending_quote = false
 
bool pending_linefeed = false
 

Detailed Description

Explicit DFA state at a parse boundary.

This is intentionally about parser control flow, not field metadata. pending_quote represents the ambiguous case where a chunk ended at a quote while already inside a quoted field; the next byte determines whether that quote closes the field, escapes a quote, or is kept as non-strict literal content.

Definition at line 106 of file core.hpp.

Constructor & Destructor Documentation

◆ ParserDFAState()

csv::internals::ParserDFAState::ParserDFAState ( bool  quote_escape,
bool  pending_quote = false,
bool  pending_linefeed = false 
)
inlinenoexcept

Definition at line 108 of file core.hpp.

Member Data Documentation

◆ pending_linefeed

bool csv::internals::ParserDFAState::pending_linefeed = false

Definition at line 119 of file core.hpp.

◆ pending_quote

bool csv::internals::ParserDFAState::pending_quote = false

Definition at line 118 of file core.hpp.

◆ quote_escape

bool csv::internals::ParserDFAState::quote_escape = false

Definition at line 117 of file core.hpp.


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