MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / get_string

Method get_string

external/json/json.hpp:8218–8233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8216 */
8217 template<typename NumberType>
8218 bool get_string(const input_format_t format,
8219 const NumberType len,
8220 string_t& result)
8221 {
8222 bool success = true;
8223 std::generate_n(std::back_inserter(result), len, [this, &success, &format]()
8224 {
8225 get();
8226 if (JSON_UNLIKELY(not unexpect_eof(format, "string")))
8227 {
8228 success = false;
8229 }
8230 return static_cast<char>(current);
8231 });
8232 return success;
8233 }
8234
8235 /*!
8236 @param[in] format the current format (for diagnostics)

Callers 1

sax_parse_internalMethod · 0.80

Calls 1

getFunction · 0.85

Tested by

no test coverage detected