File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -1370,8 +1370,6 @@ pub trait StrSlice<'self> {
1370
1370
1371
1371
fn slice_shift_char(&self) -> (char, &'self str);
1372
1372
1373
- fn map_chars(&self, ff: &fn(char) -> char) -> ~str;
1374
-
1375
1373
fn lev_distance(&self, t: &str) -> uint;
1376
1374
1377
1375
fn subslice_offset(&self, inner: &str) -> uint;
@@ -2088,15 +2086,6 @@ impl<'self> StrSlice<'self> for &'self str {
2088
2086
return (ch, next_s);
2089
2087
}
2090
2088
2091
- /// Apply a function to each character.
2092
- fn map_chars(&self, ff: &fn(char) -> char) -> ~str {
2093
- let mut result = with_capacity(self.len());
2094
- for cc in self.iter() {
2095
- result.push_char(ff(cc));
2096
- }
2097
- result
2098
- }
2099
-
2100
2089
/// Levenshtein Distance between two strings.
2101
2090
fn lev_distance(&self, t: &str) -> uint {
2102
2091
let slen = self.len();
You can’t perform that action at this time.
0 commit comments