Lines Matching defs:value
67 std::string FormatKV(std::string const& key, std::string const& value) {
69 StrEscape(value).c_str());
72 std::string FormatKV(std::string const& key, const char* value) {
74 StrEscape(value).c_str());
77 std::string FormatKV(std::string const& key, bool value) {
79 value ? "true" : "false");
82 std::string FormatKV(std::string const& key, int64_t value) {
84 ss << '"' << StrEscape(key) << "\": " << value;
88 std::string FormatKV(std::string const& key, double value) {
92 if (std::isnan(value))
93 ss << (value < 0 ? "-" : "") << "NaN";
94 else if (std::isinf(value))
95 ss << (value < 0 ? "-" : "") << "Infinity";
98 std::numeric_limits<decltype(value)>::max_digits10;
101 << value;