MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / get_string

Method get_string

lesson6-Segmentation/json.hpp:9967–9983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9965 */
9966 template<typename NumberType>
9967 bool get_string(const input_format_t format,
9968 const NumberType len,
9969 string_t& result)
9970 {
9971 bool success = true;
9972 for (NumberType i = 0; i < len; i++)
9973 {
9974 get();
9975 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string")))
9976 {
9977 success = false;
9978 break;
9979 }
9980 result.push_back(static_cast<typename string_t::value_type>(current));
9981 };
9982 return success;
9983 }
9984
9985 /*!
9986 @brief create a byte array by reading bytes from the input

Callers 1

sax_parse_internalMethod · 0.80

Calls 2

getFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected