Lua 5.2 官方文档

Standard Libraries

  • assert()
  • bit32.arshift()
  • bit32.band()
  • bit32.bnot()
  • bit32.bor()
  • bit32.btest()
  • bit32.bxor()
  • bit32.extract()
  • bit32.lrotate()
  • bit32.lshift()
  • bit32.replace()
  • bit32.rrotate()
  • bit32.rshift()
  • collectgarbage()
  • coroutine.create()
  • coroutine.resume()
  • coroutine.running()
  • coroutine.status()
  • coroutine.wrap()
  • coroutine.yield()
  • debug.debug()
  • debug.gethook()
  • debug.getinfo()
  • debug.getlocal()
  • debug.getmetatable()
  • debug.getregistry()
  • debug.getupvalue()
  • debug.getuservalue()
  • debug.sethook()
  • debug.setlocal()
  • debug.setmetatable()
  • debug.setupvalue()
  • debug.setuservalue()
  • debug.traceback()
  • debug.upvalueid()
  • debug.upvaluejoin()
  • dofile()
  • error()
  • file:close()
  • file:flush()
  • file:lines()
  • file:read()
  • file:seek()
  • file:setvbuf()
  • file:write()
  • getmetatable()
  • io.close()
  • io.flush()
  • io.input()
  • io.lines()
  • io.open()
  • io.output()
  • io.popen()
  • io.read()
  • io.tmpfile()
  • io.type()
  • io.write()
  • ipairs()
  • load()
  • loadfile()
  • math.abs()
  • math.acos()
  • math.asin()
  • math.atan()
  • math.atan2()
  • math.ceil()
  • math.cos()
  • math.cosh()
  • math.deg()
  • math.exp()
  • math.floor()
  • math.fmod()
  • math.frexp()
  • math.huge
  • math.ldexp()
  • math.log()
  • math.max()
  • math.min()
  • math.modf()
  • math.pi
  • math.pow()
  • math.rad()
  • math.random()
  • math.randomseed()
  • math.sin()
  • math.sinh()
  • math.sqrt()
  • math.tan()
  • math.tanh()
  • next()
  • os.clock()
  • os.date()
  • os.difftime()
  • os.execute()
  • os.exit()
  • os.getenv()
  • os.remove()
  • os.rename()
  • os.setlocale()
  • os.time()
  • os.tmpname()
  • package.config
  • package.cpath
  • package.loaded
  • package.loadlib()
  • package.path
  • package.preload
  • package.searchers
  • package.searchpath()
  • pairs()
  • Patterns
  • pcall()
  • print()
  • rawequal()
  • rawget()
  • rawlen()
  • rawset()
  • require()
  • select()
  • setmetatable()
  • string.byte()
  • string.char()
  • string.dump()
  • string.find()
  • string.format()
  • string.gmatch()
  • string.gsub()
  • string.len()
  • string.lower()
  • string.match()
  • string.rep()
  • string.reverse()
  • string.sub()
  • string.upper()
  • table.concat()
  • table.insert()
  • table.pack()
  • table.remove()
  • table.sort()
  • table.unpack()
  • tonumber()
  • tostring()
  • type()
  • xpcall()
  • _G
  • _VERSION
  • API

  • 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_Debug
  • lua_dump
  • lua_error
  • lua_gc
  • lua_getallocf
  • lua_getctx
  • lua_getfield
  • lua_getglobal
  • lua_gethook
  • lua_gethookcount
  • lua_gethookmask
  • lua_getinfo
  • lua_getlocal
  • lua_getmetatable
  • lua_getstack
  • lua_gettable
  • lua_gettop
  • lua_getupvalue
  • lua_getuservalue
  • lua_Hook
  • lua_insert
  • lua_Integer
  • lua_isboolean
  • lua_iscfunction
  • lua_isfunction
  • lua_islightuserdata
  • lua_isnil
  • lua_isnone
  • lua_isnoneornil
  • lua_isnumber
  • lua_isstring
  • lua_istable
  • lua_isthread
  • lua_isuserdata
  • lua_len
  • lua_load
  • lua_newstate
  • lua_newtable
  • lua_newthread
  • lua_newuserdata
  • lua_next
  • lua_Number
  • 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_pushunsigned
  • 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_setallocf
  • lua_setfield
  • lua_setglobal
  • lua_sethook
  • lua_setlocal
  • lua_setmetatable
  • lua_settable
  • lua_settop
  • lua_setupvalue
  • lua_setuservalue
  • lua_State
  • lua_status
  • lua_toboolean
  • lua_tocfunction
  • lua_tointeger
  • lua_tointegerx
  • lua_tolstring
  • lua_tonumber
  • lua_tonumberx
  • lua_topointer
  • lua_tostring
  • lua_tothread
  • lua_tounsigned
  • lua_tounsignedx
  • lua_touserdata
  • lua_type
  • lua_typename
  • lua_Unsigned
  • lua_upvalueid
  • lua_upvalueindex
  • lua_upvaluejoin
  • lua_version
  • lua_Writer
  • lua_xmove
  • lua_yield
  • lua_yieldk
  • Index

  • index