@@ -41,7 +41,7 @@ export is_alphabetic,
41
41
is_XID_start, is_XID_continue,
42
42
is_lowercase, is_uppercase,
43
43
is_whitespace, is_alphanumeric,
44
- to_digit, to_lowercase , to_uppercase , maybe_digit, cmp;
44
+ to_digit, to_lower , to_upper , maybe_digit, cmp;
45
45
46
46
import is_alphabetic = unicode:: derived_property:: Alphabetic ;
47
47
import is_XID_start = unicode:: derived_property:: XID_Start ;
@@ -137,27 +137,27 @@ pure fn maybe_digit(c: char) -> option::t<u8> {
137
137
}
138
138
139
139
/*
140
- Function: to_lowercase
140
+ Function: to_lower
141
141
142
142
Convert a char to the corresponding lower case.
143
143
144
144
FIXME: works only on ASCII
145
145
*/
146
- pure fn to_lowercase ( c : char ) -> char {
146
+ pure fn to_lower ( c : char ) -> char {
147
147
alt c {
148
148
'A' to ' Z ' { ( ( c as u8 ) + 32u8 ) as char }
149
149
_ { c }
150
150
}
151
151
}
152
152
153
153
/*
154
- Function: to_uppercase
154
+ Function: to_upper
155
155
156
156
Convert a char to the corresponding upper case.
157
157
158
158
FIXME: works only on ASCII
159
159
*/
160
- pure fn to_uppercase ( c : char ) -> char {
160
+ pure fn to_upper ( c : char ) -> char {
161
161
alt c {
162
162
'a' to ' z' { ( ( c as u8 ) - 32u8 ) as char }
163
163
_ { c }
0 commit comments