Skip to content

Commit 9a66e75

Browse files
Remove utf16_native_endian_to_java(std::wstring)
This has been replaced by utf16_native_endian_to_java_string(std::wstring)
1 parent c1a00b2 commit 9a66e75

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/solvers/strings/string_refinement_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ utf16_constant_array_to_java(const array_exprt &arr, std::size_t length)
6363
for(std::size_t i = 0; i < arr.operands().size() && i < length; i++)
6464
out[i] = numeric_cast_v<unsigned>(to_constant_expr(arr.operands()[i]));
6565

66-
return utf16_native_endian_to_java(out);
66+
return utf16_native_endian_to_java_string(out);
6767
}
6868

6969
sparse_arrayt::sparse_arrayt(const with_exprt &expr)

src/util/unicode.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -352,17 +352,6 @@ std::string utf16_native_endian_to_java_string(const std::wstring &in)
352352
return result.str();
353353
}
354354

355-
/// \param in: String in UTF-16 (native endianness) format
356-
/// \return String in US-ASCII format, with \\uxxxx escapes for other characters
357-
std::string utf16_native_endian_to_java(const std::wstring &in)
358-
{
359-
std::ostringstream result;
360-
const std::locale loc;
361-
for(const auto ch : in)
362-
utf16_native_endian_to_java(ch, result, loc);
363-
return result.str();
364-
}
365-
366355
std::string utf16_native_endian_to_utf8(const char16_t utf16_char)
367356
{
368357
return utf16_native_endian_to_utf8(std::u16string(1, utf16_char));

0 commit comments

Comments
 (0)