3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-20 11:22:04 +00:00

make it easier to use string literals

This commit is contained in:
Nikolaj Bjorner 2021-01-26 11:01:03 -08:00
parent 31b7ad3012
commit 7dd7d83a36
2 changed files with 13 additions and 1 deletions

View file

@ -180,8 +180,10 @@ bool zstring::uses_unicode() const {
bool zstring::well_formed() const {
for (unsigned ch : m_buffer) {
if (ch > unicode_max_char())
if (ch > unicode_max_char()) {
IF_VERBOSE(0, verbose_stream() << "large character: " << ch << "\n";);
return false;
}
}
return true;
}