We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cd1057 + c3e273f commit 88bc1f9Copy full SHA for 88bc1f9
src/util/unicode.cpp
@@ -298,10 +298,16 @@ std::string utf16_little_endian_to_java(const std::wstring &in)
298
result << "\\n";
299
else if(ch=='\r')
300
result << "\\r";
301
+ else if(ch=='\f')
302
+ result << "\\f";
303
+ else if(ch=='\b')
304
+ result << "\\b";
305
+ else if(ch=='\t')
306
+ result << "\\t";
307
else if(ch<=255 && isprint(ch, loc))
308
{
309
const auto uch=static_cast<unsigned char>(ch);
- if(uch=='"')
310
+ if(uch=='"' || uch=='\\')
311
result << '\\';
312
result << uch;
313
}
0 commit comments