File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ class JSON_StreamParser<char> : public JSON_Parser
243
243
}
244
244
245
245
private:
246
- typename std::streambuf* m_streambuf;
246
+ std::streambuf* m_streambuf;
247
247
};
248
248
249
249
#if !defined(_LIBCPP_VERSION)
@@ -309,7 +309,7 @@ class JSON_StreamParser<utf16char> : public JSON_Parser
309
309
if (low_ch == std::char_traits<utf16char>::eof ())
310
310
{
311
311
// Low surrogate is not present. Replace dangling surrogate with "REPLACEMENT CHARACTER"
312
- m_utf8_buffer = u8" \uFFFD " ;
312
+ m_utf8_buffer = " \xEF\xBF\xBD " ;
313
313
return ;
314
314
}
315
315
u16_str.push_back (static_cast <utf16char>(low_ch));
@@ -321,14 +321,14 @@ class JSON_StreamParser<utf16char> : public JSON_Parser
321
321
catch (...)
322
322
{
323
323
// Conversion failed. Replace the character with the Unicode "REPLACEMENT CHARACTER" https://en.wikipedia.org/wiki/Specials_Unicode_block
324
- m_utf8_buffer = u8" \uFFFD " ;
324
+ m_utf8_buffer = " \xEF\xBF\xBD " ;
325
325
}
326
326
std::reverse (m_utf8_buffer.begin (), m_utf8_buffer.end ());
327
327
328
328
assert (m_utf8_buffer.size () > 0 || m_eof);
329
329
}
330
330
331
- typename std::basic_streambuf<utf16char, std::char_traits<utf16char>>* m_streambuf;
331
+ std::basic_streambuf<utf16char, std::char_traits<utf16char>>* m_streambuf;
332
332
bool m_eof = false ;
333
333
334
334
// The string of utf8 code units are buffered in reverse order
You can’t perform that action at this time.
0 commit comments