@@ -321,15 +321,6 @@ exprt character_refine_preprocesst::expr_of_high_surrogate(
321
321
return std::move (high_surrogate);
322
322
}
323
323
324
- // / Converts function call to an assignment of an expression corresponding to
325
- // / the java method Character.highSurrogate:(C)Z
326
- codet character_refine_preprocesst::convert_high_surrogate (
327
- conversion_inputt &target)
328
- {
329
- return convert_char_function (
330
- &character_refine_preprocesst::expr_of_high_surrogate, target);
331
- }
332
-
333
324
// / Determines if the specified character is an ASCII lowercase character.
334
325
// / \param chr: An expression of type character
335
326
// / \param type: A type for the output
@@ -1141,16 +1132,6 @@ exprt character_refine_preprocesst::expr_of_low_surrogate(
1141
1132
return plus_exprt (uDC00, mod_exprt (chr, u0400));
1142
1133
}
1143
1134
1144
- // / Converts function call to an assignment of an expression corresponding to
1145
- // / the java method Character.lowSurrogate:(I)C
1146
- // / \param target: a position in a goto program
1147
- codet character_refine_preprocesst::convert_low_surrogate (
1148
- conversion_inputt &target)
1149
- {
1150
- return convert_char_function (
1151
- &character_refine_preprocesst::expr_of_low_surrogate, target);
1152
- }
1153
-
1154
1135
// / Returns the value obtained by reversing the order of the bytes in the
1155
1136
// / specified char value.
1156
1137
// / \param chr: An expression of type character
@@ -1174,37 +1155,6 @@ codet character_refine_preprocesst::convert_reverse_bytes(
1174
1155
&character_refine_preprocesst::expr_of_reverse_bytes, target);
1175
1156
}
1176
1157
1177
- // / Converts the specified character (Unicode code point) to its UTF-16
1178
- // / representation stored in a char array. If the specified code point is a BMP
1179
- // / (Basic Multilingual Plane or Plane 0) value, the resulting char array has
1180
- // / the same value as codePoint. If the specified code point is a supplementary
1181
- // / code point, the resulting char array has the corresponding surrogate pair.
1182
- // / \param chr: An expression of type character
1183
- // / \param type: A type for the output
1184
- // / \return A character array expression of the given type
1185
- exprt character_refine_preprocesst::expr_of_to_chars (
1186
- const exprt &chr, const typet &type)
1187
- {
1188
- array_typet array_type=to_array_type (type);
1189
- const typet &char_type=array_type.subtype ();
1190
- exprt low_surrogate=expr_of_low_surrogate (chr, char_type);
1191
- array_exprt case1 ({low_surrogate}, array_type);
1192
- exprt high_surrogate = expr_of_high_surrogate (chr, char_type);
1193
- array_exprt case2 (
1194
- {std::move (low_surrogate), std::move (high_surrogate)}, array_type);
1195
- return if_exprt (
1196
- expr_of_is_bmp_code_point (chr, type), std::move (case1), std::move (case2));
1197
- }
1198
-
1199
- // / Converts function call to an assignment of an expression corresponding to
1200
- // / the java method Character.toChars:(I)[C
1201
- // / \param target: a position in a goto program
1202
- codet character_refine_preprocesst::convert_to_chars (conversion_inputt &target)
1203
- {
1204
- return convert_char_function (
1205
- &character_refine_preprocesst::expr_of_to_chars, target);
1206
- }
1207
-
1208
1158
// / Converts function call to an assignment of an expression corresponding to
1209
1159
// / the java method Character.toCodePoint:(CC)I
1210
1160
// / \param target: a position in a goto program
@@ -1433,8 +1383,6 @@ void character_refine_preprocesst::initialize_conversion_table()
1433
1383
&character_refine_preprocesst::convert_get_type_int;
1434
1384
conversion_table[" java::java.lang.Character.hashCode:()I" ]=
1435
1385
&character_refine_preprocesst::convert_hash_code;
1436
- conversion_table[" java::java.lang.Character.highSurrogate:(I)C" ]=
1437
- &character_refine_preprocesst::convert_high_surrogate;
1438
1386
conversion_table[" java::java.lang.Character.isAlphabetic:(I)Z" ]=
1439
1387
&character_refine_preprocesst::convert_is_alphabetic;
1440
1388
conversion_table[" java::java.lang.Character.isBmpCodePoint:(I)Z" ]=
@@ -1523,17 +1471,13 @@ void character_refine_preprocesst::initialize_conversion_table()
1523
1471
&character_refine_preprocesst::convert_is_whitespace_char;
1524
1472
conversion_table[" java::java.lang.Character.isWhitespace:(I)Z" ]=
1525
1473
&character_refine_preprocesst::convert_is_whitespace_int;
1526
- conversion_table[" java::java.lang.Character.lowSurrogate:(I)C" ]=
1527
- &character_refine_preprocesst::convert_is_low_surrogate;
1528
1474
1529
1475
// Not supported "java::java.lang.Character.offsetByCodePoints:([CIIII)I"
1530
1476
// Not supported "java::java.lang.Character.offsetByCodePoints:"
1531
1477
// "(Ljava.lang.CharacterSequence;II)I"
1532
1478
1533
1479
conversion_table[" java::java.lang.Character.reverseBytes:(C)C" ]=
1534
1480
&character_refine_preprocesst::convert_reverse_bytes;
1535
- conversion_table[" java::java.lang.Character.toChars:(I)[C" ]=
1536
- &character_refine_preprocesst::convert_to_chars;
1537
1481
1538
1482
// Not supported "java::java.lang.Character.toChars:(I[CI)I"
1539
1483
0 commit comments