lib/core: Make FlatText public
authorLucas Bajolet <r4pass@hotmail.com>
Sun, 29 Nov 2015 00:46:56 +0000 (19:46 -0500)
committerLucas Bajolet <r4pass@hotmail.com>
Sun, 29 Nov 2015 02:18:27 +0000 (21:18 -0500)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

lib/core/text/abstract_text.nit
lib/core/text/flat.nit

index 64c22c0..ef8a24b 100644 (file)
@@ -998,7 +998,7 @@ abstract class Text
 end
 
 # All kinds of array-based text representations.
-private abstract class FlatText
+abstract class FlatText
        super Text
 
        # Underlying C-String (`char*`)
index 4d35126..c3332d0 100644 (file)
@@ -36,9 +36,11 @@ end
 
 redef class FlatText
 
-       fun first_byte: Int do return 0
+       # First byte of the NativeString
+       protected fun first_byte: Int do return 0
 
-       fun last_byte: Int do return _bytelen - 1
+       # Last byte of the NativeString
+       protected fun last_byte: Int do return _bytelen - 1
 
        # Cache of the latest position (char) explored in the string
        var position: Int = 0