We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a345d30 commit ecc0e43Copy full SHA for ecc0e43
src/solvers/refinement/string_builtin_function.cpp
@@ -191,6 +191,11 @@ exprt string_set_char_builtin_functiont::length_constraint() const
191
192
static bool eval_is_upper_case(const mp_integer &c)
193
{
194
+ // Characters between 'A' and 'Z' are upper-case
195
+ // Characters between 0xc0 (latin capital A with grave)
196
+ // and 0xd6 (latin capital O with diaeresis) are upper-case
197
+ // Characters between 0xd8 (latin capital O with stroke)
198
+ // and 0xde (latin capital thorn) are upper-case
199
return ('A' <= c && c <= 'Z') || (0xc0 <= c && c <= 0xd6) ||
200
(0xd8 <= c && c <= 0xde);
201
}
0 commit comments