#include <string.h>
#include "lua.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
#include "lstring.h"
Go to the source code of this file.
Macros | |
#define | lstring_c |
#define | LUA_CORE |
#define | LUAI_HASHLIMIT 5 |
Functions | |
int | luaS_eqlngstr (TString *a, TString *b) |
int | luaS_eqstr (TString *a, TString *b) |
unsigned int | luaS_hash (const char *str, size_t l, unsigned int seed) |
void | luaS_resize (lua_State *L, int newsize) |
static TString * | createstrobj (lua_State *L, const char *str, size_t l, int tag, unsigned int h, GCObject **list) |
static TString * | newshrstr (lua_State *L, const char *str, size_t l, unsigned int h) |
static TString * | internshrstr (lua_State *L, const char *str, size_t l) |
TString * | luaS_newlstr (lua_State *L, const char *str, size_t l) |
TString * | luaS_new (lua_State *L, const char *str) |
Udata * | luaS_newudata (lua_State *L, size_t s, Table *e) |
#define lstring_c |
Definition at line 9 of file lstring.cpp.
#define LUA_CORE |
Definition at line 10 of file lstring.cpp.
#define LUAI_HASHLIMIT 5 |
Definition at line 25 of file lstring.cpp.
Referenced by luaS_hash().
|
static |
Definition at line 97 of file lstring.cpp.
References TString::extra, h, TString::hash, TString::len, luaC_newobj(), GCObject::ts, and TString::tsv.
Referenced by luaS_newlstr(), and newshrstr().
Definition at line 132 of file lstring.cpp.
References changewhite, G, gch, getstr, stringtable::hash, TString::hash, isdead, TString::len, lmod, luaS_hash(), newshrstr(), next, rawgco2ts, global_State::seed, stringtable::size, global_State::strt, and TString::tsv.
Referenced by luaS_newlstr().
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().
Definition at line 115 of file lstring.cpp.
References cast, createstrobj(), G, stringtable::hash, lmod, LUA_TSHRSTR, luaS_resize(), MAX_INT, stringtable::nuse, and stringtable::size.
Referenced by internshrstr().