Crow  1.0
A C++ microframework for the web
crow::json Namespace Reference

Namespaces

 detail
 

Classes

class  rvalue
 JSON read value. More...
 
class  wvalue
 JSON write value. More...
 

Enumerations

enum  type : char {
  type::Null,
  type::False,
  type::True,
  type::Number,
  type::String,
  type::List,
  type::Object,
  type::Function
}
 
enum  num_type : char {
  num_type::Signed_integer,
  num_type::Unsigned_integer,
  num_type::Floating_point,
  num_type::Null
}
 

Functions

void escape (const std::string &str, std::string &ret)
 
std::string escape (const std::string &str)
 
const char * get_type_str (type t)
 
rvalue load (const char *data, size_t size)
 
bool operator== (const rvalue &l, const std::string &r)
 
bool operator== (const std::string &l, const rvalue &r)
 
bool operator!= (const rvalue &l, const std::string &r)
 
bool operator!= (const std::string &l, const rvalue &r)
 
bool operator== (const rvalue &l, double r)
 
bool operator== (double l, const rvalue &r)
 
bool operator!= (const rvalue &l, double r)
 
bool operator!= (double l, const rvalue &r)
 
rvalue load_nocopy_internal (char *data, size_t size)
 
rvalue load (const char *data)
 
rvalue load (const std::string &str)
 

Enumeration Type Documentation

◆ type

enum crow::json::type : char
strong
Enumerator
Null 
False 
True 
Number 
String 
List 
Object 
Function 

◆ num_type

enum crow::json::num_type : char
strong
Enumerator
Signed_integer 
Unsigned_integer 
Floating_point 
Null 

Function Documentation

◆ escape() [1/2]

void crow::json::escape ( const std::string &  str,
std::string &  ret 
)
inline
Here is the caller graph for this function:

◆ escape() [2/2]

std::string crow::json::escape ( const std::string &  str)
inline
Here is the call graph for this function:

◆ get_type_str()

const char* crow::json::get_type_str ( type  t)
inline
Here is the caller graph for this function:

◆ load() [1/3]

rvalue crow::json::load ( const char *  data,
size_t  size 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==() [1/4]

bool crow::json::operator== ( const rvalue l,
const std::string &  r 
)
inline
Here is the call graph for this function:

◆ operator==() [2/4]

bool crow::json::operator== ( const std::string &  l,
const rvalue r 
)
inline
Here is the call graph for this function:

◆ operator!=() [1/4]

bool crow::json::operator!= ( const rvalue l,
const std::string &  r 
)
inline
Here is the call graph for this function:

◆ operator!=() [2/4]

bool crow::json::operator!= ( const std::string &  l,
const rvalue r 
)
inline
Here is the call graph for this function:

◆ operator==() [3/4]

bool crow::json::operator== ( const rvalue l,
double  r 
)
inline
Here is the call graph for this function:

◆ operator==() [4/4]

bool crow::json::operator== ( double  l,
const rvalue r 
)
inline
Here is the call graph for this function:

◆ operator!=() [3/4]

bool crow::json::operator!= ( const rvalue l,
double  r 
)
inline
Here is the call graph for this function:

◆ operator!=() [4/4]

bool crow::json::operator!= ( double  l,
const rvalue r 
)
inline
Here is the call graph for this function:

◆ load_nocopy_internal()

rvalue crow::json::load_nocopy_internal ( char *  data,
size_t  size 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load() [2/3]

rvalue crow::json::load ( const char *  data)
inline
Here is the call graph for this function:

◆ load() [3/3]

rvalue crow::json::load ( const std::string &  str)
inline
Here is the call graph for this function: