NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
json_writer.cpp 文件参考
#include "nim_wrapper_util/json/writer.h"
#include "nim_wrapper_util/json_tool.h"
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <memory>
#include <set>
#include <sstream>
#include <utility>
#include <cmath>
#include <cstdio>

struct  nim_cpp_wrapper_util::Json::CommentStyle
 Scoped enums are not available until C++11. 更多...
 
struct  nim_cpp_wrapper_util::Json::BuiltStyledStreamWriter
 

命名空间

namespace  nim_cpp_wrapper_util
 JSON (JavaScript Object Notation).
 
namespace  nim_cpp_wrapper_util::Json
 

宏定义

#define isnan(x)   (x != x)
 
#define isfinite   finite
 

类型定义

using nim_cpp_wrapper_util::Json::StreamWriterPtr = std::auto_ptr<StreamWriter>
 

函数

String JSON_API nim_cpp_wrapper_util::Json::valueToString (LargestInt value)
 
String JSON_API nim_cpp_wrapper_util::Json::valueToString (LargestUInt value)
 
String JSON_API nim_cpp_wrapper_util::Json::valueToString (double value, unsigned int precision=Value::defaultRealPrecision, PrecisionType precisionType=PrecisionType::significantDigits)
 
String JSON_API nim_cpp_wrapper_util::Json::valueToString (bool value)
 
static bool nim_cpp_wrapper_util::Json::doesAnyCharRequireEscaping (char const *s, size_t n)
 
static unsigned int nim_cpp_wrapper_util::Json::utf8ToCodepoint (const char *&s, const char *e)
 
static String nim_cpp_wrapper_util::Json::toHex16Bit (unsigned int x)
 
static void nim_cpp_wrapper_util::Json::appendRaw (String &result, unsigned ch)
 
static void nim_cpp_wrapper_util::Json::appendHex (String &result, unsigned ch)
 
static String nim_cpp_wrapper_util::Json::valueToQuotedStringN (const char *value, unsigned length, bool emitUTF8=false)
 
String JSON_API nim_cpp_wrapper_util::Json::valueToQuotedString (const char *value)
 
String JSON_API nim_cpp_wrapper_util::Json::writeString (StreamWriter::Factory const &factory, Value const &root)
 Write into stringstream, then return string, for convenience. A StreamWriter will be created from the factory, used, and then deleted.
 
JSON_API OStreamnim_cpp_wrapper_util::Json::operator<< (OStream &, const Value &root)
 Output using the StyledStreamWriter.
 

变量

static const char nim_cpp_wrapper_util::Json::hex2 []
 

宏定义说明

◆ isfinite

#define isfinite   finite

◆ isnan

#define isnan ( x)    (x != x)