core: keep `to_s_full` as an indirection for retro compatibility
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 27 Dec 2016 01:40:40 +0000 (20:40 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 27 Dec 2016 19:06:35 +0000 (14:06 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/core/text/abstract_text.nit

index 38eceaf..43d017e 100644 (file)
@@ -2320,6 +2320,11 @@ redef class CString
        #   other library services rely on UTF-8 compliant characters.
        fun to_s_unsafe(byte_length, char_length: nullable Int, copy, clean: nullable Bool): String is abstract
 
+       # Retro-compatibility service use by execution engines
+       #
+       # TODO remove this method at the next c_src regen.
+       private fun to_s_full(byte_length, char_length: Int): String do return to_s_unsafe(byte_length, char_length, false, false)
+
        # Copies the content of `src` to `self`
        #
        # NOTE: `self` must be large enough to contain `self.byte_length` bytes