Removed ascii functions from other modules
Replaced str::to_lowercase and str::to_uppercase
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user