• 附录二 Lua 5.2 程序接口
    • Lua functions
    • C API
    • auxiliary library
    • 导航

    附录二 Lua 5.2 程序接口

    Lua functions

    1. _G
    2. _VERSION
    3. assert
    4. collectgarbage
    5. dofile
    6. error
    7. getmetatable
    8. ipairs
    9. loadfile
    10. load
    11. next
    12. pairs
    13. pcall
    14. print
    15. rawequal
    16. rawget
    17. rawlen
    18. rawset
    19. require
    20. select
    21. setmetatable
    22. tonumber
    23. tostring
    24. type
    25. xpcall
    26. bit32.arshift
    27. bit32.band
    28. bit32.bnot
    29. bit32.bor
    30. bit32.btest
    31. bit32.bxor
    32. bit32.extract
    33. bit32.lrotate
    34. bit32.lshift
    35. bit32.replace
    36. bit32.rrotate
    37. bit32.rshift
    38. coroutine.create
    39. coroutine.resume
    40. coroutine.running
    41. coroutine.status
    42. coroutine.wrap
    43. coroutine.yield
    44. debug.debug
    45. debug.getuservalue
    46. debug.gethook
    47. debug.getinfo
    48. debug.getlocal
    49. debug.getmetatable
    50. debug.getregistry
    51. debug.getupvalue
    52. debug.setuservalue
    53. debug.sethook
    54. debug.setlocal
    55. debug.setmetatable
    56. debug.setupvalue
    57. debug.traceback
    58. debug.upvalueid
    59. debug.upvaluejoin
    60. file:close
    61. file:flush
    62. file:lines
    63. file:read
    64. file:seek
    65. file:setvbuf
    66. file:write
    67. io.close
    68. io.flush
    69. io.input
    70. io.lines
    71. io.open
    72. io.output
    73. io.popen
    74. io.read
    75. io.stderr
    76. io.stdin
    77. io.stdout
    78. io.tmpfile
    79. io.type
    80. io.write
    81. math.abs
    82. math.acos
    83. math.asin
    84. math.atan
    85. math.atan2
    86. math.ceil
    87. math.cos
    88. math.cosh
    89. math.deg
    90. math.exp
    91. math.floor
    92. math.fmod
    93. math.frexp
    94. math.huge
    95. math.ldexp
    96. math.log
    97. math.max
    98. math.min
    99. math.modf
    100. math.pi
    101. math.pow
    102. math.rad
    103. math.random
    104. math.randomseed
    105. math.sin
    106. math.sinh
    107. math.sqrt
    108. math.tan
    109. math.tanh
    110. os.clock
    111. os.date
    112. os.difftime
    113. os.execute
    114. os.exit
    115. os.getenv
    116. os.remove
    117. os.rename
    118. os.setlocale
    119. os.time
    120. os.tmpname
    121. package.config
    122. package.cpath
    123. package.loaded
    124. package.loadlib
    125. package.path
    126. package.preload
    127. package.searchers
    128. package.searchpath
    129. string.byte
    130. string.char
    131. string.dump
    132. string.find
    133. string.format
    134. string.gmatch
    135. string.gsub
    136. string.len
    137. string.lower
    138. string.match
    139. string.rep
    140. string.reverse
    141. string.sub
    142. string.upper
    143. table.concat
    144. table.insert
    145. table.pack
    146. table.remove
    147. table.sort
    148. table.unpack

    C API

    1. lua_Alloc
    2. lua_CFunction
    3. lua_Debug
    4. lua_Hook
    5. lua_Integer
    6. lua_Number
    7. lua_Reader
    8. lua_State
    9. lua_Unsigned
    10. lua_Writer
    11. lua_absindex
    12. lua_arith
    13. lua_atpanic
    14. lua_call
    15. lua_callk
    16. lua_checkstack
    17. lua_close
    18. lua_compare
    19. lua_concat
    20. lua_copy
    21. lua_createtable
    22. lua_dump
    23. lua_error
    24. lua_gc
    25. lua_getallocf
    26. lua_getctx
    27. lua_getfield
    28. lua_getglobal
    29. lua_gethook
    30. lua_gethookcount
    31. lua_gethookmask
    32. lua_getinfo
    33. lua_getlocal
    34. lua_getmetatable
    35. lua_getstack
    36. lua_gettable
    37. lua_gettop
    38. lua_getupvalue
    39. lua_getuservalue
    40. lua_insert
    41. lua_isboolean
    42. lua_iscfunction
    43. lua_isfunction
    44. lua_islightuserdata
    45. lua_isnil
    46. lua_isnone
    47. lua_isnoneornil
    48. lua_isnumber
    49. lua_isstring
    50. lua_istable
    51. lua_isthread
    52. lua_isuserdata
    53. lua_len
    54. lua_load
    55. lua_newstate
    56. lua_newtable
    57. lua_newthread
    58. lua_newuserdata
    59. lua_next
    60. lua_pcall
    61. lua_pcallk
    62. lua_pop
    63. lua_pushboolean
    64. lua_pushcclosure
    65. lua_pushcfunction
    66. lua_pushfstring
    67. lua_pushinteger
    68. lua_pushlightuserdata
    69. lua_pushliteral
    70. lua_pushlstring
    71. lua_pushnil
    72. lua_pushnumber
    73. lua_pushstring
    74. lua_pushthread
    75. lua_pushvalue
    76. lua_pushvfstring
    77. lua_rawequal
    78. lua_rawget
    79. lua_rawgeti
    80. lua_rawlen
    81. lua_rawset
    82. lua_rawseti
    83. lua_rawgetp
    84. lua_rawsetp
    85. lua_register
    86. lua_remove
    87. lua_replace
    88. lua_resume
    89. lua_setallocf
    90. lua_setfield
    91. lua_setglobal
    92. lua_sethook
    93. lua_setlocal
    94. lua_setmetatable
    95. lua_settable
    96. lua_settop
    97. lua_setupvalue
    98. lua_setuservalue
    99. lua_status
    100. lua_toboolean
    101. lua_tocfunction
    102. lua_tointeger
    103. lua_tointegerx
    104. lua_tolstring
    105. lua_tonumber
    106. lua_tonumberx
    107. lua_topointer
    108. lua_tostring
    109. lua_tothread
    110. lua_tounsigned
    111. lua_tounsignedx
    112. lua_touserdata
    113. lua_type
    114. lua_typename
    115. lua_upvalueid
    116. lua_upvalueindex
    117. lua_upvaluejoin
    118. lua_version
    119. lua_xmove
    120. lua_yield
    121. lua_yieldk

    auxiliary library

    1. luaL_Buffer
    2. luaL_Reg
    3. luaL_addchar
    4. luaL_addlstring
    5. luaL_addsize
    6. luaL_addstring
    7. luaL_addvalue
    8. luaL_argcheck
    9. luaL_argerror
    10. luaL_buffinit
    11. luaL_buffinitsize
    12. luaL_callmeta
    13. luaL_checkany
    14. luaL_checkinteger
    15. luaL_checkint
    16. luaL_checklong
    17. luaL_checklstring
    18. luaL_checknumber
    19. luaL_checkoption
    20. luaL_checkstack
    21. luaL_checkstring
    22. luaL_checktype
    23. luaL_checkudata
    24. luaL_checkunsigned
    25. luaL_checkversion
    26. luaL_dofile
    27. luaL_dostring
    28. luaL_error
    29. luaL_execresult
    30. luaL_fileresult
    31. luaL_getmetafield
    32. luaL_getmetatable
    33. luaL_getsubtable
    34. luaL_gsub
    35. luaL_len
    36. luaL_loadbuffer
    37. luaL_loadbufferx
    38. luaL_loadfile
    39. luaL_loadfilex
    40. luaL_loadstring
    41. luaL_newlib
    42. luaL_newlibtable
    43. luaL_newmetatable
    44. luaL_newstate
    45. luaL_openlibs
    46. luaL_optinteger
    47. luaL_optint
    48. luaL_optlong
    49. luaL_optlstring
    50. luaL_optnumber
    51. luaL_optstring
    52. luaL_optunsigned
    53. luaL_prepbuffer
    54. luaL_prepbuffsize
    55. luaL_pushresult
    56. luaL_pushresultsize
    57. luaL_ref
    58. luaL_requiref
    59. luaL_setfuncs
    60. luaL_setmetatable
    61. luaL_testudata
    62. luaL_tolstring
    63. luaL_traceback
    64. luaL_typename
    65. luaL_unref
    66. luaL_where

    导航

    • 目录
    • 上一章:附录一 Lua 5.1 程序接口