Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::base::parser::NumberParser::Options Struct Reference

Options to modify the parsing behavior. More...

#include "donner/base/parser/NumberParser.h"

Public Member Functions

 Options ()
 Construct a default options struct.
 

Public Attributes

bool forbidOutOfRange = true
 If this is false and the number is out of range, returns an infinite value instead of returning an error.
 

Detailed Description

Options to modify the parsing behavior.

Member Data Documentation

◆ forbidOutOfRange

bool donner::base::parser::NumberParser::Options::forbidOutOfRange = true

If this is false and the number is out of range, returns an infinite value instead of returning an error.

With this set to false, assuming the input string starts with a number, all parses should return successful ParseResults.


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