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