diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-23 14:54:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-23 14:54:04 +0800 |
commit | 1dda93bba596496c1a427707fe97d92391129b8d (patch) | |
tree | 8bb525452d5677133a17662d091a077db5af1cad /server-beta/locale/en-US/libs/@lua | |
parent | 62a3e74b5467ca3bc0879e73e8fc8b129c0bec6a (diff) | |
download | lua-language-server-1dda93bba596496c1a427707fe97d92391129b8d.zip |
整理文件
Diffstat (limited to 'server-beta/locale/en-US/libs/@lua')
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/basic.lni | 239 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/bit32.lni | 57 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/coroutine.lni | 42 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/debug.lni | 148 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/file.lni | 91 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/io.lni | 230 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/math.lni | 132 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/os.lni | 38 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/package.lni | 29 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/string.lni | 72 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/table.lni | 39 | ||||
-rw-r--r-- | server-beta/locale/en-US/libs/@lua/utf8.lni | 40 |
12 files changed, 1157 insertions, 0 deletions
diff --git a/server-beta/locale/en-US/libs/@lua/basic.lni b/server-beta/locale/en-US/libs/@lua/basic.lni new file mode 100644 index 00000000..7dbf8d60 --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/basic.lni @@ -0,0 +1,239 @@ +[arg] +description = 'Command-line arguments of Lua Standalone.' + +[assert] +description = 'Calls error if the value of its argument is false.' + +[collectgarbage] +[[.enums]] +name = 'opt' +enum = '"collect"' +description = 'Performs a full garbage-collection cycle.' +`````````` +name = 'opt' +enum = '"stop"' +description = 'Stops automatic execution.' +`````````` +name = 'opt' +enum = '"restart"' +description = 'Restarts automatic execution.' +`````````` +name = 'opt' +enum = '"count"' +description = 'Returns the total memory in Kbytes.' +`````````` +name = 'opt' +enum = '"step"' +description = 'Performs a garbage-collection step.' +`````````` +name = 'opt' +enum = '"setpause"' +description = 'Set pause.' +`````````` +name = 'opt' +enum = '"setstepmul"' +description = 'Set step multiplier.' +`````````` +name = 'opt' +enum = '"isrunning"' +description = 'Returns whether the collector is running.' + +["collectgarbage Lua 5.4"] +[[.enums]] +name = 'opt' +enum = '"collect"' +description = 'Performs a full garbage-collection cycle.' +`````````` +name = 'opt' +enum = '"stop"' +description = 'Stops automatic execution.' +`````````` +name = 'opt' +enum = '"restart"' +description = 'Restarts automatic execution.' +`````````` +name = 'opt' +enum = '"count"' +description = 'Returns the total memory in Kbytes.' +`````````` +name = 'opt' +enum = '"step"' +description = 'Performs a garbage-collection step.' +`````````` +name = 'opt' +enum = '"setpause"' +description = 'Set pause.' +`````````` +name = 'opt' +enum = '"setstepmul"' +description = 'Set step multiplier.' +`````````` +name = 'opt' +enum = '"incremental"' +description = 'Change the collector mode to incremental.' +`````````` +name = 'opt' +enum = '"generational"' +description = 'Change the collector mode to generational.' +`````````` +name = 'opt' +enum = '"isrunning"' +description = 'Returns whether the collector is running.' + +[dofile] +description = 'Opens the named file and executes its contents as a Lua chunk.' + +[error] +description = 'Terminates the last protected function called and returns message as the error object.' + +[_G] +description = 'Holds the global environment.' + +[getfenv] +description = 'Returns the current environment in use by the function. `f` can be a Lua function or a number that specifies the function at that stack level.' + +[getmetatable] +description = 'Returns the metatable of the given object.' + +[ipairs] +description = [[ +---------------- +```lua +for i, v in ipairs(t) do + body +end +``` +]] + +[load] +description = 'Loads a chunk.' +[[.enums]] +name = 'mode' +enum = '"b"' +description = 'Only binary chunks.' +`````````` +name = 'mode' +enum = '"t"' +description = 'Only text chunks.' +`````````` +name = 'mode' +enum = '"bt"' +description = 'Both binary and text.' + +['load Lua 5.1'] +description = 'Loads a chunk using function `func` to get its pieces. Each call to `func` must return a string that concatenates with previous results.' + +[loadfile] +description = 'Loads a chunk from file.' +[[.enums]] +name = 'mode' +enum = '"b"' +description = 'Only binary chunks.' +`````````` +name = 'mode' +enum = '"t"' +description = 'Only text chunks.' +`````````` +name = 'mode' +enum = '"bt"' +description = 'Both binary and text.' + +['loadfile Lua 5.1'] +description = 'Loads a chunk from file `filename` or from the standard input, if no file name is given.' + +[loadstring] +description = 'Loads a chunk from the given string.' + +[module] +description = 'Creates a module' + +[next] +description = 'Returns the next index of the table and its associated value.' + +[pairs] +description = [[ +---------------- +```lua +for k, v in pairs(t) do + body +end +``` +]] + +[pcall] +description = 'Calls function with the given arguments in protected mode.' + +[print] +description = 'Receives any number of arguments and prints their values to stdout.' + +[rawequal] +description = 'Checks whether v1 is equal to v2, without invoking the `__eq` metamethod.' + +[rawget] +description = 'Gets the real value of `table[index]`, without invoking the `__index` metamethod.' + +[rawlen] +description = 'Returns the length of the object `v`, without invoking the `__len` metamethod.' + +[rawset] +description = 'Sets the real value of `table[index]` to `value`, without invoking the `__newindex` metamethod.' + +[select] +[[.enums]] +name = 'index' +enum = '"#"' +description = 'Returns the total number of extra arguments.' +`````````` +name = 'index' +code = 'integer' +description = 'Returns all arguments after number `index`.' + +[setfenv] +description = 'Sets the environment to be used by the given function. `f` can be a Lua function or a number that specifies the function at that stack level.' + +[setmetatable] +description = 'Sets the metatable for the given table.' + +[tonumber] +description = 'Tries to convert its argument to a number.' + +[tostring] +description = 'Receives a value of any type and converts it to a string in a human-readable format.' + +[type] +description = 'Returns the type of its only argument, coded as a string.' + +["_VERSION Lua 5.1"] +description = 'Running Lua version.' + +["_VERSION Lua 5.2"] +description = 'Running Lua version.' + +["_VERSION Lua 5.3"] +description = 'Running Lua version.' + +["_VERSION Lua 5.4"] +description = 'Running Lua version.' + +[warn] +description = 'Emits a warning with a message composed by the concatenation of all its arguments (which should be strings).' + +[xpcall] +description = 'Calls function `f` with the given arguments in protected mode with a new message handler.' + +['xpcall Lua 5.1'] +description = 'Calls function `f` in protected mode with a new message handler.' + +[require] +description = 'Loads the given module, returns any value returned by the given module(`true` when `nil`).' + +["require Lua 5.4"] +description = 'Loads the given module, returns any value returned by the searcher(`true` when `nil`). Besides that value, also returns as a second result the loader data returned by the searcher, which indicates how `require` found the module. (For instance, if the module came from a file, this loader data is the file path.)' + +[unpack] +description = [[ +------- +```lua +return list[i], list[i+1], ···, list[j] +``` +]] diff --git a/server-beta/locale/en-US/libs/@lua/bit32.lni b/server-beta/locale/en-US/libs/@lua/bit32.lni new file mode 100644 index 00000000..13630970 --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/bit32.lni @@ -0,0 +1,57 @@ +[arshift] +description = [[ +Returns the number `x` shifted `disp` bits to the right. Negative displacements shift to the left. + +This shift operation is what is called arithmetic shift. Vacant bits on the left are filled with copies of the higher bit of `x`; vacant bits on the right are filled with zeros. +]] + +[band] +description = 'Returns the bitwise *and* of its operands.' + +[bnot] +description = [[ +Returns the bitwise negation of `x`. + +```lua +assert(bit32.bnot(x) == (-1 - x) % 2^32) +``` +]] + +[bor] +description = 'Returns the bitwise *or* of its operands.' + +[btest] +description = 'Returns a boolean signaling whether the bitwise *and* of its operands is different from zero.' + +[bxor] +description = 'Returns the bitwise *exclusive or* of its operands.' + +[extract] +description = 'Returns the unsigned number formed by the bits `field` to `field + width - 1` from `n`.' + +[replace] +description = 'Returns a copy of `n` with the bits `field` to `field + width - 1` replaced by the value `v` .' + +[lrotate] +description = 'Returns the number `x` rotated `disp` bits to the left. Negative displacements rotate to the right.' + +[lshift] +description = [[ +Returns the number `x` shifted `disp` bits to the left. Negative displacements shift to the right. In any direction, vacant bits are filled with zeros. + +```lua +assert(bit32.lshift(b, disp) == (b * 2^disp) % 2^32) +``` +]] + +[rrotate] +description = 'Returns the number `x` rotated `disp` bits to the right. Negative displacements rotate to the left.' + +[rshift] +description = [[ +Returns the number `x` shifted `disp` bits to the right. Negative displacements shift to the left. In any direction, vacant bits are filled with zeros. + +```lua +assert(bit32.rshift(b, disp) == math.floor(b % 2^32 / 2^disp)) +``` +]] diff --git a/server-beta/locale/en-US/libs/@lua/coroutine.lni b/server-beta/locale/en-US/libs/@lua/coroutine.lni new file mode 100644 index 00000000..910638ec --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/coroutine.lni @@ -0,0 +1,42 @@ +[create] +description = 'Creates a new coroutine.' + +[isyieldable] +description = 'Returns true when the running coroutine can yield.' + +['isyieldable Lua 5.4'] +description = 'Returns true when the coroutine `co` can yield. The default for `co` is the running coroutine.' + +[close] +description = 'Closes coroutine `co` , closing all its pending to-be-closed variables and putting the coroutine in a dead state.' + +[resume] +description = 'Starts or continues the execution of coroutine `co`.' + +[running] +description = 'Returns the running coroutine plus a boolean, true when the running coroutine is the main one.' + +[status] +description = 'Returns the status of coroutine `co`.' +[[.enums]] +name = 'status' +enum = '"running"' +description = 'Is running.' +`````````` +name = 'status' +enum = '"suspended"' +description = 'Is suspended or not started.' +`````````` +name = 'status' +enum = '"normal"' +description = 'Is active but not running.' +`````````` +name = 'status' +enum = '"dead"' +description = 'Has finished or stopped with an error.' + +[wrap] +description = 'Creates a new coroutine.' + +[yield] +description = 'Suspends the execution of the calling coroutine.' diff --git a/server-beta/locale/en-US/libs/@lua/debug.lni b/server-beta/locale/en-US/libs/@lua/debug.lni new file mode 100644 index 00000000..44d5317f --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/debug.lni @@ -0,0 +1,148 @@ +["debug.debug"] +description = 'Enters an interactive mode with the user, running each string that the user enters.' + +[getfenv] +description = 'Returns the environment of object `o` .' + +[gethook] +description = 'Returns the current hook settings of the thread.' + +[getinfo] +description = 'Returns a table with information about a function.' +[[.enums]] +name = 'what' +enum = '"n"' +description = '`name` and `namewhat`' +`````````` +name = 'what' +enum = '"S"' +description = '`source`, `short_src`, `linedefined`, `lastlinedefined`, and `what`' +`````````` +name = 'what' +enum = '"l"' +description = '`currentline`' +`````````` +name = 'what' +enum = '"t"' +description = '`istailcall`' +`````````` +name = 'what' +enum = '"u"' +description = '`nups`, `nparams`, and `isvararg`' +`````````` +name = 'what' +enum = '"f"' +description = '`func`' +`````````` +name = 'what' +enum = '"L"' +description = '`activelines`' + +['getinfo Lua 5.1'] +description = 'Returns a table with information about a function.' +[[.enums]] +name = 'what' +enum = '"n"' +description = '`name` and `namewhat`' +`````````` +name = 'what' +enum = '"S"' +description = '`source`, `short_src`, `linedefined`, `lastlinedefined`, and `what`' +`````````` +name = 'what' +enum = '"l"' +description = '`currentline`' +`````````` +name = 'what' +enum = '"t"' +description = '`istailcall`' +`````````` +name = 'what' +enum = '"u"' +description = '`nups`' +`````````` +name = 'what' +enum = '"f"' +description = '`func`' +`````````` +name = 'what' +enum = '"L"' +description = '`activelines`' + +[getlocal] +description = 'Returns the name and the value of the local variable with index `local` of the function at level `f` of the stack.' + +['getlocal Lua 5.1'] +description = 'Returns the name and the value of the local variable with index `local` of the function at level `level` of the stack.' + +[getmetatable] +description = 'Returns the metatable of the given value.' + +[getregistry] +description = 'Returns the registry table.' + +[getupvalue] +description = 'Returns the name and the value of the upvalue with index `up` of the function.' + +[getuservalue] +description = 'Returns the Lua value associated to u.' + +["getuservalue Lua 5.4"] +description = [[ +Returns the `n`-th user value associated +to the userdata `u` plus a boolean, +`false` if the userdata does not have that value. +]] + +[setCstacklimit] +description = [[ +Sets a new limit for the C stack. This limit controls how deeply nested calls can go in Lua, with the intent of avoiding a stack overflow. + +In case of success, this function returns the old limit. In case of error, it returns `false`. +]] + +[setfenv] +description = 'Sets the environment of the given `object` to the given `table` .' + +[sethook] +description = 'Sets the given function as a hook.' +[[.enums]] +name = 'mask' +enum = '"c"' +description = 'Calls hook when Lua calls a function.' +`````````` +name = 'mask' +enum = '"r"' +description = 'Calls hook when Lua returns from a function.' +`````````` +name = 'mask' +enum = '"l"' +description = 'Calls hook when Lua enters a new line of code.' + +[setlocal] +description = 'Assigns the `value` to the local variable with index `local` of the function at `level` of the stack.' + +[setmetatable] +description = 'Sets the metatable for the given value to the given table (which can be nil).' + +[setupvalue] +description = 'Assigns the `value` to the upvalue with index `up` of the function.' + +[setuservalue] +description = 'Sets the given value as the Lua value associated to the given udata.' + +["setuservalue Lua 5.4"] +description = [[ +Sets the given `value` as +the `n`-th user value associated to the given `udata`. +`udata` must be a full userdata. +]] + +[traceback] +description = 'Returns a string with a traceback of the call stack. The optional message string is appended at the beginning of the traceback.' + +[upvalueid] +description = 'Returns a unique identifier (as a light userdata) for the upvalue numbered `n` from the given function.' + +[upvaluejoin] +description = 'Make the `n1`-th upvalue of the Lua closure `f1` refer to the `n2`-th upvalue of the Lua closure `f2`.' diff --git a/server-beta/locale/en-US/libs/@lua/file.lni b/server-beta/locale/en-US/libs/@lua/file.lni new file mode 100644 index 00000000..58bb2278 --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/file.lni @@ -0,0 +1,91 @@ +[close] +description = 'Close `file`.' + +[flush] +description = 'Saves any written data to `file`.' + +[lines] +description = [[ +------ +```lua +for c in file:lines(...) do + body +end +``` +]] +[[.enums]] +name = 'mode' +enum = '"n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +enum = '"L"' +description = 'Reads the next line keeping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +[read] +description = 'Reads the `file`, according to the given formats, which specify what to read.' +[[.enums]] +name = 'mode' +enum = '"n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +enum = '"L"' +description = 'Reads the next line keeping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +[seek] +description = 'Sets and gets the file position, measured from the beginning of the file.' +[[.enums]] +name = 'whence' +enum = '"set"' +description = 'Base is beginning of the file.' +`````````` +name = 'whence' +enum = '"cur"' +description = 'Base is current position.' +`````````` +name = 'whence' +enum = '"end"' +description = 'Base is end of file.' + +[setvbuf] +description = 'Sets the buffering mode for an output file.' +[[.enums]] +name = 'mode' +enum = '"no"' +description = 'Output operation appears immediately.' +`````````` +name = 'mode' +enum = '"full"' +description = 'Performed only when the buffer is full.' +`````````` +name = 'mode' +enum = '"line"' +description = 'Buffered until a newline is output.' + +[write] +description = 'Writes the value of each of its arguments to `file`.' diff --git a/server-beta/locale/en-US/libs/@lua/io.lni b/server-beta/locale/en-US/libs/@lua/io.lni new file mode 100644 index 00000000..2b405f2f --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/io.lni @@ -0,0 +1,230 @@ +[stdin] +description = 'standard input.' + +[stdout] +description = 'standard output.' + +[stderr] +description = 'standard error.' + +[close] +description = 'Close `file` or default output file.' + +[flush] +description = 'Saves any written data to default output file.' + +[input] +description = 'Sets `file` as the default input file.' + +["lines Lua 5.1"] +description = [[ +------ +```lua +for c in io.lines(filename, ...) do + body +end +``` +]] +[[.enums]] +name = 'mode' +enum = '"*n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"*a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"*l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +["lines Lua 5.3"] +description = [[ +------ +```lua +for c in io.lines(filename, ...) do + body +end +``` +]] +[[.enums]] +name = 'mode' +enum = '"n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +enum = '"L"' +description = 'Reads the next line keeping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +["lines LuaJIT"] +description = [[ +------ +```lua +for c in io.lines(filename, ...) do + body +end +``` +]] +[[.enums]] +name = 'mode' +enum = '"*n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"*a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"*l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +enum = '"*L"' +description = 'Reads the next line keeping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +[open] +description = 'Opens a file, in the mode specified in the string `mode`.' +[[.enums]] +name = 'mode' +enum = '"r"' +description = 'Read mode.' +`````````` +name = 'mode' +enum = '"w"' +description = 'Write mode.' +`````````` +name = 'mode' +enum = '"a"' +description = 'Append mode.' +`````````` +name = 'mode' +enum = '"r+"' +description = 'Update mode, all previous data is preserved.' +`````````` +name = 'mode' +enum = '"w+"' +description = 'Update mode, all previous data is erased.' +`````````` +name = 'mode' +enum = '"a+"' +description = 'Append update mode, previous data is preserved, writing is only allowed at the end of file.' + +[output] +description = 'Sets `file` as the default output file.' + +[popen] +description = 'Starts program prog in a separated process.' +[[.enums]] +name = 'mode' +enum = '"r"' +description = 'Read data from this program by `file`.' +`````````` +name = 'mode' +enum = '"w"' +description = 'Write data to this program by `file`.' + +["read Lua 5.1"] +description = 'Reads the `file`, according to the given formats, which specify what to read.' +[[.enums]] +name = 'mode' +enum = '"*n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"*a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"*l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +["read Lua 5.3"] +description = 'Reads the `file`, according to the given formats, which specify what to read.' +[[.enums]] +name = 'mode' +enum = '"n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +enum = '"L"' +description = 'Reads the next line keeping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +["read LuaJIT"] +description = 'Reads the `file`, according to the given formats, which specify what to read.' +[[.enums]] +name = 'mode' +enum = '"*n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"*a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"*l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +enum = '"*L"' +description = 'Reads the next line keeping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +[tmpfile] +description = 'In case of success, returns a handle for a temporary file.' + +[type] +description = 'Checks whether `obj` is a valid file handle.' +[[.enums]] +name = 'type' +enum = '"file"' +description = 'Is an open file handle.' +`````````` +name = 'type' +enum = '"closed file"' +description = 'Is a closed file handle.' +`````````` +name = 'type' +code = 'nil' +description = 'Is not a file handle.' + +[write] +description = 'Writes the value of each of its arguments to default output file.' diff --git a/server-beta/locale/en-US/libs/@lua/math.lni b/server-beta/locale/en-US/libs/@lua/math.lni new file mode 100644 index 00000000..034153e7 --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/math.lni @@ -0,0 +1,132 @@ +[abs] +description = 'Returns the absolute value of `x`.' + +[acos] +description = 'Returns the arc cosine of `x` (in radians).' + +[asin] +description = 'Returns the arc sine of `x` (in radians).' + +["atan Lua 5.1"] +description = 'Returns the arc tangent of `x` (in radians).' + +["atan Lua 5.3"] +description = 'Returns the arc tangent of `y/x` (in radians).' + +[atan2] +description = 'Returns the arc tangent of `y/x` (in radians).' + +[ceil] +description = 'Returns the smallest integral value larger than or equal to `x`.' + +[cos] +description = 'Returns the cosine of `x` (assumed to be in radians).' + +[cosh] +description = 'Returns the hyperbolic cosine of `x` (assumed to be in radians).' + +[deg] +description = 'Converts the angle `x` from radians to degrees.' + +[exp] +description = 'Returns the value `e^x` (where `e` is the base of natural logarithms).' + +[floor] +description = 'Returns the largest integral value smaller than or equal to `x`.' + +[fmod] +description = 'Returns the remainder of the division of `x` by `y` that rounds the quotient towards zero.' + +[frexp] +description = 'Decompose `x` into tails and exponents. Returns `m` and `e` such that `x = m * (2 ^ e)`, `e` is an integer and the absolute value of `m` is in the range [0.5, 1) (or zero when `x` is zero).' + +[huge] +description = 'A value larger than any other numeric value.' + +[log] +description = 'Returns the logarithm of `x` in the given base.' + +['log Lua 5.1'] +description = 'Returns the natural logarithm of `x` .' + +[log10] +description = 'Returns the base-10 logarithm of x.' + +[ldexp] +description = 'Returns `m * (2 ^ e)` .' + +[max] +description = 'Returns the argument with the maximum value, according to the Lua operator `<`.' + +[maxinteger] +description = 'An integer with the maximum value for an integer.' + +[min] +description = 'Returns the argument with the minimum value, according to the Lua operator `<`.' + +[mininteger] +description = 'An integer with the minimum value for an integer.' + +[modf] +description = 'Returns the integral part of `x` and the fractional part of `x`.' + +[pi] +description = 'The value of *π*.' + +[pow] +description = 'Returns `x ^ y` .' + +[rad] +description = 'Converts the angle `x` from degrees to radians.' + +[random] +description = [[ +* `math.random()`: Returns a float in the range [0,1). +* `math.random(n)`: Returns a integer in the range [1, n]. +* `math.random(m, n)`: Returns a integer in the range [m, n]. +]] + +[randomseed] +description = 'Sets `x` as the "seed" for the pseudo-random generator.' + +["randomseed Lua 5.4"] +description = [[ +* `math.randomseed(x, y)`: Concatenate `x` and `y` into a 128-bit `seed` to reinitialize the pseudo-random generator. +* `math.randomseed(x)`: Equate to `math.randomseed(x, 0)` . +* `math.randomseed()`: Generates a seed with a weak attempt for randomness. +]] + +[sin] +description = 'Returns the sine of `x` (assumed to be in radians).' + +[sinh] +description = 'Returns the hyperbolic sine of `x` (assumed to be in radians).' + +[sqrt] +description = 'Returns the square root of `x`.' + +[tan] +description = 'Returns the tangent of `x` (assumed to be in radians).' + +[tanh] +description = 'Returns the hyperbolic tangent of `x` (assumed to be in radians).' + +[tointeger] +description = 'If the value `x` is convertible to an integer, returns that integer.' + +[type] +[[.enums]] +name = 'type' +enum = '"integer"' +description = '`x` is an integer.' +`````````` +name = 'type' +enum = '"float"' +description = '`x` is a float.' +`````````` +name = 'type' +code = 'nil' +description = '`x` is not a number.' + +[ult] +description = 'Returns `true` if and only if `m` is below `n` when they are compared as unsigned integers.' diff --git a/server-beta/locale/en-US/libs/@lua/os.lni b/server-beta/locale/en-US/libs/@lua/os.lni new file mode 100644 index 00000000..82b7c228 --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/os.lni @@ -0,0 +1,38 @@ +[clock] +description = 'Returns an approximation of the amount in seconds of CPU time used by the program.' + +[data] +description = 'Returns a string or a table containing date and time, formatted according to the given string `format`.' + +[difftime] +description = 'Returns the difference, in seconds, from time `t1` to time `t2`.' + +[execute] +description = 'Passes `command` to be executed by an operating system shell.' + +['execute Lua 5.1'] +description = 'Passes `command` to be executed by an operating system shell.' + +[exit] +description = 'Calls the ISO C function `exit` to terminate the host program.' + +['exit Lua 5.1'] +description = 'Calls the C function `exit` to terminate the host program.' + +[getenv] +description = 'Returns the value of the process environment variable `varname`.' + +[remove] +description = 'Deletes the file with the given name.' + +[rename] +description = 'Renames the file or directory named `oldname` to `newname`.' + +[setlocale] +description = 'Sets the current locale of the program.' + +[time] +description = 'Returns the current time when called without arguments, or a time representing the local date and time specified by the given table.' + +[tmpname] +description = 'Returns a string with a file name that can be used for a temporary file.' diff --git a/server-beta/locale/en-US/libs/@lua/package.lni b/server-beta/locale/en-US/libs/@lua/package.lni new file mode 100644 index 00000000..1c8b633a --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/package.lni @@ -0,0 +1,29 @@ +[config] +description = 'A string describing some compile-time configurations for packages.' + +[cpath] +description = 'The path used by `require` to search for a C loader.' + +[loaded] +description = 'A table used by `require` to control which modules are already loaded.' + +[loaders] +description = 'A table used by `require` to control how to load modules.' + +[loadlib] +description = 'Dynamically links the host program with the C library `libname`.' + +[path] +description = 'The path used by `require` to search for a Lua loader.' + +[preload] +description = 'A table to store loaders for specific modules.' + +[searchers] +description = 'A table used by `require` to control how to load modules.' + +[searchpath] +description = 'Searches for the given `name` in the given `path`.' + +[seeall] +describing = 'Sets a metatable for `module` with its `__index` field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to function `module` .' diff --git a/server-beta/locale/en-US/libs/@lua/string.lni b/server-beta/locale/en-US/libs/@lua/string.lni new file mode 100644 index 00000000..2055b16b --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/string.lni @@ -0,0 +1,72 @@ +[byte] +description = 'Returns the internal numeric codes of the characters `s[i], s[i+1], ..., s[j]`.' + +[char] +description = 'Returns a string with length equal to the number of arguments, in which each character has the internal numeric code equal to its corresponding argument.' + +[dump] +description = 'Returns a string containing a binary representation (a *binary chunk*) of the given function.' + +[find] +description = 'Looks for the first match of [`pattern`](https://www.lua.org/manual/5.3/manual.html#6.4.1) in the string.' + +[format] +description = 'Returns a formatted version of its variable number of arguments following the description given in its first argument.' + +[gmatch] +description = [[ +---------- +```lua +s = "hello world from Lua" +for w in string.gmatch(s, "%a+") do + print(w) +end +``` +]] + +["gmatch Lua 5.4"] +description = [[ +---------- +```lua +s = "hello world from Lua" +for w in string.gmatch(s, "%a+") do + print(w) +end +``` +]] + +[gsub] +description = 'Returns a copy of s in which all (or the first `n`, if given) occurrences of the [`pattern`](https://www.lua.org/manual/5.3/manual.html#6.4.1) have been replaced by a replacement string specified by `repl`.' + +[len] +description = 'Returns its length.' + +[lower] +description = 'Returns a copy of this string with all uppercase letters changed to lowercase.' + +[match] +description = 'Looks for the first match of [`pattern`](https://www.lua.org/manual/5.3/manual.html#6.4.1) in the string.' + +[pack] +description = 'Returns a binary string containing the values `v1`, `v2`, etc. packed (that is, serialized in binary form) according to the format string [`fmt`](https://www.lua.org/manual/5.3/manual.html#6.4.2).' + +[packsize] +description = 'Returns the size of a string resulting from `string.pack` with the given format.' + +[rep] +description = 'Returns a string that is the concatenation of `n` copies of the string `s` separated by the string `sep`.' + +['rep Lua 5.1'] +description = 'Returns a string that is the concatenation of `n` copies of the string `s` .' + +[reverse] +description = 'Returns a string that is the string `s` reversed.' + +[sub] +description = 'Returns the substring of the string that starts at `i` and continues until `j`.' + +[unpack] +description = 'Returns the values packed in string according to the format string [`fmt`](https://www.lua.org/manual/5.3/manual.html#6.4.2).' + +[upper] +description = 'Returns a copy of this string with all lowercase letters changed to uppercase.' diff --git a/server-beta/locale/en-US/libs/@lua/table.lni b/server-beta/locale/en-US/libs/@lua/table.lni new file mode 100644 index 00000000..d32ea4ae --- /dev/null +++ b/server-beta/locale/en-US/libs/@lua/table.lni @@ -0,0 +1,39 @@ +[concat] +description = [[ +-------- +```lua +return list[i]..sep..list[i+1] ··· sep..list[j] +``` +]] + +[insert] +description = 'Inserts element `value` at position `pos` in `list`.' + +[maxn] +description = 'Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices.' + +[move] +description = [[ +Moves elements from table `a1` to table `a2`. +```lua +a2[t],··· = a1[f],···,a1[e] +return a2 +``` +]] + +[pack] +description = 'Returns a new table with all arguments stored into keys `1`, `2`, etc. and with a field `"n"` with the total number of arguments.' + +[remove] +description = 'Removes from `list` the element at position `pos`, returning the value of the removed element.' + +[sort] +description = 'Sorts list elements in a given order, *in-place*, from `list[1]` to `list[#list]`.' + +[unpack] +description = [[ +------- +```lua +return list[i], list[i+1], ···, list[j] +``` +]] diff --git a/server-beta/locale/en-US/libs/@lua/utf8.lni b/server-beta/locale/en-US/libs/@lua/utf8.lni new file mode 100644 index 00000000..c7ab9bf3 --- /dev/null +++ b/server-beta/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.' |