add utf8.encode(...)

This commit is contained in:
MihailRis
2024-11-06 16:26:35 +03:00
parent eea97337f5
commit 8e00e73b8e
5 changed files with 41 additions and 8 deletions
+3
View File
@@ -16,6 +16,9 @@ utf8.length(text: str) -> int
-- Returns the code of the first character of the string
utf8.codepoint(chars: str) -> int
-- Encodes codepoint in UTF-8
utf8.encode(codepoint: int) -> str
-- Returns a substring from position startchar to endchar inclusive
utf8.sub(text: str, startchar: int, [optional] endchar: int) -> str
+3
View File
@@ -16,6 +16,9 @@ utf8.length(text: str) -> int
-- Возвращает код первого символа строки
utf8.codepoint(chars: str) -> int
-- Кодирует код в в UTF-8
utf8.encode(codepoint: int) -> str
-- Возвращает подстроку от позиции startchar до endchar включительно
utf8.sub(text: str, startchar: int, [опционально] endchar: int) -> str