Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <ctype.h>
#include <float.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
Data Structures | |
struct | str_Writer |
struct | MatchState |
struct | GMatchState |
struct | cD |
struct | Header |
Macros | |
#define | lstrlib_c |
#define | LUA_LIB |
#define | LUA_MAXCAPTURES 32 |
#define | uchar(c) ((unsigned char)(c)) |
#define | MAX_SIZET ((size_t)(~(size_t)0)) |
#define | MAXSIZE (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX)) |
#define | CAP_UNFINISHED (-1) |
#define | CAP_POSITION (-2) |
#define | MAXCCALLS 200 |
#define | L_ESC '%' |
#define | SPECIALS "^$*+?.([%-" |
#define | MAX_ITEMF (110 + l_floatatt(MAX_10_EXP)) |
#define | MAX_ITEM 120 |
#define | L_FMTFLAGS "-+ #0" |
#define | MAX_FORMAT 32 |
#define | LUAL_PACKPADBYTE 0x00 |
#define | MAXINTSIZE 16 |
#define | NB CHAR_BIT |
#define | MC ((1 << NB) - 1) |
#define | SZINT ((int)sizeof(lua_Integer)) |
#define | MAXALIGN (offsetof(struct cD, u)) |
Typedefs | |
typedef struct MatchState | MatchState |
typedef struct GMatchState | GMatchState |
typedef struct Header | Header |
typedef enum KOption | KOption |
Enumerations | |
enum | KOption { Kint , Kuint , Kfloat , Knumber , Kdouble , Kchar , Kstring , Kzstr , Kpadding , Kpaddalign , Knop } |
Functions | |
static int | str_len (lua_State *L) |
static size_t | posrelatI (lua_Integer pos, size_t len) |
static size_t | getendpos (lua_State *L, int arg, lua_Integer def, size_t len) |
static int | str_sub (lua_State *L) |
static int | str_reverse (lua_State *L) |
static int | str_lower (lua_State *L) |
static int | str_upper (lua_State *L) |
static int | str_rep (lua_State *L) |
static int | str_byte (lua_State *L) |
static int | str_char (lua_State *L) |
static int | writer (lua_State *L, const void *b, size_t size, void *ud) |
static int | str_dump (lua_State *L) |
static int | tonum (lua_State *L, int arg) |
static void | trymt (lua_State *L, const char *mtname) |
static int | arith (lua_State *L, int op, const char *mtname) |
static int | arith_add (lua_State *L) |
static int | arith_sub (lua_State *L) |
static int | arith_mul (lua_State *L) |
static int | arith_mod (lua_State *L) |
static int | arith_pow (lua_State *L) |
static int | arith_div (lua_State *L) |
static int | arith_idiv (lua_State *L) |
static int | arith_unm (lua_State *L) |
static const char * | match (MatchState *ms, const char *s, const char *p) |
static int | check_capture (MatchState *ms, int l) |
static int | capture_to_close (MatchState *ms) |
static const char * | classend (MatchState *ms, const char *p) |
static int | match_class (int c, int cl) |
static int | matchbracketclass (int c, const char *p, const char *ec) |
static int | singlematch (MatchState *ms, const char *s, const char *p, const char *ep) |
static const char * | matchbalance (MatchState *ms, const char *s, const char *p) |
static const char * | max_expand (MatchState *ms, const char *s, const char *p, const char *ep) |
static const char * | min_expand (MatchState *ms, const char *s, const char *p, const char *ep) |
static const char * | start_capture (MatchState *ms, const char *s, const char *p, int what) |
static const char * | end_capture (MatchState *ms, const char *s, const char *p) |
static const char * | match_capture (MatchState *ms, const char *s, int l) |
static const char * | lmemfind (const char *s1, size_t l1, const char *s2, size_t l2) |
static size_t | get_onecapture (MatchState *ms, int i, const char *s, const char *e, const char **cap) |
static void | push_onecapture (MatchState *ms, int i, const char *s, const char *e) |
static int | push_captures (MatchState *ms, const char *s, const char *e) |
static int | nospecials (const char *p, size_t l) |
static void | prepstate (MatchState *ms, lua_State *L, const char *s, size_t ls, const char *p, size_t lp) |
static void | reprepstate (MatchState *ms) |
static int | str_find_aux (lua_State *L, int find) |
static int | str_find (lua_State *L) |
static int | str_match (lua_State *L) |
static int | gmatch_aux (lua_State *L) |
static int | gmatch (lua_State *L) |
static void | add_s (MatchState *ms, luaL_Buffer *b, const char *s, const char *e) |
static int | add_value (MatchState *ms, luaL_Buffer *b, const char *s, const char *e, int tr) |
static int | str_gsub (lua_State *L) |
static void | addquoted (luaL_Buffer *b, const char *s, size_t len) |
static int | quotefloat (lua_State *L, char *buff, lua_Number n) |
static void | addliteral (lua_State *L, luaL_Buffer *b, int arg) |
static const char * | scanformat (lua_State *L, const char *strfrmt, char *form) |
static void | addlenmod (char *form, const char *lenmod) |
static int | str_format (lua_State *L) |
static int | digit (int c) |
static int | getnum (const char **fmt, int df) |
static int | getnumlimit (Header *h, const char **fmt, int df) |
static void | initheader (lua_State *L, Header *h) |
static KOption | getoption (Header *h, const char **fmt, int *size) |
static KOption | getdetails (Header *h, size_t totalsize, const char **fmt, int *psize, int *ntoalign) |
static void | packint (luaL_Buffer *b, lua_Unsigned n, int islittle, int size, int neg) |
static void | copywithendian (char *dest, const char *src, int size, int islittle) |
static int | str_pack (lua_State *L) |
static int | str_packsize (lua_State *L) |
static lua_Integer | unpackint (lua_State *L, const char *str, int islittle, int size, int issigned) |
static int | str_unpack (lua_State *L) |
static void | createmetatable (lua_State *L) |
LUAMOD_API int | luaopen_string (lua_State *L) |
Variables | ||
static const luaL_Reg | stringmetamethods [] | |
union { | ||
int dummy | ||
char little | ||
} | nativeendian = {1} | |
static const luaL_Reg | strlib [] | |
#define CAP_POSITION (-2) |
Definition at line 355 of file lua-5.4.3/src/lstrlib.c.
Referenced by add_s(), get_onecapture(), match(), and push_onecapture().
#define CAP_UNFINISHED (-1) |
Definition at line 354 of file lua-5.4.3/src/lstrlib.c.
Referenced by capture_to_close(), check_capture(), end_capture(), get_onecapture(), and match().
#define L_ESC '%' |
Definition at line 382 of file lua-5.4.3/src/lstrlib.c.
Referenced by add_s(), classend(), match(), matchbracketclass(), singlematch(), and str_format().
#define L_FMTFLAGS "-+ #0" |
Definition at line 1094 of file lua-5.4.3/src/lstrlib.c.
Referenced by scanformat().
#define lstrlib_c |
Definition at line 7 of file lua-5.4.3/src/lstrlib.c.
#define LUA_LIB |
Definition at line 8 of file lua-5.4.3/src/lstrlib.c.
#define LUA_MAXCAPTURES 32 |
Definition at line 35 of file lua-5.4.3/src/lstrlib.c.
Referenced by start_capture().
#define LUAL_PACKPADBYTE 0x00 |
Definition at line 1332 of file lua-5.4.3/src/lstrlib.c.
Referenced by str_pack().
#define MAX_FORMAT 32 |
Definition at line 1101 of file lua-5.4.3/src/lstrlib.c.
Referenced by str_format().
#define MAX_ITEM 120 |
Definition at line 1089 of file lua-5.4.3/src/lstrlib.c.
Referenced by addliteral(), quotefloat(), and str_format().
#define MAX_ITEMF (110 + l_floatatt(MAX_10_EXP)) |
Definition at line 1078 of file lua-5.4.3/src/lstrlib.c.
Referenced by str_format().
#define MAX_SIZET ((size_t)(~(size_t)0)) |
Definition at line 47 of file lua-5.4.3/src/lstrlib.c.
Definition at line 1361 of file lua-5.4.3/src/lstrlib.c.
Referenced by getoption().
#define MAXCCALLS 200 |
Definition at line 378 of file lua-5.4.3/src/lstrlib.c.
Referenced by prepstate(), and reprepstate().
#define MAXINTSIZE 16 |
Definition at line 1336 of file lua-5.4.3/src/lstrlib.c.
Referenced by getnumlimit().
#define MAXSIZE (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX)) |
Definition at line 49 of file lua-5.4.3/src/lstrlib.c.
Referenced by getnum(), str_packsize(), and str_rep().
#define MC ((1 << NB) - 1) |
Definition at line 1342 of file lua-5.4.3/src/lstrlib.c.
Referenced by packint(), and unpackint().
#define NB CHAR_BIT |
Definition at line 1339 of file lua-5.4.3/src/lstrlib.c.
Referenced by packint(), str_pack(), and unpackint().
#define SPECIALS "^$*+?.([%-" |
Definition at line 383 of file lua-5.4.3/src/lstrlib.c.
Referenced by nospecials().
#define SZINT ((int)sizeof(lua_Integer)) |
Definition at line 1345 of file lua-5.4.3/src/lstrlib.c.
Referenced by packint(), str_pack(), and unpackint().
#define uchar | ( | c | ) | ((unsigned char)(c)) |
Definition at line 40 of file lua-5.4.3/src/lstrlib.c.
Referenced by add_s(), addquoted(), match(), matchbracketclass(), scanformat(), singlematch(), str_byte(), str_char(), str_lower(), and str_upper().
typedef struct GMatchState GMatchState |
typedef struct Header Header |
typedef struct MatchState MatchState |
enum KOption |
Enumerator | |
---|---|
Kint | |
Kuint | |
Kfloat | |
Knumber | |
Kdouble | |
Kchar | |
Kstring | |
Kzstr | |
Kpadding | |
Kpaddalign | |
Knop |
Definition at line 1377 of file lua-5.4.3/src/lstrlib.c.
|
static |
Definition at line 871 of file lua-5.4.3/src/lstrlib.c.
References CAP_POSITION, get_onecapture(), MatchState::L, L_ESC, lua_tolstring(), luaL_addchar, luaL_addlstring(), luaL_addvalue(), luaL_error(), NULL, s, and uchar.
Referenced by add_value().
|
static |
Definition at line 906 of file lua-5.4.3/src/lstrlib.c.
References add_s(), MatchState::L, lua_call, lua_gettable(), lua_isstring(), lua_pop, lua_pushvalue(), LUA_TFUNCTION, lua_toboolean(), LUA_TTABLE, luaL_addlstring(), luaL_addvalue(), luaL_error(), luaL_typename, push_captures(), push_onecapture(), and s.
Referenced by str_gsub().
|
static |
Definition at line 1217 of file lua-5.4.3/src/lstrlib.c.
Referenced by str_format().
|
static |
Definition at line 1157 of file lua-5.4.3/src/lstrlib.c.
References addquoted(), arg, format(), l_sprintf, LUA_INTEGER_FMT, lua_isinteger(), LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, lua_tointeger, lua_tolstring(), lua_tonumber, LUA_TSTRING, lua_type(), LUAI_UACINT, luaL_addsize, luaL_addvalue(), luaL_argerror(), luaL_prepbuffsize(), luaL_tolstring(), MAX_ITEM, NULL, quotefloat(), and s.
Referenced by str_format().
|
static |
Definition at line 1104 of file lua-5.4.3/src/lstrlib.c.
References l_sprintf, luaL_addchar, luaL_addstring(), s, and uchar.
Referenced by addliteral().
|
static |
Definition at line 288 of file lua-5.4.3/src/lstrlib.c.
References lua_arith(), tonum(), and trymt().
Referenced by arith_add(), arith_div(), arith_idiv(), arith_mod(), arith_mul(), arith_pow(), arith_sub(), arith_unm(), and windowCodeRangeTest().
|
static |
Definition at line 297 of file lua-5.4.3/src/lstrlib.c.
|
static |
Definition at line 317 of file lua-5.4.3/src/lstrlib.c.
|
static |
Definition at line 321 of file lua-5.4.3/src/lstrlib.c.
References arith(), and LUA_OPIDIV.
|
static |
Definition at line 309 of file lua-5.4.3/src/lstrlib.c.
|
static |
Definition at line 305 of file lua-5.4.3/src/lstrlib.c.
|
static |
Definition at line 313 of file lua-5.4.3/src/lstrlib.c.
|
static |
Definition at line 301 of file lua-5.4.3/src/lstrlib.c.
|
static |
Definition at line 325 of file lua-5.4.3/src/lstrlib.c.
|
static |
Definition at line 395 of file lua-5.4.3/src/lstrlib.c.
References CAP_UNFINISHED, MatchState::capture, MatchState::L, MatchState::len, MatchState::level, and luaL_error().
Referenced by end_capture().
|
static |
Definition at line 386 of file lua-5.4.3/src/lstrlib.c.
References CAP_UNFINISHED, MatchState::capture, MatchState::L, MatchState::len, MatchState::level, and luaL_error().
Referenced by match_capture().
|
static |
Definition at line 403 of file lua-5.4.3/src/lstrlib.c.
References MatchState::L, L_ESC, luaL_error(), and MatchState::p_end.
Referenced by match().
|
static |
Definition at line 1532 of file lua-5.4.3/src/lstrlib.c.
References nativeendian.
Referenced by str_pack(), and str_unpack().
|
static |
Definition at line 1795 of file lua-5.4.3/src/lstrlib.c.
References lua_pop, lua_pushliteral, lua_pushvalue(), lua_setfield(), lua_setmetatable(), luaL_newlibtable, luaL_setfuncs(), and stringmetamethods.
Referenced by luaopen_string().
|
static |
Definition at line 1396 of file lua-5.4.3/src/lstrlib.c.
Referenced by getnum().
|
static |
Definition at line 548 of file lua-5.4.3/src/lstrlib.c.
References CAP_UNFINISHED, MatchState::capture, capture_to_close(), MatchState::init, MatchState::len, match(), NULL, and s.
Referenced by match().
|
static |
Definition at line 702 of file lua-5.4.3/src/lstrlib.c.
References CAP_POSITION, CAP_UNFINISHED, MatchState::capture, MatchState::init, MatchState::L, MatchState::len, MatchState::level, lua_pushinteger(), luaL_error(), s, and MatchState::src_init.
Referenced by add_s(), and push_onecapture().
|
static |
Definition at line 1484 of file lua-5.4.3/src/lstrlib.c.
References getoption(), Kchar, Kpaddalign, Header::L, luaL_argerror(), and Header::maxalign.
Referenced by str_pack(), str_packsize(), and str_unpack().
|
static |
Definition at line 87 of file lua-5.4.3/src/lstrlib.c.
References arg, and luaL_optinteger().
Referenced by str_byte(), and str_sub().
|
static |
Definition at line 1398 of file lua-5.4.3/src/lstrlib.c.
References digit(), and MAXSIZE.
Referenced by getnumlimit(), and getoption().
|
static |
Definition at line 1415 of file lua-5.4.3/src/lstrlib.c.
References getnum(), Header::L, luaL_error(), and MAXINTSIZE.
Referenced by getoption().
Definition at line 1437 of file lua-5.4.3/src/lstrlib.c.
References getnum(), getnumlimit(), Header::islittle, Kchar, Kdouble, Kfloat, Kint, Knop, Knumber, Kpaddalign, Kpadding, Kstring, Kuint, Kzstr, Header::L, luaL_error(), Header::maxalign, MAXALIGN, and nativeendian.
Referenced by getdetails().
|
static |
Definition at line 854 of file lua-5.4.3/src/lstrlib.c.
References gmatch_aux(), GMatchState::lastmatch, lua_newuserdatauv(), lua_pushcclosure(), lua_settop(), luaL_checklstring(), luaL_optinteger(), GMatchState::ms, NULL, GMatchState::p, posrelatI(), prepstate(), s, and GMatchState::src.
|
static |
Definition at line 838 of file lua-5.4.3/src/lstrlib.c.
References MatchState::L, GMatchState::lastmatch, lua_touserdata(), lua_upvalueindex, match(), GMatchState::ms, NULL, GMatchState::p, push_captures(), reprepstate(), GMatchState::src, and MatchState::src_end.
Referenced by gmatch().
Definition at line 1427 of file lua-5.4.3/src/lstrlib.c.
References Header::islittle, Header::L, Header::maxalign, and nativeendian.
Referenced by str_pack(), str_packsize(), and str_unpack().
|
static |
Definition at line 673 of file lua-5.4.3/src/lstrlib.c.
References NULL.
Referenced by str_find_aux().
LUAMOD_API int luaopen_string | ( | lua_State * | L | ) |
Definition at line 1812 of file lua-5.4.3/src/lstrlib.c.
References createmetatable(), luaL_newlib, and strlib.
|
static |
Definition at line 570 of file lua-5.4.3/src/lstrlib.c.
References CAP_POSITION, CAP_UNFINISHED, classend(), end_capture(), MatchState::L, L_ESC, luaL_error(), match(), match_capture(), matchbalance(), matchbracketclass(), MatchState::matchdepth, max_expand(), min_expand(), NULL, MatchState::p_end, s, singlematch(), MatchState::src_end, MatchState::src_init, start_capture(), and uchar.
Referenced by end_capture(), gmatch_aux(), match(), max_expand(), min_expand(), start_capture(), str_find_aux(), and str_gsub().
|
static |
Definition at line 559 of file lua-5.4.3/src/lstrlib.c.
References MatchState::capture, check_capture(), MatchState::init, MatchState::len, NULL, s, and MatchState::src_end.
Referenced by match().
|
static |
Definition at line 427 of file lua-5.4.3/src/lstrlib.c.
Referenced by matchbracketclass(), and singlematch().
|
static |
Definition at line 486 of file lua-5.4.3/src/lstrlib.c.
References MatchState::L, luaL_error(), NULL, MatchState::p_end, and s.
Referenced by match().
|
static |
Definition at line 447 of file lua-5.4.3/src/lstrlib.c.
References L_ESC, match_class(), and uchar.
Referenced by match(), and singlematch().
|
static |
Definition at line 506 of file lua-5.4.3/src/lstrlib.c.
References match(), NULL, s, and singlematch().
Referenced by match().
|
static |
Definition at line 521 of file lua-5.4.3/src/lstrlib.c.
References match(), NULL, s, and singlematch().
Referenced by match().
|
static |
Definition at line 746 of file lua-5.4.3/src/lstrlib.c.
References SPECIALS.
Referenced by str_find_aux().
|
static |
Definition at line 1511 of file lua-5.4.3/src/lstrlib.c.
References luaL_addsize, luaL_prepbuffsize(), MC, NB, and SZINT.
Referenced by str_pack().
|
static |
Definition at line 71 of file lua-5.4.3/src/lstrlib.c.
Referenced by gmatch(), str_byte(), str_find_aux(), str_sub(), and str_unpack().
|
static |
Definition at line 757 of file lua-5.4.3/src/lstrlib.c.
References MatchState::L, MatchState::matchdepth, MAXCCALLS, MatchState::p_end, s, MatchState::src_end, and MatchState::src_init.
Referenced by gmatch(), str_find_aux(), and str_gsub().
|
static |
Definition at line 735 of file lua-5.4.3/src/lstrlib.c.
References MatchState::L, MatchState::level, luaL_checkstack(), push_onecapture(), and s.
Referenced by add_value(), gmatch_aux(), and str_find_aux().
|
static |
Definition at line 725 of file lua-5.4.3/src/lstrlib.c.
References CAP_POSITION, get_onecapture(), MatchState::L, lua_pushlstring(), and s.
Referenced by add_value(), and push_captures().
|
static |
Definition at line 1133 of file lua-5.4.3/src/lstrlib.c.
References l_sprintf, lua_getlocaledecpoint, lua_number2strx, LUA_NUMBER_FRMLEN, MAX_ITEM, NULL, and s.
Referenced by addliteral().
|
static |
Definition at line 767 of file lua-5.4.3/src/lstrlib.c.
References MatchState::level, lua_assert, MatchState::matchdepth, and MAXCCALLS.
Referenced by gmatch_aux(), str_find_aux(), and str_gsub().
|
static |
Definition at line 1192 of file lua-5.4.3/src/lstrlib.c.
References L_FMTFLAGS, luaL_error(), NULL, and uchar.
Referenced by str_format().
|
static |
Definition at line 470 of file lua-5.4.3/src/lstrlib.c.
References L_ESC, match_class(), matchbracketclass(), s, MatchState::src_end, and uchar.
Referenced by match(), max_expand(), and min_expand().
|
static |
Definition at line 534 of file lua-5.4.3/src/lstrlib.c.
References MatchState::capture, MatchState::init, MatchState::L, MatchState::len, MatchState::level, LUA_MAXCAPTURES, luaL_error(), match(), NULL, and s.
Referenced by match().
|
static |
Definition at line 177 of file lua-5.4.3/src/lstrlib.c.
References getendpos(), lua_pushinteger(), luaL_checklstring(), luaL_checkstack(), luaL_error(), luaL_optinteger(), posrelatI(), s, and uchar.
|
static |
Definition at line 195 of file lua-5.4.3/src/lstrlib.c.
References lua_gettop(), luaL_argcheck, luaL_buffinitsize(), luaL_checkinteger(), luaL_pushresultsize(), and uchar.
|
static |
Definition at line 233 of file lua-5.4.3/src/lstrlib.c.
References str_Writer::B, str_Writer::init, lua_dump(), lua_settop(), LUA_TFUNCTION, lua_toboolean(), luaL_checktype(), luaL_error(), luaL_pushresult(), and writer().
|
static |
|
static |
Definition at line 773 of file lua-5.4.3/src/lstrlib.c.
References find(), lmemfind(), lua_pushinteger(), lua_toboolean(), luaL_checklstring(), luaL_optinteger(), luaL_pushfail, match(), nospecials(), NULL, posrelatI(), prepstate(), push_captures(), reprepstate(), s, and MatchState::src_end.
Referenced by str_find(), and str_match().
|
static |
Definition at line 1227 of file lua-5.4.3/src/lstrlib.c.
References addlenmod(), addliteral(), arg, L_ESC, l_sprintf, lua_assert, lua_gettop(), lua_number2strx, LUA_NUMBER_FRMLEN, lua_pop, lua_topointer(), LUAI_UACINT, LUAI_UACNUMBER, luaL_addchar, luaL_addsize, luaL_addvalue(), luaL_argcheck, luaL_argerror(), luaL_buffinit(), luaL_checkinteger(), luaL_checklstring(), luaL_checknumber(), luaL_error(), luaL_prepbuffsize(), luaL_pushresult(), luaL_tolstring(), MAX_FORMAT, MAX_ITEM, MAX_ITEMF, NULL, s, and scanformat().
|
static |
Definition at line 942 of file lua-5.4.3/src/lstrlib.c.
References add_value(), lua_pushinteger(), lua_pushvalue(), LUA_TFUNCTION, LUA_TNUMBER, LUA_TSTRING, LUA_TTABLE, lua_type(), luaL_addchar, luaL_addlstring(), luaL_argexpected, luaL_buffinit(), luaL_checklstring(), luaL_optinteger(), luaL_pushresult(), match(), NULL, prepstate(), reprepstate(), and MatchState::src_end.
|
static |
Definition at line 55 of file lua-5.4.3/src/lstrlib.c.
References lua_pushinteger(), and luaL_checklstring().
|
static |
Definition at line 124 of file lua-5.4.3/src/lstrlib.c.
References luaL_buffinitsize(), luaL_checklstring(), luaL_pushresultsize(), s, and uchar.
|
static |
Definition at line 824 of file lua-5.4.3/src/lstrlib.c.
References str_find_aux().
|
static |
Definition at line 1544 of file lua-5.4.3/src/lstrlib.c.
References arg, copywithendian(), getdetails(), initheader(), Header::islittle, Kchar, Kdouble, Kfloat, Kint, Knop, Knumber, Kpaddalign, Kpadding, Kstring, Kuint, Kzstr, lua_pushnil(), luaL_addchar, luaL_addlstring(), luaL_addsize, luaL_argcheck, luaL_buffinit(), luaL_checkinteger(), luaL_checklstring(), luaL_checknumber(), luaL_checkstring, LUAL_PACKPADBYTE, luaL_prepbuffsize(), luaL_pushresult(), NB, packint(), s, and SZINT.
|
static |
Definition at line 1643 of file lua-5.4.3/src/lstrlib.c.
References getdetails(), initheader(), Kstring, Kzstr, lua_pushinteger(), luaL_argcheck, luaL_checkstring, and MAXSIZE.
|
static |
Definition at line 150 of file lua-5.4.3/src/lstrlib.c.
References lua_pushliteral, luaL_buffinitsize(), luaL_checkinteger(), luaL_checklstring(), luaL_error(), luaL_optlstring(), luaL_pushresultsize(), MAXSIZE, and s.
|
static |
Definition at line 112 of file lua-5.4.3/src/lstrlib.c.
References luaL_buffinitsize(), luaL_checklstring(), luaL_pushresultsize(), and s.
|
static |
Definition at line 100 of file lua-5.4.3/src/lstrlib.c.
References getendpos(), lua_pushliteral, lua_pushlstring(), luaL_checkinteger(), luaL_checklstring(), posrelatI(), and s.
|
static |
Definition at line 1697 of file lua-5.4.3/src/lstrlib.c.
References copywithendian(), getdetails(), initheader(), Header::islittle, Kchar, Kdouble, Kfloat, Kint, Knop, Knumber, Kpaddalign, Kpadding, Kstring, Kuint, Kzstr, lua_pushinteger(), lua_pushlstring(), lua_pushnumber(), luaL_argcheck, luaL_checklstring(), luaL_checkstack(), luaL_checkstring, luaL_optinteger(), posrelatI(), and unpackint().
|
static |
Definition at line 137 of file lua-5.4.3/src/lstrlib.c.
References luaL_buffinitsize(), luaL_checklstring(), luaL_pushresultsize(), s, and uchar.
|
static |
Definition at line 264 of file lua-5.4.3/src/lstrlib.c.
References arg, lua_pushvalue(), lua_stringtonumber(), LUA_TNUMBER, lua_tolstring(), lua_type(), NULL, and s.
Referenced by arith().
|
static |
Definition at line 277 of file lua-5.4.3/src/lstrlib.c.
References lua_call, lua_insert, lua_settop(), LUA_TSTRING, lua_type(), luaL_error(), luaL_getmetafield(), and luaL_typename.
Referenced by arith().
|
static |
Definition at line 1671 of file lua-5.4.3/src/lstrlib.c.
References luaL_error(), mask, MC, NB, and SZINT.
Referenced by str_unpack().
|
static |
Definition at line 222 of file lua-5.4.3/src/lstrlib.c.
References str_Writer::B, str_Writer::init, luaL_addlstring(), and luaL_buffinit().
Referenced by str_dump().
int dummy |
Definition at line 1350 of file lua-5.4.3/src/lstrlib.c.
char little |
Definition at line 1351 of file lua-5.4.3/src/lstrlib.c.
const union { ... } nativeendian |
Referenced by copywithendian(), getoption(), and initheader().
|
static |
Definition at line 330 of file lua-5.4.3/src/lstrlib.c.
Referenced by createmetatable().
|
static |
Definition at line 1773 of file lua-5.4.3/src/lstrlib.c.
Referenced by luaopen_string().