Put unicode functions in unicode.c, and tidy their names.

This commit is contained in:
Damien George
2013-12-30 18:23:50 +00:00
parent 212c296c0b
commit 8cc96a35e5
9 changed files with 28 additions and 48 deletions

View File

@@ -212,7 +212,7 @@ static void push_result_token(parser_t *parser, const mp_lexer_t *lex) {
}
}
for (; i < len; i++) {
if (g_unichar_isdigit(str[i]) && str[i] - '0' < base) {
if (unichar_isdigit(str[i]) && str[i] - '0' < base) {
int_val = base * int_val + str[i] - '0';
} else if (base == 16 && 'a' <= str[i] && str[i] <= 'f') {
int_val = base * int_val + str[i] - 'a' + 10;