diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-17 22:35:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-17 22:35:08 +0800 |
commit | 07c3230d29cb7b2660d6027733756c8e4adb591e (patch) | |
tree | 63d4ba02defc90e621735d1ea529298f713dc9cd /server/locale/en-US/libs/lua53/utf8.lni | |
parent | a4bd73ebf18effeddb5a720a20cb81ec446d8cf0 (diff) | |
download | lua-language-server-07c3230d29cb7b2660d6027733756c8e4adb591e.zip |
更新库
Diffstat (limited to 'server/locale/en-US/libs/lua53/utf8.lni')
-rw-r--r-- | server/locale/en-US/libs/lua53/utf8.lni | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/server/locale/en-US/libs/lua53/utf8.lni b/server/locale/en-US/libs/lua53/utf8.lni index 90bf6a91..b61411e1 100644 --- a/server/locale/en-US/libs/lua53/utf8.lni +++ b/server/locale/en-US/libs/lua53/utf8.lni @@ -1 +1,24 @@ -[utf8] +[char] +description = 'Receives zero or more integers, converts each one to its corresponding UTF-8 byte sequence and returns a string with the concatenation of all these sequences.' + +[charpattern] +description = 'The pattern which matches exactly one UTF-8 byte sequence, assuming that the subject is a valid UTF-8 string.' + +[codes] +description = [[ +-------- +```lua +for p, c in utf8.codes(s) do + body +end +``` +]] + +[codepoint] +description = 'Returns the codepoints (as integers) from all characters in `s` that start between byte position `i` and `j` (both included).' + +[len] +description = 'Returns the number of UTF-8 characters in string `s` that start between positions `i` and `j` (both inclusive).' + +[offset] +description = 'Returns the position (in bytes) where the encoding of the `n`-th character of `s` (counting from position `i`) starts.' |