Merge: Added `copy_from` service to `NativeString`
authorJean Privat <jean@pryen.org>
Tue, 24 May 2016 23:12:29 +0000 (19:12 -0400)
committerJean Privat <jean@pryen.org>
Tue, 24 May 2016 23:12:29 +0000 (19:12 -0400)
commit23903dc4840e6bb35aab9e51bfe7a1ae5f97d4db
treead63db6b84e4762c06b0d11c2b5958c53d3a838b
parent598bac1bff75f38595db5535b6626d7d0e5667c3
parentcbe419f616ae3e6084888e8670f2fd39a75bd034
Merge: Added `copy_from` service to `NativeString`

Usability PR, since I got tired of handling indexes and different structures manually, this method abstracts the job of copying the content of a `Text` to a `NativeString` object.

Pull-Request: #2062
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/core/text/abstract_text.nit
lib/core/text/flat.nit