| 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 |
no test coverage detected