File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ symbol_exprt get_or_create_string_literal_symbol(
106106 if (string_refinement_enabled)
107107 {
108108 const array_exprt data =
109- utf16_to_array (utf8_to_utf16_little_endian (id2string (value)));
109+ utf16_to_array (utf8_to_utf16 (id2string (value), false ));
110110
111111 struct_exprt literal_init (new_symbol.type );
112112 literal_init.operands ().resize (jls_struct.components ().size ());
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ std::wstring widen(const std::string &s);
2424
2525std::string utf32_to_utf8 (const std::basic_string<unsigned int > &s);
2626
27+ std::wstring utf8_to_utf16 (const std::string &in, bool swap_bytes);
2728std::wstring utf8_to_utf16_big_endian (const std::string &);
2829std::wstring utf8_to_utf16_little_endian (const std::string &);
2930std::string utf16_little_endian_to_java (const wchar_t ch);
You can’t perform that action at this time.
0 commit comments