diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-23 17:51:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-23 17:51:56 +0800 |
commit | 52f2051b51fdf9f56c8a19b4884bfef8787b9af8 (patch) | |
tree | f9fc37285bef0245bb52c0a6e09222dd82161846 /locale/en-US | |
parent | 294d884d97e5b04fbc5c7ff3487f2fc4e5832f4f (diff) | |
download | lua-language-server-52f2051b51fdf9f56c8a19b4884bfef8787b9af8.zip |
漏掉的描述
Diffstat (limited to 'locale/en-US')
-rw-r--r-- | locale/en-US/libs/@lua/utf8.lni | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/locale/en-US/libs/@lua/utf8.lni b/locale/en-US/libs/@lua/utf8.lni index c7ab9bf3..c0fb3c27 100644 --- a/locale/en-US/libs/@lua/utf8.lni +++ b/locale/en-US/libs/@lua/utf8.lni @@ -7,11 +7,13 @@ description = 'The pattern which matches exactly one UTF-8 byte sequence, assumi [codes] description = [[ -------- +Returns values so that the construction ```lua for p, c in utf8.codes(s) do body end ``` +will iterate over all UTF-8 characters in string s, with p being the position (in bytes) and c the code point of each character. It raises an error if it meets any invalid byte sequence. ]] ["codes Lua 5.4"] |