summaryrefslogtreecommitdiff
path: root/locale/en-US/libs
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-23 17:51:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-23 17:51:56 +0800
commit52f2051b51fdf9f56c8a19b4884bfef8787b9af8 (patch)
treef9fc37285bef0245bb52c0a6e09222dd82161846 /locale/en-US/libs
parent294d884d97e5b04fbc5c7ff3487f2fc4e5832f4f (diff)
downloadlua-language-server-52f2051b51fdf9f56c8a19b4884bfef8787b9af8.zip
漏掉的描述
Diffstat (limited to 'locale/en-US/libs')
-rw-r--r--locale/en-US/libs/@lua/utf8.lni2
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"]