Merge: Bench scripts
[nit.git] / lib / standard / string.nit
index d522714..fcc1f1b 100644 (file)
@@ -611,6 +611,12 @@ abstract class String
        redef type SELFTYPE: String
 
        redef fun to_s do return self
+
+       fun append(s: String): SELFTYPE is abstract
+
+       fun prepend(s: String): SELFTYPE is abstract
+
+       fun insert_at(s: String, pos: Int): SELFTYPE is abstract
 end
 
 private class FlatSubstringsIter
@@ -635,8 +641,6 @@ class FlatString
        super FlatText
        super String
 
-       redef type SELFTYPE: FlatString
-
        # Index in _items of the start of the string
        private var index_from: Int