Improved docs (#708)

* начало переписи доков

* extensions update

* libapp update

* libfile update

* io_stream update

* Update io_stream.md

* io_stream update x3

* io_stream update x4

* libtime update

* libgui update + make bytearray.md

* libinput update

* Update libapp.md

* Update libapp.md

* libgui update

* events.md ru fix

* да ну не надо так делать

--> не имеет смысла, ибо гитхаб -> показывает адекватно

* types refactoring

* fixes

* Update libblock.md

* Update libblock.md

* Update libbyteutil.md
This commit is contained in:
Xertis 2025-12-18 12:58:39 +03:00 • committed by GitHub
parent 66d85b0ae6
commit 32feb78002
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 1107 additions and 1314 deletions

View file

@ -5,32 +5,32 @@
```lua
-- Конвертирует UTF-8 строку в Bytearray или массив чисел если
-- второй аргумент - true
utf8.tobytes(text: str, [опционально] usetable=false) -> Bytearray|table
utf8.tobytes(text: string, [опционально] usetable: boolean=false) -> Bytearray|table
-- Конвертирует Bytearray или массив чисел в UTF-8 строку
utf8.tostring(bytes: Bytearray|table) -> str
utf8.tostring(bytes: Bytearray|table) -> string
-- Возвращает длину юникод-строки
utf8.length(text: str) -> int
utf8.length(text: string) -> int
-- Возвращает код первого символа строки
utf8.codepoint(chars: str) -> int
utf8.codepoint(chars: string) -> int
-- Кодирует код в в UTF-8
utf8.encode(codepoint: int) -> str
utf8.encode(codepoint: int) -> string
-- Возвращает подстроку от позиции startchar до endchar включительно
utf8.sub(text: str, startchar: int, [опционально] endchar: int) -> str
utf8.sub(text: string, startchar: int, [опционально] endchar: int) -> string
-- Переводит строку в вверхний регистр
utf8.upper(text: str) -> str
utf8.upper(text: string) -> string
-- Переводит строку в нижний регистр
utf8.lower(text: str) -> str
utf8.lower(text: string) -> string
-- Экранирует строку
utf8.escape(text: str) -> str
utf8.escape(text: string) -> string
-- Экранирует спец-символы XML
utf8.escape_xml(text: str) -> str
```
utf8.escape_xml(text: string) -> string
```