nit/*: Fixed old imports of string and ropes
authorLucas Bajolet <r4pass@hotmail.com>
Tue, 2 Jun 2015 18:49:40 +0000 (14:49 -0400)
committerLucas Bajolet <r4pass@hotmail.com>
Wed, 3 Jun 2015 15:20:16 +0000 (11:20 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

36 files changed:
benchmarks/strings/array_to_s_vars/array_to_s_buffer.nit
benchmarks/strings/array_to_s_vars/array_to_s_flatstr.nit
benchmarks/strings/array_to_s_vars/array_to_s_man_buf.nit
benchmarks/strings/array_to_s_vars/array_to_s_manual.nit
benchmarks/strings/array_to_s_vars/array_to_s_rope.nit
benchmarks/strings/array_to_s_vars/array_to_s_rope_buf.nit
benchmarks/strings/chain_concat.nit
benchmarks/strings/iteration_bench.nit
benchmarks/strings/substr_bench.nit
lib/buffered_ropes.nit
lib/mpi.nit
lib/ropes_debug.nit
tests/base_class_name.nit
tests/base_string.nit
tests/base_string_tos.nit
tests/base_test_obj_id.nit
tests/bench_string_append.nit
tests/example_procedural_string.nit
tests/example_string.nit
tests/sav/nitpretty_args2.res
tests/sav/nitpretty_args21.res
tests/sav/nitpretty_args33.res
tests/sav/nitpretty_args52.res
tests/sav/zzz_test_soso.res
tests/string_ffi_ref_test.nit
tests/string_trim.nit
tests/test_arr_tos_ropes.nit
tests/test_ffi_c_new_extern.nit
tests/test_pretty/test_extern1.nit
tests/test_pretty/test_mod2.nit
tests/test_ropes.nit
tests/test_ropes_buffer_add_overflow.nit
tests/test_string_long.nit
tests/test_to_upper_lower_buffer.nit
tests/zzz_tests/zzz_test_soso.nit
tests/zzz_tests/zzz_test_todo.nit

index f18ece7..9fc0faf 100644 (file)
@@ -14,7 +14,7 @@
 module array_to_s_buffer
 
 intrude import standard::collection::array
-import standard::string
+import standard::text
 
 redef class Array[E]
        redef fun to_s: String do
index 7028e3f..aad68e7 100644 (file)
@@ -13,7 +13,7 @@
 # To be used as a Mixin at compile-time for benchmarking purposes.
 module array_to_s_flatstr
 
-intrude import standard::string
+intrude import standard::text::flat
 
 redef class FlatString
        redef fun +(o) do
index c5dbd00..638f1d5 100644 (file)
@@ -14,7 +14,7 @@
 module array_to_s_man_buf
 
 intrude import standard::collection::array
-import standard::string
+import standard::text
 
 redef class Array[E]
        redef fun to_s: String do
index da6b667..8b77400 100644 (file)
@@ -13,7 +13,7 @@
 # To be used as a Mixin at compile-time for benchmarking purposes.
 module array_to_s_manual
 
-intrude import standard::string
+intrude import standard::text::flat
 intrude import standard::collection::array
 
 redef class NativeArray[E]
index 9f86a8a..27ae469 100644 (file)
@@ -14,7 +14,7 @@
 module array_to_s_rope
 
 intrude import standard::collection::array
-intrude import standard::ropes
+intrude import standard::text::ropes
 
 redef class Array[E]
 
index c7e3e7b..bf24d64 100644 (file)
@@ -14,7 +14,7 @@
 module array_to_s_rope_buf
 
 intrude import standard::collection::array
-import standard::ropes
+import standard::text::ropes
 
 redef class Array[E]
        redef fun to_s: String do
index a70dd14..083d49f 100644 (file)
@@ -11,7 +11,7 @@
 # Benches measuring the performance of several concatenations on Text variants
 module chain_concat
 
-intrude import standard::ropes
+intrude import standard::text::ropes
 import opts
 
 redef class FlatString
index b37ad26..7f84a34 100644 (file)
@@ -12,7 +12,7 @@
 module iteration_bench
 
 import opts
-intrude import standard::ropes
+intrude import standard::text::ropes
 
 redef class Concat
        redef fun +(o) do
index 3727960..4121f7f 100644 (file)
@@ -12,7 +12,7 @@
 module substr_bench
 
 import opts
-intrude import standard::ropes
+intrude import standard::text::ropes
 
 fun bench_flatstr(nb_cct: Int, loops: Int, strlen: Int)
 do
index 1114264..2afd1b9 100644 (file)
@@ -22,7 +22,7 @@
 # and reallocations when concatenating `String` objects.
 module buffered_ropes
 
-intrude import standard::ropes
+intrude import standard::text::ropes
 
 # Hidden buffer, used to simulate a `FlatBuffer` on a short string.
 #
index d7b5784..68e5873 100644 (file)
@@ -31,7 +31,7 @@ module mpi is
 end
 
 import c
-intrude import standard::string
+intrude import standard::text::flat
 import serialization
 private import json::serialization
 
index da40da1..a87e8d4 100644 (file)
@@ -15,7 +15,7 @@
 module ropes_debug
 
 import standard
-intrude import standard::ropes
+intrude import standard::text::ropes
 
 redef class Text
        # Writes self as a dot file on the hard drive
index 95dbdbc..ad904cf 100644 (file)
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import string
+import text
 
 class Test end
 class MyArray[E] end
index 8251428..8199de6 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import string
+import text
 
 redef class String
        redef fun output
index f37434d..d2cfd49 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import string
+import text
 
 'c'.to_s.output
 '\n'.output
index 6c7125d..cf467d0 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-intrude import string
+intrude import text::flat
 
 # Check Bool.object_id
 assert true.object_id.to_s.is_numeric
index df00536..6b7a459 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 #alt1 import standard
-#alt1 import standard::ropes
+#alt1 import standard::text::ropes
 
 var n = 4
 if not args.is_empty then
index e8d5c50..aabe239 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 #alt1 import standard
-#alt1 import standard::ropes
+#alt1 import standard::text::ropes
 
 # A procedural program (without explicit class).
 
index aad8297..106e498 100644 (file)
@@ -19,7 +19,7 @@
 # It exhibs ways to concatenate strings.
 
 #alt1 import standard
-#alt1 import standard::ropes
+#alt1 import standard::text::ropes
 
 var a = 10
 # First way: Multiple parameters.
index 7afcc94..b8f0ce3 100644 (file)
@@ -18,6 +18,6 @@
 module test_mod2 # second comment
 
 import standard::kernel
-#import standard::string
+#import standard::text
 import template # no need for string
 # import standard
index 4c208ff..4e30ae2 100644 (file)
@@ -14,7 +14,7 @@
 
 import end
 intrude import standard::kernel
-private import standard::string
+private import standard::text
 
 `{`}
 
index 76149a7..26f83e5 100644 (file)
@@ -18,7 +18,7 @@
 module test_mod2 # second comment
 
 import standard::kernel
-#import standard::string
+#import standard::text
 
 import template # no need for string
 # import standard
\ No newline at end of file
index 9a17fac..71d112f 100644 (file)
@@ -14,7 +14,7 @@
 
 import end
 intrude import standard::kernel
-private import standard::string
+private import standard::text
 
 `{`}
 
index 41aa675..d11f846 100644 (file)
@@ -1,3 +1,2 @@
-Error: other error
-Warning: some warning
 0
+Error: bla bla
\ No newline at end of file
index a94d2f0..1e28c3c 100644 (file)
@@ -16,7 +16,7 @@
 
 module string_ffi_ref_test
 
-intrude import string
+intrude import text::flat
 import file
 
 class StringTest
index 81ce2bd..aee2b8f 100644 (file)
@@ -1,4 +1,4 @@
-#alt1 import standard::ropes
+#alt1 import standard::text::ropes
 #alt1 import standard
 
 var trimtest = "   \t nono nono   \n \t"
index 3f080c1..4615cf6 100644 (file)
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 import standard
-intrude import standard::ropes
+intrude import standard::text::ropes
 
 var rp: String = new Concat("xxx", "yyy")
 rp += "zzz"
index 1a15da1..091c999 100644 (file)
@@ -14,7 +14,7 @@
 
 # Test callback to an extern constructor from extern code
 
-import standard::string
+import standard::text
 
 extern class IntPtr `{ int* `}
        new (v: Int) `{
index 715ccb0..d80d4ec 100644 (file)
@@ -14,7 +14,7 @@
 
 import end
 intrude import standard::kernel
-private import standard::string
+private import standard::text
 
 `{`}
 
index c8adb76..80517b9 100644 (file)
@@ -18,7 +18,7 @@
 module test_mod2 # second comment
 
    import standard::kernel
-#import standard::string
+#import standard::text
 
        import template # no need for string
 # import standard
index c8829ee..5e2a585 100644 (file)
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 import standard
-intrude import standard::ropes
+intrude import standard::text::ropes
 
 # Force building a Rope
 redef fun maxlen: Int do return once 2
index 6482b0e..06caf25 100644 (file)
@@ -19,7 +19,7 @@
 module test_ropes_buffer_add_overflow
 
 import standard
-intrude import ropes
+intrude import standard::text::ropes
 
 var buffer = new RopeBuffer
 
index 6bfb034..55588e7 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 #alt1 import standard
-#alt1 import standard::ropes
+#alt1 import standard::text::ropes
 
 var s = "Bonjour !\n"
 var r: Buffer = new FlatBuffer.with_capacity(50)
index e856eff..7d94a50 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-#alt1 import standard::ropes
+#alt1 import standard::text::ropes
 
 var x: Buffer = new FlatBuffer.from("test")
 #alt1 x = new RopeBuffer.from("test")
index 93273b1..ce3d275 100644 (file)
@@ -12,6 +12,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import string
+import text
 0.output
 "Error: bla bla".output
index 4e41242..6414a1a 100644 (file)
@@ -12,5 +12,5 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import string
+import text
 "NOT YET IMPLEMENTED".output