3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

fixes for unicode

This commit is contained in:
Nikolaj Bjorner 2021-01-31 14:55:52 -08:00
parent 60cc9d8182
commit 6d99a8f0cc
3 changed files with 11 additions and 3 deletions

View file

@ -45,7 +45,7 @@ bool zstring::is_escape_char(char const *& s, unsigned& result) {
unsigned d;
if (*s == '\\' && *(s+1) == 'u' && *(s+2) == '{') {
result = 0;
for (unsigned i = 0; i < 5; ++i) {
for (unsigned i = 0; i < 6; ++i) {
if (is_hex_digit(*(s+3+i), d)) {
result = 16*result + d;
}