add utf8.encode(...)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user