Go to the source code of this file.
Macros | |
#define | sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) |
#define | sizeudata(u) (sizeof(union Udata)+(u)->len) |
#define | luaS_newliteral(L, s) |
#define | luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) |
#define | isreserved(s) ((s)->tsv.tt == LUA_TSHRSTR && (s)->tsv.extra > 0) |
#define | eqshrstr(a, b) check_exp((a)->tsv.tt == LUA_TSHRSTR, (a) == (b)) |
Functions | |
LUAI_FUNC unsigned int | luaS_hash (const char *str, size_t l, unsigned int seed) |
LUAI_FUNC int | luaS_eqlngstr (TString *a, TString *b) |
LUAI_FUNC int | luaS_eqstr (TString *a, TString *b) |
LUAI_FUNC void | luaS_resize (lua_State *L, int newsize) |
LUAI_FUNC Udata * | luaS_newudata (lua_State *L, size_t s, Table *e) |
LUAI_FUNC TString * | luaS_newlstr (lua_State *L, const char *str, size_t l) |
LUAI_FUNC TString * | luaS_new (lua_State *L, const char *str) |
Definition at line 33 of file lstring.h.
Referenced by luaH_getstr(), luaS_eqstr(), and luaV_equalobj_().
#define isreserved | ( | s | ) | ((s)->tsv.tt == LUA_TSHRSTR && (s)->tsv.extra > 0) |
Definition at line 27 of file lstring.h.
Referenced by llex(), and undefgoto().
Definition at line 21 of file lstring.h.
Referenced by f_luaopen(), luaT_init(), luaX_init(), and luaX_setinput().
#define luaS_newliteral | ( | L, | |
s | |||
) |
Definition at line 18 of file lstring.h.
Referenced by f_luaopen(), and seterrorobj().
Definition at line 14 of file lstring.h.
Referenced by freeobj(), and reallymarkobject().
Definition at line 16 of file lstring.h.
Referenced by freeobj(), and reallymarkobject().
Definition at line 32 of file lstring.cpp.
References getstr, TString::len, lua_assert, LUA_TLNGSTR, and TString::tsv.
Referenced by luaS_eqstr(), and luaV_equalobj_().
Definition at line 44 of file lstring.cpp.
References eqshrstr, LUA_TSHRSTR, luaS_eqlngstr(), and TString::tsv.
Referenced by checkrepeated(), closegoto(), findgotos(), findlabel(), searchupvalue(), and searchvar().
Definition at line 50 of file lstring.cpp.
References cast, cast_byte, h, and LUAI_HASHLIMIT.
Referenced by internshrstr(), mainposition(), and makeseed().
Definition at line 169 of file lstring.cpp.
References luaS_newlstr().
Referenced by breaklabel(), gotostat(), lua_getfield(), lua_getglobal(), lua_pushstring(), lua_setfield(), lua_setglobal(), luaT_init(), luaX_init(), luaX_setinput(), luaY_parser(), and resume_error().
Definition at line 155 of file lstring.cpp.
References createstrobj(), G, internshrstr(), LUA_TLNGSTR, LUAI_MAXSHORTLEN, luaM_toobig(), and MAX_SIZET.
Referenced by LoadString(), lua_concat(), lua_pushlstring(), luaK_numberK(), luaS_new(), luaV_concat(), luaV_tostring(), luaX_newstring(), and pushstr().
Definition at line 174 of file lstring.cpp.
References e, Udata::env, Udata::len, LUA_TUSERDATA, luaC_newobj(), luaM_toobig(), MAX_SIZET, Udata::metatable, GCObject::u, and Udata::uv.
Referenced by lua_newuserdata().
Definition at line 63 of file lstring.cpp.
References bitmask, G, gch, gco2ts, GCSsweepstring, h, stringtable::hash, i, lmod, lua_assert, luaC_runtilstate(), luaM_reallocvector, next, resetoldbit, and stringtable::size.
Referenced by checkSizes(), f_luaopen(), and newshrstr().