载入中...
搜索中...
未找到
ValueRead.h 文件参考
#include "common/Json.h"
#include "common/Value.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 

函数

Result< std::string > eve::readStringMember (const Value::Object &object, std::string_view name)
 Read a required string field, including an empty string, as an owning value.
 
Result< int > eve::readIntValue (const Value &value)
 Read an Int64 value as a range-checked native int without numeric coercion.
 
Result< bool > eve::readBoolValue (const Value &value)
 Read a Bool without coercing integers, strings or other kinds.
 
Result< std::int64_t > eve::readInt64Value (const Value &value)
 Read an Int64 without narrowing or numeric coercion.
 
Result< std::uint32_t > eve::readUInt32Value (const Value &value)
 Read an Int64 as a range-checked UInt32 without numeric coercion.
 
Result< double > eve::readNumericDoubleValue (const Value &value)
 Read an Int64 or Double as a double without imposing a finite-value policy.
 
Result< float > eve::readFiniteFloatValue (const Value &value)
 Convert an Integer or Double to a finite Float after validating its source range.
 
Result< json::UnsignedIntegerScan > eve::scanUnsignedStringValue (const Value &value)
 Scan an unsigned decimal prefix from a required nonempty String value.
 
Result< std::string > eve::readNonEmptyStringMember (const Value::Object &object, std::string_view name)
 Read a required nonempty string field as an independent owning value.
 
Result< json::UnsignedIntegerScan > eve::scanUnsignedStringMember (const Value::Object &object, std::string_view name)
 Scan a required nonempty decimal-string field using from_chars semantics.