Removed ascii functions from other modules

Replaced str::to_lowercase and str::to_uppercase
This commit is contained in:
Marvin Löbel
2013-04-23 11:08:13 +02:00
parent e26f992d5e
commit dd74807957
11 changed files with 43 additions and 89 deletions

View File

@@ -50,7 +50,10 @@ fn parse_expected(line_num: uint, line: ~str) -> ~[ExpectedError] {
while idx < len && line[idx] == (' ' as u8) { idx += 1u; }
let start_kind = idx;
while idx < len && line[idx] != (' ' as u8) { idx += 1u; }
let kind = str::to_lower(str::slice(line, start_kind, idx).to_owned());
// FIXME: 4318 Instead of to_str_ascii, could use
// to_str_consume to not do a unneccessary copy.
let kind = str::slice(line, start_kind, idx).to_ascii().to_lower().to_str_ascii();
// Extract msg:
while idx < len && line[idx] == (' ' as u8) { idx += 1u; }