diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-11 17:53:11 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-11 17:53:11 +0100 |
commit | c59af52e84cae6be29e5a52e1ec1c3259ffec09a (patch) | |
tree | 7b01950a851fc5fcff7afaa5baddc6faa7e0b2cb /py | |
parent | 89755ae67f5c4a7cf7c963a53b12489461f0d839 (diff) | |
download | micropython-c59af52e84cae6be29e5a52e1ec1c3259ffec09a.tar.gz micropython-c59af52e84cae6be29e5a52e1ec1c3259ffec09a.zip |
py: Rename some unichar functions for consistency.
Diffstat (limited to 'py')
-rw-r--r-- | py/unicode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/py/unicode.c b/py/unicode.c index 1cd82f3be8..131ddc8108 100644 --- a/py/unicode.c +++ b/py/unicode.c @@ -94,28 +94,28 @@ bool unichar_isxdigit(unichar c) { } /* -bool char_is_alpha_or_digit(unichar c) { +bool unichar_is_alpha_or_digit(unichar c) { return c < 128 && (attr[c] & (FL_ALPHA | FL_DIGIT)) != 0; } */ -bool char_is_upper(unichar c) { +bool unichar_isupper(unichar c) { return c < 128 && (attr[c] & FL_UPPER) != 0; } -bool char_is_lower(unichar c) { +bool unichar_islower(unichar c) { return c < 128 && (attr[c] & FL_LOWER) != 0; } unichar unichar_tolower(unichar c) { - if (char_is_upper(c)) { + if (unichar_isupper(c)) { return c + 0x20; } return c; } unichar unichar_toupper(unichar c) { - if (char_is_lower(c)) { + if (unichar_islower(c)) { return c - 0x20; } return c; |