| 179 | } |
| 180 | |
| 181 | std::wstring parse_string(const wchar_t *source) { |
| 182 | auto size = do_parse_string(nullptr, source); |
| 183 | std::vector<wchar_t> buf(size); |
| 184 | do_parse_string(buf.data(), source); |
| 185 | assert(size == buf.size()); |
| 186 | return buf.data(); |
| 187 | } |
| 188 | |
| 189 | // These functions are mostly taken from http://research.microsoft.com |
| 190 |
no test coverage detected