From 264e332acd1dbfb91c3f6633f6b48f3e4119f832 Mon Sep 17 00:00:00 2001 From: sumneko Date: Tue, 9 Apr 2019 14:04:36 +0800 Subject: =?UTF-8?q?=E4=B8=8D=E8=A6=81=E5=8A=A0=E8=BD=BD=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=BA=93=E4=B8=AD=E7=9A=84=E5=85=A8=E5=B1=80=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/locale/en-US/libs/@lua/utf8.lni | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 server/locale/en-US/libs/@lua/utf8.lni (limited to 'server/locale/en-US/libs/@lua/utf8.lni') diff --git a/server/locale/en-US/libs/@lua/utf8.lni b/server/locale/en-US/libs/@lua/utf8.lni new file mode 100644 index 00000000..c7ab9bf3 --- /dev/null +++ b/server/locale/en-US/libs/@lua/utf8.lni @@ -0,0 +1,40 @@ +[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 +``` +]] + +["codes Lua 5.4"] +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).' + +["codepoint Lua 5.4"] +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).' + +["len Lua 5.4"] +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.' -- cgit v1.2.3