It's good for serializing data, but has programming features too!
text s: "Hello \xD1\xBEorld!" // equals "Hello Ѿorld!"Here \x is followed by hexadecimal code of the 8-bit character sequence. Codes D1 and BE ("\xD1\xBE") combined are the UTF-8 code for the letter Ѿ. See the reference page for more information about escape (backslash) sequences.
The unicode support was made possible by a big refactoring under the hood. I started using own string type instead of native string. Meanscript’s string type (MSText) uses internally an integer array to save text in UTF-8 format. This helps also to minimize dependencies to external libraries. The plan is to use native strings (e.g. java.lang.String) only in public interfaces (API).
More examples at Meanscript's GitHub page.
|Copyright (C) 2021, Meanwhale||↑ top|