update doc/*/scripting/builtins/libutf8 and extensions.md

This commit is contained in:
MihailRis 2025-11-23 20:00:25 +03:00
parent 28589c4b3b
commit 69d04d49d5
3 changed files with 12 additions and 0 deletions

View File

@ -30,4 +30,7 @@ utf8.lower(text: str) -> str
-- Escapes a string
utf8.escape(text: str) -> str
-- Escapes special XML characters
utf8.escape_xml(text: str) -> str
```

View File

@ -30,4 +30,7 @@ utf8.lower(text: str) -> str
-- Экранирует строку
utf8.escape(text: str) -> str
-- Экранирует спец-символы XML
utf8.escape_xml(text: str) -> str
```

View File

@ -187,6 +187,12 @@ string.escape(str: string) -> string
Экранирует строку. Является псевдонимом `utf8.escape`.
```lua
string.escape_xml(text: str) -> str
```
Экранирует спец-символы XML. Является псевдонимом `utf8.escape_xml`.
```lua
string.pad(str: string, size: number, [опционально] char: string) -> string
```