Github   Telegram
No Matches
Classes | Typedefs | Functions | Variables
formats::json::parser Namespace Reference

SAX parser tools. More...


class  ArrayParser
class  BaseError
class  BaseParser
 Base class for SAX parser. More...
class  BaseValidator
class  BoolParser
class  EmptyValidator
class  IntegralParser
class  IntegralParser< std::int32_t >
class  IntegralParser< std::int64_t >
class  InternalParseError
class  JsonValueParser
 SAX-parser for formats::json::Value. More...
class  MapParser
class  NumberParser
class  ParseError
class  ParserHandler
class  ParserState
class  StringParser
class  Subscriber
class  SubscriberSink
class  SubscriberSinkOptional
class  TypedParser
 Main base class for SAX parsers. More...
class  Validator


using IntParser = IntegralParser< std::int32_t >
using Int32Parser = IntegralParser< std::int32_t >
using Int64Parser = IntegralParser< std::int64_t >
using DoubleParser = NumberParser< double >
using FloatParser = NumberParser< float >


template<typename T , typename Parser >
ParseToType (std::string_view input)
template<typename T , typename F >
auto MakeValidator (F f)


template<typename T >
constexpr EmptyValidator< T > kEmptyValidator

Detailed Description

SAX parser tools.

Typedef Documentation

◆ DoubleParser

Definition at line 26 of file number_parser.hpp.

◆ FloatParser

Definition at line 28 of file number_parser.hpp.

◆ Int32Parser

using formats::json::parser::Int32Parser = typedef IntegralParser<std::int32_t>

Definition at line 49 of file int_parser.hpp.

◆ Int64Parser

using formats::json::parser::Int64Parser = typedef IntegralParser<std::int64_t>

Definition at line 50 of file int_parser.hpp.

◆ IntParser

using formats::json::parser::IntParser = typedef IntegralParser<std::int32_t>

Definition at line 48 of file int_parser.hpp.

Function Documentation

◆ MakeValidator()

template<typename T , typename F >
auto formats::json::parser::MakeValidator ( f)

Definition at line 33 of file validator.hpp.

◆ ParseToType()

template<typename T , typename Parser >
T formats::json::parser::ParseToType ( std::string_view  input)

Definition at line 158 of file typed_parser.hpp.

Variable Documentation

◆ kEmptyValidator

template<typename T >
constexpr EmptyValidator<T> formats::json::parser::kEmptyValidator

Definition at line 38 of file validator.hpp.