From: Jean Privat Date: Thu, 2 Apr 2015 16:53:11 +0000 (+0700) Subject: Merge: lib/standard/string: Added faster to_cstring method on FlatText. X-Git-Tag: v0.7.4~46 X-Git-Url: http://nitlanguage.org?hp=-c Merge: lib/standard/string: Added faster to_cstring method on FlatText. Adds a service for quick cstring in `FlatTexts`, this is mainly to speedup some methods like `write_native`, which takes a cstring in input. This just creates a new pointer to the same `char*` with an offset. Since no copy is ever made, its use is highly discouraged in extern code or in cases other than ephemereal uses of the resulting `NativeString`. Since it adds a new intern service, it cannot be used as is in the standard library as it will need a regeneration of c_src beforehand. Pull-Request: #1231 Reviewed-by: Jean Privat Reviewed-by: Alexandre Terrasa Reviewed-by: Alexis Laferrière --- 3bf5fbeb3200200ec405c29976c533b3f428d7a5