about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore')
-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;
 }