1
Fork 0

libcore: include the trim methods in the StrSlice trait

This commit is contained in:
Erick Tryzelaar 2012-10-08 08:17:41 -07:00
parent bb1ed97ca2
commit 79603f573e

View file

@ -2086,6 +2086,9 @@ pub trait StrSlice {
pure fn to_upper() -> ~str;
fn escape_default() -> ~str;
fn escape_unicode() -> ~str;
fn trim() -> ~str;
fn trim_left() -> ~str;
fn trim_right() -> ~str;
pure fn to_unique() -> ~str;
pure fn char_at(i: uint) -> char;
}