Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c59af52

Browse files
committed
py: Rename some unichar functions for consistency.
1 parent 89755ae commit c59af52

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

py/unicode.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,28 +94,28 @@ bool unichar_isxdigit(unichar c) {
9494
}
9595

9696
/*
97-
bool char_is_alpha_or_digit(unichar c) {
97+
bool unichar_is_alpha_or_digit(unichar c) {
9898
return c < 128 && (attr[c] & (FL_ALPHA | FL_DIGIT)) != 0;
9999
}
100100
*/
101101

102-
bool char_is_upper(unichar c) {
102+
bool unichar_isupper(unichar c) {
103103
return c < 128 && (attr[c] & FL_UPPER) != 0;
104104
}
105105

106-
bool char_is_lower(unichar c) {
106+
bool unichar_islower(unichar c) {
107107
return c < 128 && (attr[c] & FL_LOWER) != 0;
108108
}
109109

110110
unichar unichar_tolower(unichar c) {
111-
if (char_is_upper(c)) {
111+
if (unichar_isupper(c)) {
112112
return c + 0x20;
113113
}
114114
return c;
115115
}
116116

117117
unichar unichar_toupper(unichar c) {
118-
if (char_is_lower(c)) {
118+
if (unichar_islower(c)) {
119119
return c - 0x20;
120120
}
121121
return c;

0 commit comments

Comments
 (0)