🗃️ 资料存档#
- Luat框架
- Luat框架(进阶-底层机制)
- Lua 5.3 参考手册
- 1 – 简介
- 2 – 基本概念
- 3 – 语言定义
- 4 – 编程接口
- 4.1 – 栈
- 4.2 – 栈大小
- 4.3 – 有效索引与可接受索引
- 4.4 – C 闭包
- 4.5 – 注册表
- 4.6 – C 中的错误处理
- 4.7 – C 中的让出处理
- 4.8 – 函数和类型
lua_absindex
lua_Alloc
lua_arith
lua_atpanic
lua_call
lua_callk
lua_CFunction
lua_checkstack
lua_close
lua_compare
lua_concat
lua_copy
lua_createtable
lua_dump
lua_error
lua_gc
lua_getallocf
lua_getfield
lua_getextraspace
lua_getglobal
lua_geti
lua_getmetatable
lua_gettable
lua_gettop
lua_getuservalue
lua_insert
lua_Integer
lua_isboolean
lua_iscfunction
lua_isfunction
lua_isinteger
lua_islightuserdata
lua_isnil
lua_isnone
lua_isnoneornil
lua_isnumber
lua_isstring
lua_istable
lua_isthread
lua_isuserdata
lua_isyieldable
lua_KContext
lua_KFunction
lua_len
lua_load
lua_newstate
lua_newtable
lua_newthread
lua_newuserdata
lua_next
lua_Number
lua_numbertointeger
lua_pcall
lua_pcallk
lua_pop
lua_pushboolean
lua_pushcclosure
lua_pushcfunction
lua_pushfstring
lua_pushglobaltable
lua_pushinteger
lua_pushlightuserdata
lua_pushliteral
lua_pushlstring
lua_pushnil
lua_pushnumber
lua_pushstring
lua_pushthread
lua_pushvalue
lua_pushvfstring
lua_rawequal
lua_rawget
lua_rawgeti
lua_rawgetp
lua_rawlen
lua_rawset
lua_rawseti
lua_rawsetp
lua_Reader
lua_register
lua_remove
lua_replace
lua_resume
lua_rotate
lua_setallocf
lua_setfield
lua_setglobal
lua_seti
lua_setmetatable
lua_settable
lua_settop
lua_setuservalue
lua_State
lua_status
lua_stringtonumber
lua_toboolean
lua_tocfunction
lua_tointeger
lua_tointegerx
lua_tolstring
lua_tonumber
lua_tonumberx
lua_topointer
lua_tostring
lua_tothread
lua_touserdata
lua_type
lua_typename
lua_Unsigned
lua_upvalueindex
lua_version
lua_Writer
lua_xmove
lua_yield
lua_yieldk
- 4.9 – 调试接口
- 5 – 辅助库
- 5.1 – 函数和类型
luaL_addchar
luaL_addlstring
luaL_addsize
luaL_addstring
luaL_addvalue
luaL_argcheck
luaL_argerror
luaL_Buffer
luaL_buffinit
luaL_buffinitsize
luaL_callmeta
luaL_checkany
luaL_checkinteger
luaL_checklstring
luaL_checknumber
luaL_checkoption
luaL_checkstack
luaL_checkstring
luaL_checktype
luaL_checkudata
luaL_checkversion
luaL_dofile
luaL_dostring
luaL_error
luaL_execresult
luaL_fileresult
luaL_getmetafield
luaL_getmetatable
luaL_getsubtable
luaL_gsub
luaL_len
luaL_loadbuffer
luaL_loadbufferx
luaL_loadfile
luaL_loadfilex
luaL_loadstring
luaL_newlib
luaL_newlibtable
luaL_newmetatable
luaL_newstate
luaL_openlibs
luaL_optinteger
luaL_optlstring
luaL_optnumber
luaL_optstring
luaL_prepbuffer
luaL_prepbuffsize
luaL_pushresult
luaL_pushresultsize
luaL_ref
luaL_Reg
luaL_requiref
luaL_setfuncs
luaL_setmetatable
luaL_Stream
luaL_testudata
luaL_tolstring
luaL_traceback
luaL_typename
luaL_unref
luaL_where
- 5.1 – 函数和类型
- 6 – 标准库
- 6.1 – 基础函数
assert (v [, message])
collectgarbage ([opt [, arg]])
dofile ([filename])
error (message [, level])
_G
getmetatable (object)
ipairs (t)
load (chunk [, chunkname [, mode [, env]]])
loadfile ([filename [, mode [, env]]])
next (table [, index])
pairs (t)
pcall (f [, arg1, ···])
print (···)
rawequal (v1, v2)
rawget (table, index)
rawlen (v)
rawset (table, index, value)
select (index, ···)
setmetatable (table, metatable)
tonumber (e [, base])
tostring (v)
type (v)
_VERSION
xpcall (f, msgh [, arg1, ···])
- 6.2 – 协程管理
- 6.3 – 模块
- 6.4 – 字符串处理
string.byte (s [, i [, j]])
string.char (···)
string.dump (function [, strip])
string.find (s, pattern [, init [, plain]])
string.format (formatstring, ···)
string.gmatch (s, pattern)
string.gsub (s, pattern, repl [, n])
string.len (s)
string.lower (s)
string.match (s, pattern [, init])
string.pack (fmt, v1, v2, ···)
string.packsize (fmt)
string.rep (s, n [, sep])
string.reverse (s)
string.sub (s, i [, j])
string.unpack (fmt, s [, pos])
string.upper (s)
- 6.4.1 – 匹配模式
- 6.4.2 – 打包和解包用到的格式串
- 6.5 – UTF-8 支持
- 6.6 – 表处理
- 6.7 – 数学函数
math.abs (x)
math.acos (x)
math.asin (x)
math.atan (y [, x])
math.ceil (x)
math.cos (x)
math.deg (x)
math.exp (x)
math.floor (x)
math.fmod (x, y)
math.huge
math.log (x [, base])
math.max (x, ···)
math.maxinteger
math.min (x, ···)
math.mininteger
math.modf (x)
math.pi
math.rad (x)
math.random ([m [, n]])
math.randomseed (x)
math.sin (x)
math.sqrt (x)
math.tan (x)
math.tointeger (x)
math.type (x)
math.ult (m, n)
- 6.8 – 输入输出库
io.close ([file])
io.flush ()
io.input ([file])
io.lines ([filename ···])
io.open (filename [, mode])
io.output ([file])
io.popen (prog [, mode])
io.read (···)
io.tmpfile ()
io.type (obj)
io.write (···)
file:close ()
file:flush ()
file:lines (···)
file:read (···)
file:seek ([whence [, offset]])
file:setvbuf (mode [, size])
file:write (···)
- 6.9 – 操作系统库
- 6.10 – 调试库
debug.debug ()
debug.gethook ([thread])
debug.getinfo ([thread,] f [, what])
debug.getlocal ([thread,] f, local)
debug.getmetatable (value)
debug.getregistry ()
debug.getupvalue (f, up)
debug.getuservalue (u)
debug.sethook ([thread,] hook, mask [, count])
debug.setlocal ([thread,] level, local, value)
debug.setmetatable (value, table)
debug.setupvalue (f, up, value)
debug.setuservalue (udata, value)
debug.traceback ([thread,] [message [, level]])
debug.upvalueid (f, n)
debug.upvaluejoin (f1, n1, f2, n2)
- 6.1 – 基础函数
- 7 – 独立版 Lua
- 8 – 与之前版本不兼容的地方
- 9 – Lua 的完整语法