libzypp  17.37.5
zypp::json Namespace Reference

Namespaces

 detail
 

Classes

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

Functions

template<>
json::Value toJSON (const sat::Transaction::Step &step_r)
 See commitbegin on page plugin-commit for the specs. More...
 
template<>
json::Value toJSON (const ZYppCommitResult::TransactionStepList &steps_r)
 
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)
 
static bool isWhiteSpace (const char ch)
 

Variables

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

Function Documentation

◆ toJSON() [1/3]

template<>
json::Value zypp::json::toJSON ( const sat::Transaction::Step step_r)
inline

See commitbegin on page plugin-commit for the specs.

Definition at line 155 of file TargetImpl.cc.

◆ toJSON() [2/3]

template<>
json::Value zypp::json::toJSON ( const ZYppCommitResult::TransactionStepList steps_r)
inline

Definition at line 226 of file TargetImpl.cc.

◆ trueJSON()

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

◆ falseJSON()

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

◆ nullJSON()

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

◆ toJSON() [3/3]

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

Definition at line 322 of file JsonValue.h.

◆ isWhiteSpace()

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

Definition at line 32 of file json.cc.

Variable Documentation

◆ TOK_NAMES

constexpr std::string_view zypp::json::TOK_NAMES[Parser::Token::TOK_COUNT]
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.