libzypp 17.37.18
zypp::json Namespace Reference

Namespaces

namespace  detail

Classes

class  Array
class  Bool
class  Int
class  Null
class  Number
class  Object
class  Parser
class  String
class  UInt
class  Value

Functions

static bool isWhiteSpace (const char ch)
static constexpr std::string_view trueJSON ("true")
static constexpr std::string_view falseJSON ("false")
static constexpr std::string_view nullJSON ("null")
template<typename T>
Value toJSON (T &&v)
std::ostream & operator<< (std::ostream &str, const Bool &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const Null &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const Number &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const Int &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const UInt &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const String &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const Array &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const Object &obj)
 Stream output.
std::ostream & operator<< (std::ostream &str, const Value &obj)
 Stream output.

Variables

constexpr std::string_view TOK_NAMES [Parser::Token::TOK_COUNT]

Function Documentation

◆ isWhiteSpace()

bool zypp::json::isWhiteSpace ( const char ch)
static

Definition at line 32 of file json.cc.

◆ trueJSON()

constexpr std::string_view zypp::json::trueJSON ( "true" )
staticconstexpr

◆ falseJSON()

constexpr std::string_view zypp::json::falseJSON ( "false" )
staticconstexpr

◆ nullJSON()

constexpr std::string_view zypp::json::nullJSON ( "null" )
staticconstexpr

◆ toJSON()

template<typename T>
Value zypp::json::toJSON ( T && v)

Definition at line 322 of file JsonValue.h.

Variable Documentation

◆ TOK_NAMES

std::string_view zypp::json::TOK_NAMES[Parser::Token::TOK_COUNT]
constexpr
Initial value:
= {
"TOK_STRING",
"TOK_NUMBER_FLOAT",
"TOK_NUMBER_UINT",
"TOK_NUMBER_INT",
"TOK_BOOL_TRUE",
"TOK_BOOL_FALSE",
"TOK_NULL",
"TOK_LSQUARE_BRACKET",
"TOK_RSQUARE_BRACKET",
"TOK_LCURLY_BRACKET",
"TOK_RCURLY_BRACKET",
"TOK_COMMA",
"TOK_COLON",
"TOK_END"
}

Definition at line 15 of file json.cc.