about summary refs log tree commit diff
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2012-10-08 08:17:41 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2012-10-08 08:18:09 -0700
commit79603f573e504163db7b5c2afa0917c27e3f98ed (patch)
tree8db6bf4a2d276a52cfa87486286ff2ad76c3bf0f
parentbb1ed97ca2bbd8efa1555462de3f842d702e8408 (diff)
downloadrust-79603f573e504163db7b5c2afa0917c27e3f98ed.tar.gz
rust-79603f573e504163db7b5c2afa0917c27e3f98ed.zip
libcore: include the trim methods in the StrSlice trait
-rw-r--r--src/libcore/str.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index d7d33b5528b..d743f0c7f3b 100644
--- a/src/libcore/str.rs
+++ b/src/libcore/str.rs
@@ -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;
 }