@@ -1155,34 +1155,6 @@ codet character_refine_preprocesst::convert_reverse_bytes(
1155
1155
&character_refine_preprocesst::expr_of_reverse_bytes, target);
1156
1156
}
1157
1157
1158
- // / Converts function call to an assignment of an expression corresponding to
1159
- // / the java method Character.toCodePoint:(CC)I
1160
- // / \param target: a position in a goto program
1161
- codet character_refine_preprocesst::convert_to_code_point (
1162
- conversion_inputt &target)
1163
- {
1164
- const code_function_callt &function_call=target;
1165
- assert (function_call.arguments ().size ()==2 );
1166
- const exprt &arg0=function_call.arguments ()[0 ];
1167
- const exprt &arg1=function_call.arguments ()[1 ];
1168
- const exprt &result=function_call.lhs ();
1169
- const typet &type=result.type ();
1170
-
1171
- // These operations implement the decoding of a unicode symbol encoded
1172
- // in UTF16 for the supplementary planes (above U+10000).
1173
- // The low ten bits of the first character give the bits 10 to 19 of
1174
- // code point and the low ten bits of the second give the bits 0 to 9,
1175
- // then 0x10000 is added to the result. For more explenations see:
1176
- // https://en.wikipedia.org/wiki/UTF-16
1177
-
1178
- exprt u010000=from_integer (0x010000 , type);
1179
- exprt mask10bit=from_integer (0x03FF , type);
1180
- shl_exprt m1 (bitand_exprt (arg0, mask10bit), from_integer (10 , type));
1181
- bitand_exprt m2 (arg1, mask10bit);
1182
- bitor_exprt pair_value (u010000, bitor_exprt (m1, m2));
1183
- return code_assignt (result, pair_value);
1184
- }
1185
-
1186
1158
// / Converts the character argument to lowercase.
1187
1159
// /
1188
1160
// / TODO: For now we only consider ASCII characters but ultimately
@@ -1481,8 +1453,6 @@ void character_refine_preprocesst::initialize_conversion_table()
1481
1453
1482
1454
// Not supported "java::java.lang.Character.toChars:(I[CI)I"
1483
1455
1484
- conversion_table[" java::java.lang.Character.toCodePoint:(CC)I" ]=
1485
- &character_refine_preprocesst::convert_to_code_point;
1486
1456
conversion_table[" java::java.lang.Character.toLowerCase:(C)C" ]=
1487
1457
&character_refine_preprocesst::convert_to_lower_case_char;
1488
1458
conversion_table[" java::java.lang.Character.toLowerCase:(I)I" ]=
0 commit comments