mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add utf8.encode(...)
This commit is contained in:
parent
eea97337f5
commit
8e00e73b8e
5 changed files with 41 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue