mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
parse according to http://smtlib.cs.uiowa.edu/theories-UnicodeStrings.shtml
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1da7522893
commit
6bd02e122b
|
@ -51,6 +51,20 @@ bool zstring::is_escape_char(char const *& s, unsigned& result) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
unsigned d1, d2, d3, d4;
|
||||
if (*s == '\\' && s[1] == 'u' &&
|
||||
is_hex_digit(s[2], d1) &&
|
||||
is_hex_digit(s[3], d2) &&
|
||||
is_hex_digit(s[4], d3) &&
|
||||
is_hex_digit(s[5], d4)) {
|
||||
result = d1;
|
||||
result = 16*result + d2;
|
||||
result = 16*result + d3;
|
||||
result = 16*result + d4;
|
||||
s += 6;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue