Implement octal and hex escapes in strings.

This commit is contained in:
Paul Sokolovsky
2014-01-22 22:40:02 +02:00
parent 0914371faf
commit 0b7184dcb8
4 changed files with 74 additions and 6 deletions

View File

@@ -62,6 +62,10 @@ bool unichar_isdigit(unichar c) {
return c < 128 && (attr[c] & FL_DIGIT) != 0;
}
bool unichar_isxdigit(unichar c) {
return unichar_isdigit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
}
/*
bool char_is_alpha_or_digit(unichar c) {
return c < 128 && (attr[c] & (FL_ALPHA | FL_DIGIT)) != 0;