add utf8.sub

This commit is contained in:
MihailRis
2024-10-26 11:24:58 +03:00
parent bd60d05c3a
commit 137e6fc767
3 changed files with 17 additions and 0 deletions
+3
View File
@@ -15,4 +15,7 @@ utf8.length(text: str) -> int
-- Returns the code of the first character of the string
utf8.codepoint(chars: str) -> int
-- Returns a substring from position startchar to endchar inclusive
utf8.sub(text: str, startchar: int, [optional] endchar: int) -> str
```
+3
View File
@@ -15,4 +15,7 @@ utf8.length(text: str) -> int
-- Возвращает код первого символа строки
utf8.codepoint(chars: str) -> int
-- Возвращает подстроку от позиции startchar до endchar включительно
utf8.sub(text: str, startchar: int, [опционально] endchar: int) -> str
```