Lines Matching refs:format
1611 #if defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO)
1613 #elif defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO)
1616 JSON_HEDLEY_HAS_ATTRIBUTE(format) || \
8556 // we checked the number format before
8572 // we checked the number format before
8589 // we checked the number format before
9158 explicit binary_reader(InputAdapterType&& adapter, const input_format_t format = input_format_t::json) noexcept : ia(std::move(adapter)), input_format(format)
9171 @param[in] format the binary format to parse
9179 bool sax_parse(const input_format_t format,
9187 switch (format)
11242 if (!dim.empty()) // if ndarray, convert to an object in JData annotated array format
11298 In the optimized UBJSON format, a type and a size can be provided to allow
11564 // if bit-8 of size_and_type.second is set to 1, encode bjdata ndarray as an object in JData annotated array format (https://github.com/NeuroJSON/jdata):
11677 exception_message(input_format, "BJData object does not support ND-array size in optimized format", "object"), nullptr));
11850 @param[in] format the current format (for diagnostics)
11862 bool get_number(const input_format_t format, NumberType& result)
11869 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "number")))
11875 if (is_little_endian != (InputIsLittleEndian || format == input_format_t::bjdata))
11894 @param[in] format the current format (for diagnostics)
11905 bool get_string(const input_format_t format,
11913 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string")))
11927 @param[in] format the current format (for diagnostics)
11938 bool get_binary(const input_format_t format,
11946 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "binary")))
11957 @param[in] format the current format (for diagnostics)
11962 bool unexpect_eof(const input_format_t format, const char* context) const
11967 parse_error::create(110, chars_read, exception_message(format, "unexpected end of input", context), nullptr));
11983 @param[in] format the current format
11988 std::string exception_message(const input_format_t format,
11994 switch (format)
12039 /// input format
15649 @param[in] use_count whether to use '#' prefixes (optimized format)
15650 @param[in] use_type whether to use '$' prefixes (optimized format)
15652 @param[in] use_bjdata whether write in BJData format, default is false
15805 if (!write_bjdata_ndarray(*j.m_value.object, use_count, use_type)) // decode bjdata ndarray in the JData format (https://github.com/NeuroJSON/jdata)
16676 void write_compact_float(const number_float_t n, detail::input_format_t format)
16686 oa->write_character(format == detail::input_format_t::cbor
16693 oa->write_character(format == detail::input_format_t::cbor
17838 The format of the resulting decimal representation is similar to printf's %g
17839 format. Returns an iterator pointing past-the-end of the decimal representation.
17979 - floating-point numbers are converted to a string using `"%g"` format
23254 input_format_t format = input_format_t::json,
23259 return format == input_format_t::json
23261 : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sax, strict);
23269 input_format_t format = input_format_t::json,
23274 return format == input_format_t::json
23276 : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sax, strict);
23288 input_format_t format = input_format_t::json,
23293 return format == input_format_t::json
23297 : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sax, strict);
23503 /// @brief create a JSON value from an input in CBOR format
23519 /// @brief create a JSON value from an input in CBOR format
23562 /// @brief create a JSON value from an input in MessagePack format
23577 /// @brief create a JSON value from an input in MessagePack format
23616 /// @brief create a JSON value from an input in UBJSON format
23631 /// @brief create a JSON value from an input in UBJSON format
23671 /// @brief create a JSON value from an input in BJData format
23686 /// @brief create a JSON value from an input in BJData format
23701 /// @brief create a JSON value from an input in BSON format
23716 /// @brief create a JSON value from an input in BSON format