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:

Go to the source code of this file.

Macros

#define lstring_c
 
#define LUA_CORE
 
#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)
 
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

◆ lstring_c

#define lstring_c

Definition at line 7 of file lstring.c.

◆ LUA_CORE

#define LUA_CORE

Definition at line 8 of file lstring.c.

◆ MAXSTRTB

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

Definition at line 28 of file lstring.c.

Function Documentation

◆ createstrobj()

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

Definition at line 143 of file lstring.c.

◆ growstrtab()

static void growstrtab ( lua_State L,
stringtable tb 
)
static

Definition at line 174 of file lstring.c.

◆ internshrstr()

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

Definition at line 188 of file lstring.c.

◆ luaS_clearcache()

void luaS_clearcache ( global_State g)

Definition at line 110 of file lstring.c.

◆ luaS_createlngstrobj()

TString* luaS_createlngstrobj ( lua_State L,
size_t  l 
)

Definition at line 157 of file lstring.c.

◆ luaS_eqlngstr()

int luaS_eqlngstr ( TString a,
TString b 
)

Definition at line 34 of file lstring.c.

◆ luaS_hash()

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

Definition at line 43 of file lstring.c.

◆ luaS_hashlongstr()

unsigned int luaS_hashlongstr ( TString ts)

Definition at line 51 of file lstring.c.

◆ luaS_init()

void luaS_init ( lua_State L)

Definition at line 123 of file lstring.c.

◆ luaS_new()

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

Definition at line 241 of file lstring.c.

◆ luaS_newlstr()

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

Definition at line 221 of file lstring.c.

◆ luaS_newudata()

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

Definition at line 258 of file lstring.c.

◆ luaS_remove()

void luaS_remove ( lua_State L,
TString ts 
)

Definition at line 164 of file lstring.c.

◆ luaS_resize()

void luaS_resize ( lua_State L,
int  nsize 
)

Definition at line 85 of file lstring.c.

◆ tablerehash()

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

Definition at line 62 of file lstring.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49