diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-22 23:14:22 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-22 23:14:22 +0000 |
commit | 452932ace4e0e0741982a8bdfdf6282022e48a6c (patch) | |
tree | 4dcfb5b8fa9465d39a1462d2c414ef2d6291bae5 /py/unicode.c | |
parent | 8bcc52e8341368c73edf094e288a4f514b84028a (diff) | |
parent | 60fec7a9c0d6459cff5f448fe3de61921cdd7a02 (diff) | |
download | micropython-452932ace4e0e0741982a8bdfdf6282022e48a6c.tar.gz micropython-452932ace4e0e0741982a8bdfdf6282022e48a6c.zip |
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/unicode.c')
-rw-r--r-- | py/unicode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/unicode.c b/py/unicode.c index 58c860a0e4..52bc9b9f60 100644 --- a/py/unicode.c +++ b/py/unicode.c @@ -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; |