MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / get_string

Method get_string

Source/external/json.hpp:11905–11921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11903 */
11904 template<typename NumberType>
11905 bool get_string(const input_format_t format,
11906 const NumberType len,
11907 string_t& result)
11908 {
11909 bool success = true;
11910 for (NumberType i = 0; i < len; i++)
11911 {
11912 get();
11913 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string")))
11914 {
11915 success = false;
11916 break;
11917 }
11918 result.push_back(static_cast<typename string_t::value_type>(current));
11919 }
11920 return success;
11921 }
11922
11923 /*!
11924 @brief create a byte array by reading bytes from the input

Callers 1

sax_parse_internalMethod · 0.80

Calls 1

getFunction · 0.85

Tested by

no test coverage detected