MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / get_string

Method get_string

extern/json/json.hpp:11909–11925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

sax_parse_internalMethod · 0.80

Calls 2

getFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected