Macros | Functions
lstring.c File Reference
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
#include "lstring.h"
Include dependency graph for lstring.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define lstring_c
 
#define LUA_CORE
 
#define LUAI_HASHLIMIT   5
 
#define MAXSTRTB   cast_int(luaM_limitN(MAX_INT, TString*))
 

Functions

static TStringcreatestrobj (lua_State *L, size_t l, int tag, unsigned int h)
 
static void growstrtab (lua_State *L, stringtable *tb)
 
static TStringinternshrstr (lua_State *L, const char *str, size_t l)
 
void luaS_clearcache (global_State *g)
 
TStringluaS_createlngstrobj (lua_State *L, size_t l)
 
int luaS_eqlngstr (TString *a, TString *b)
 
unsigned int luaS_hash (const char *str, size_t l, unsigned int seed, size_t step)
 
unsigned int luaS_hashlongstr (TString *ts)
 
void luaS_init (lua_State *L)
 
TStringluaS_new (lua_State *L, const char *str)
 
TStringluaS_newlstr (lua_State *L, const char *str, size_t l)
 
UdataluaS_newudata (lua_State *L, size_t s, int nuvalue)
 
void luaS_remove (lua_State *L, TString *ts)
 
void luaS_resize (lua_State *L, int nsize)
 
static void tablerehash (TString **vect, int osize, int nsize)
 

Macro Definition Documentation

#define lstring_c

Definition at line 7 of file lstring.c.

#define LUA_CORE

Definition at line 8 of file lstring.c.

#define LUAI_HASHLIMIT   5

Definition at line 30 of file lstring.c.

#define MAXSTRTB   cast_int(luaM_limitN(MAX_INT, TString*))

Definition at line 38 of file lstring.c.

Function Documentation

static TString* createstrobj ( lua_State L,
size_t  l,
int  tag,
unsigned int  h 
)
static

Definition at line 155 of file lstring.c.

static void growstrtab ( lua_State L,
stringtable tb 
)
static

Definition at line 186 of file lstring.c.

static TString* internshrstr ( lua_State L,
const char *  str,
size_t  l 
)
static

Definition at line 200 of file lstring.c.

void luaS_clearcache ( global_State g)

Definition at line 122 of file lstring.c.

TString* luaS_createlngstrobj ( lua_State L,
size_t  l 
)

Definition at line 169 of file lstring.c.

int luaS_eqlngstr ( TString a,
TString b 
)

Definition at line 44 of file lstring.c.

unsigned int luaS_hash ( const char *  str,
size_t  l,
unsigned int  seed,
size_t  step 
)

Definition at line 53 of file lstring.c.

unsigned int luaS_hashlongstr ( TString ts)

Definition at line 62 of file lstring.c.

void luaS_init ( lua_State L)

Definition at line 135 of file lstring.c.

TString* luaS_new ( lua_State L,
const char *  str 
)

Definition at line 253 of file lstring.c.

TString* luaS_newlstr ( lua_State L,
const char *  str,
size_t  l 
)

Definition at line 233 of file lstring.c.

Udata* luaS_newudata ( lua_State L,
size_t  s,
int  nuvalue 
)

Definition at line 270 of file lstring.c.

void luaS_remove ( lua_State L,
TString ts 
)

Definition at line 176 of file lstring.c.

void luaS_resize ( lua_State L,
int  nsize 
)

Definition at line 97 of file lstring.c.

static void tablerehash ( TString **  vect,
int  osize,
int  nsize 
)
static

Definition at line 74 of file lstring.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48