File tree 2 files changed +2
-1
lines changed
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(
106
106
if (string_refinement_enabled)
107
107
{
108
108
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 ));
110
110
111
111
struct_exprt literal_init (new_symbol.type );
112
112
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);
24
24
25
25
std::string utf32_to_utf8 (const std::basic_string<unsigned int > &s);
26
26
27
+ std::wstring utf8_to_utf16 (const std::string &in, bool swap_bytes);
27
28
std::wstring utf8_to_utf16_big_endian (const std::string &);
28
29
std::wstring utf8_to_utf16_little_endian (const std::string &);
29
30
std::string utf16_little_endian_to_java (const wchar_t ch);
You can’t perform that action at this time.
0 commit comments