core: Convert Char::escape_default, escape_unicode to iterators

[breaking-change]
This commit is contained in:
Brian Anderson 2014-10-31 16:20:41 -07:00
parent ca1820b1fc
commit aad2461604
7 changed files with 110 additions and 43 deletions

View file

@ -431,7 +431,7 @@ impl<'a> LabelText<'a> {
// not escaping \\, since Graphviz escString needs to
// interpret backslashes; see EscStr above.
'\\' => f(c),
_ => c.escape_default(f)
_ => for c in c.escape_default() { f(c) }
}
}
fn escape_str(s: &str) -> String {