Removed .charAt(), added .char() & .byte()

- also minor comment fixes in cobj.[ch]
This commit is contained in:
2021-02-01 21:07:43 -06:00
parent 3a28de6b2a
commit ff1804ca36
4 changed files with 53 additions and 22 deletions

View File

@@ -14,7 +14,8 @@ COSMO_API void cosmoB_loadLibrary(CState *state);
- string.sub
- stirng.find
- string.split
- string.charAt
- string.byte
- string.char
The base proto object for strings is also set, allowing you to invoke the string.* api through string objects, eg.
`"hello world":split(" ")` is equivalent to `string.split("hello world", " ")`