MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / get_string

Method get_string

dependencies/json/json.hpp:10036–10052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10034 */
10035 template<typename NumberType>
10036 bool get_string(const input_format_t format,
10037 const NumberType len,
10038 string_t& result)
10039 {
10040 bool success = true;
10041 for (NumberType i = 0; i < len; i++)
10042 {
10043 get();
10044 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string")))
10045 {
10046 success = false;
10047 break;
10048 }
10049 result.push_back(static_cast<typename string_t::value_type>(current));
10050 };
10051 return success;
10052 }
10053
10054 /*!
10055 @brief create a byte array by reading bytes from the input

Callers 1

sax_parse_internalMethod · 0.45

Calls 2

getFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected