#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.
Classes | |
struct | str_Writer |
struct | MatchState |
struct | GMatchState |
struct | cD |
union | Ftypes |
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 union Ftypes | Ftypes |
typedef struct Header | Header |
typedef enum KOption | KOption |
Enumerations | |
enum | KOption { Kint, Kuint, Kfloat, 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 353 of file lstrlib.cpp.
Referenced by add_s(), get_onecapture(), match(), and push_onecapture().
#define CAP_UNFINISHED (-1) |
Definition at line 352 of file lstrlib.cpp.
Referenced by capture_to_close(), check_capture(), end_capture(), get_onecapture(), and match().
#define L_ESC '%' |
Definition at line 380 of file lstrlib.cpp.
Referenced by add_s(), classend(), match(), matchbracketclass(), singlematch(), and str_format().
#define L_FMTFLAGS "-+ #0" |
Definition at line 1091 of file lstrlib.cpp.
Referenced by scanformat().
#define lstrlib_c |
Definition at line 7 of file lstrlib.cpp.
#define LUA_LIB |
Definition at line 8 of file lstrlib.cpp.
#define LUA_MAXCAPTURES 32 |
Definition at line 35 of file lstrlib.cpp.
Referenced by start_capture().
#define LUAL_PACKPADBYTE 0x00 |
Definition at line 1329 of file lstrlib.cpp.
Referenced by str_pack().
#define MAX_FORMAT 32 |
Definition at line 1098 of file lstrlib.cpp.
Referenced by str_format().
#define MAX_ITEM 120 |
Definition at line 1086 of file lstrlib.cpp.
Referenced by addliteral(), quotefloat(), and str_format().
#define MAX_ITEMF (110 + l_floatatt(MAX_10_EXP)) |
Definition at line 1075 of file lstrlib.cpp.
Referenced by str_format().
#define MAX_SIZET ((size_t)(~(size_t)0)) |
Definition at line 47 of file lstrlib.cpp.
#define MAXALIGN (offsetof(struct cD, u)) |
Definition at line 1358 of file lstrlib.cpp.
Referenced by getoption().
#define MAXCCALLS 200 |
Definition at line 376 of file lstrlib.cpp.
Referenced by prepstate(), and reprepstate().
#define MAXINTSIZE 16 |
Definition at line 1333 of file lstrlib.cpp.
Referenced by getnumlimit().
#define MAXSIZE (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX)) |
Definition at line 49 of file lstrlib.cpp.
Referenced by getnum(), str_packsize(), and str_rep().
#define MC ((1 << NB) - 1) |
Definition at line 1339 of file lstrlib.cpp.
Referenced by packint(), and unpackint().
#define NB CHAR_BIT |
Definition at line 1336 of file lstrlib.cpp.
Referenced by packint(), str_pack(), and unpackint().
#define SPECIALS "^$*+?.([%-" |
Definition at line 381 of file lstrlib.cpp.
Referenced by nospecials().
#define SZINT ((int)sizeof(lua_Integer)) |
Definition at line 1342 of file lstrlib.cpp.
Referenced by packint(), str_pack(), and unpackint().
Definition at line 40 of file lstrlib.cpp.
Referenced by add_s(), addquoted(), utf8::lowercase(), match(), matchbracketclass(), scanformat(), singlematch(), str_byte(), str_char(), str_gsub(), str_lower(), and str_upper().
typedef struct GMatchState GMatchState |
typedef struct MatchState MatchState |
enum KOption |
Enumerator | |
---|---|
Kint | |
Kuint | |
Kfloat | |
Kchar | |
Kstring | |
Kzstr | |
Kpadding | |
Kpaddalign | |
Knop |
Definition at line 1384 of file lstrlib.cpp.
|
static |
Definition at line 868 of file lstrlib.cpp.
References CAP_POSITION, get_onecapture(), MatchState::L, L_ESC, lua_tolstring(), luaL_addchar, luaL_addlstring(), luaL_addvalue(), luaL_error(), p, and uchar.
Referenced by add_value().
|
static |
Definition at line 903 of file lstrlib.cpp.
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, n, push_captures(), and push_onecapture().
Referenced by str_gsub().
|
static |
Definition at line 1214 of file lstrlib.cpp.
Referenced by str_format().
|
static |
Definition at line 1154 of file lstrlib.cpp.
References addquoted(), 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, n, quotefloat(), and s.
Referenced by str_format().
|
static |
Definition at line 1101 of file lstrlib.cpp.
References l_sprintf, luaL_addchar, luaL_addstring(), and uchar.
Referenced by addliteral().
|
static |
Definition at line 286 of file lstrlib.cpp.
References lua_arith(), tonum(), and trymt().
Referenced by arith_add(), arith_div(), arith_idiv(), arith_mod(), arith_mul(), arith_pow(), arith_sub(), and arith_unm().
|
static |
Definition at line 295 of file lstrlib.cpp.
|
static |
Definition at line 315 of file lstrlib.cpp.
|
static |
Definition at line 319 of file lstrlib.cpp.
References arith(), and LUA_OPIDIV.
|
static |
Definition at line 307 of file lstrlib.cpp.
|
static |
Definition at line 303 of file lstrlib.cpp.
|
static |
Definition at line 311 of file lstrlib.cpp.
|
static |
Definition at line 299 of file lstrlib.cpp.
|
static |
Definition at line 323 of file lstrlib.cpp.
|
static |
Definition at line 392 of file lstrlib.cpp.
References CAP_UNFINISHED, MatchState::capture, MatchState::L, MatchState::len, game_config::images::level, MatchState::level, and luaL_error().
Referenced by end_capture().
|
static |
Definition at line 384 of file lstrlib.cpp.
References CAP_UNFINISHED, MatchState::capture, MatchState::L, MatchState::len, MatchState::level, and luaL_error().
Referenced by match_capture().
|
static |
Definition at line 400 of file lstrlib.cpp.
References MatchState::L, L_ESC, luaL_error(), p, and MatchState::p_end.
Referenced by match().
|
static |
Definition at line 1537 of file lstrlib.cpp.
References nativeendian.
Referenced by str_pack(), and str_unpack().
|
static |
Definition at line 1780 of file lstrlib.cpp.
References lua_pop, lua_pushliteral, lua_pushvalue(), lua_setfield(), lua_setmetatable(), luaL_newlibtable, and luaL_setfuncs().
Referenced by luaopen_string().
|
static |
Definition at line 1401 of file lstrlib.cpp.
Referenced by b_str2int(), and getnum().
|
static |
Definition at line 545 of file lstrlib.cpp.
References CAP_UNFINISHED, MatchState::capture, capture_to_close(), MatchState::init, MatchState::len, and match().
Referenced by match().
|
static |
Definition at line 699 of file lstrlib.cpp.
References CAP_POSITION, CAP_UNFINISHED, MatchState::capture, i, 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 1489 of file lstrlib.cpp.
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 lstrlib.cpp.
References luaL_optinteger().
Referenced by str_byte(), and str_sub().
|
static |
Definition at line 1403 of file lstrlib.cpp.
References a, digit(), and MAXSIZE.
Referenced by getnumlimit(), and getoption().
|
static |
Definition at line 1420 of file lstrlib.cpp.
References getnum(), Header::L, luaL_error(), and MAXINTSIZE.
Referenced by getoption().
Definition at line 1442 of file lstrlib.cpp.
References getnum(), getnumlimit(), Header::islittle, Kchar, Kfloat, Kint, Knop, Kpaddalign, Kpadding, Kstring, Kuint, Kzstr, Header::L, luaL_error(), MAXALIGN, Header::maxalign, and nativeendian.
Referenced by getdetails().
|
static |
Definition at line 851 of file lstrlib.cpp.
References gmatch_aux(), str_Writer::init, GMatchState::lastmatch, lua_newuserdatauv(), lua_pushcclosure(), lua_settop(), luaL_checklstring(), luaL_optinteger(), GMatchState::ms, p, GMatchState::p, posrelatI(), prepstate(), s, and GMatchState::src.
|
static |
Definition at line 835 of file lstrlib.cpp.
References e, MatchState::L, GMatchState::lastmatch, lua_touserdata(), lua_upvalueindex, match(), GMatchState::ms, GMatchState::p, push_captures(), reprepstate(), and GMatchState::src.
Referenced by gmatch().
Definition at line 1432 of file lstrlib.cpp.
References Header::islittle, Header::L, Header::maxalign, and nativeendian.
Referenced by str_pack(), str_packsize(), and str_unpack().
|
static |
Definition at line 670 of file lstrlib.cpp.
References str_Writer::init.
Referenced by str_find_aux().
LUAMOD_API int luaopen_string | ( | lua_State * | L | ) |
Definition at line 1797 of file lstrlib.cpp.
References createmetatable(), and luaL_newlib.
Referenced by lua_kernel_base::lua_kernel_base().
|
static |
Definition at line 567 of file lstrlib.cpp.
References CAP_POSITION, CAP_UNFINISHED, classend(), end_capture(), str_Writer::init, MatchState::L, L_ESC, luaL_error(), match_capture(), matchbalance(), matchbracketclass(), MatchState::matchdepth, max_expand(), min_expand(), MatchState::p_end, s, singlematch(), MatchState::src_end, MatchState::src_init, start_capture(), and uchar.
Referenced by test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE(), terrain_builder::build_terrains(), end_capture(), gmatch_aux(), game_lua_kernel::intf_find_cost_map(), schema_validation::wml_type_list::matches(), max_expand(), min_expand(), terrain_filter::operator()(), utils::signed_percent(), start_capture(), str_find_aux(), and str_gsub().
|
static |
Definition at line 556 of file lstrlib.cpp.
References MatchState::capture, check_capture(), MatchState::init, MatchState::len, and MatchState::src_end.
Referenced by match().
|
static |
Definition at line 424 of file lstrlib.cpp.
Referenced by matchbracketclass(), and singlematch().
|
static |
Definition at line 483 of file lstrlib.cpp.
References b, e, MatchState::L, luaL_error(), p, and MatchState::p_end.
Referenced by match().
|
static |
Definition at line 444 of file lstrlib.cpp.
References L_ESC, match_class(), and uchar.
Referenced by match(), and singlematch().
|
static |
Definition at line 503 of file lstrlib.cpp.
References i, match(), and singlematch().
Referenced by match().
|
static |
Definition at line 518 of file lstrlib.cpp.
References match(), and singlematch().
Referenced by match().
|
static |
|
static |
Definition at line 1516 of file lstrlib.cpp.
References i, luaL_addsize, luaL_prepbuffsize(), MC, NB, utf8::size(), and SZINT.
Referenced by str_pack().
|
static |
Definition at line 71 of file lstrlib.cpp.
Referenced by gmatch(), str_byte(), str_find_aux(), str_sub(), and str_unpack().
|
static |
Definition at line 754 of file lstrlib.cpp.
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 732 of file lstrlib.cpp.
References i, MatchState::L, MatchState::level, luaL_checkstack(), push_onecapture(), and s.
Referenced by add_value(), gmatch_aux(), and str_find_aux().
|
static |
Definition at line 722 of file lstrlib.cpp.
References CAP_POSITION, get_onecapture(), MatchState::L, and lua_pushlstring().
Referenced by add_value(), and push_captures().
|
static |
Definition at line 1130 of file lstrlib.cpp.
References l_sprintf, lua_getlocaledecpoint, lua_number2strx, LUA_NUMBER_FRMLEN, MAX_ITEM, and s.
Referenced by addliteral().
|
static |
Definition at line 764 of file lstrlib.cpp.
References MatchState::level, lua_assert, MatchState::matchdepth, and MAXCCALLS.
Referenced by gmatch_aux(), str_find_aux(), and str_gsub().
|
static |
Definition at line 1189 of file lstrlib.cpp.
References L_FMTFLAGS, luaL_error(), p, and uchar.
Referenced by str_format().
|
static |
Definition at line 467 of file lstrlib.cpp.
References c, L_ESC, match_class(), matchbracketclass(), MatchState::src_end, and uchar.
Referenced by match(), max_expand(), and min_expand().
|
static |
Definition at line 531 of file lstrlib.cpp.
References MatchState::capture, MatchState::init, MatchState::L, MatchState::len, game_config::images::level, MatchState::level, LUA_MAXCAPTURES, luaL_error(), match(), and s.
Referenced by match().
|
static |
Definition at line 176 of file lstrlib.cpp.
References getendpos(), i, lua_pushinteger(), luaL_checklstring(), luaL_checkstack(), luaL_error(), luaL_optinteger(), n, posrelatI(), s, and uchar.
|
static |
Definition at line 194 of file lstrlib.cpp.
References b, c, i, lua_gettop(), luaL_argcheck, luaL_buffinitsize(), luaL_checkinteger(), luaL_pushresultsize(), n, p, and uchar.
|
static |
Definition at line 232 of file lstrlib.cpp.
References str_Writer::B, str_Writer::init, lua_dump(), lua_settop(), LUA_TFUNCTION, lua_toboolean(), luaL_checktype(), luaL_error(), luaL_pushresult(), stringmetamethods, and writer().
|
static |
Definition at line 816 of file lstrlib.cpp.
References str_find_aux().
|
static |
Definition at line 770 of file lstrlib.cpp.
References str_Writer::init, lmemfind(), lua_pushinteger(), lua_toboolean(), luaL_checklstring(), luaL_optinteger(), luaL_pushfail, match(), nospecials(), p, posrelatI(), prepstate(), push_captures(), reprepstate(), s, and MatchState::src_end.
Referenced by str_find(), and str_match().
|
static |
Definition at line 1224 of file lstrlib.cpp.
References addlenmod(), addliteral(), b, 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, n, p, s, and scanformat().
|
static |
Definition at line 939 of file lstrlib.cpp.
References add_value(), b, d, e, i, l_mathop, l_sprintf, lua_assert, lua_getlocaledecpoint, lua_number2strx, LUA_NUMBER_FMT, lua_pushinteger(), lua_pushvalue(), LUA_TFUNCTION, LUA_TNUMBER, LUA_TSTRING, LUA_TTABLE, lua_type(), LUAI_UACNUMBER, luaL_addchar, luaL_addlstring(), luaL_argexpected, luaL_buffinit(), luaL_checklstring(), luaL_error(), luaL_optinteger(), luaL_pushresult(), match(), n, p, prepstate(), reprepstate(), MatchState::src_end, and uchar.
|
static |
Definition at line 55 of file lstrlib.cpp.
References lua_pushinteger(), and luaL_checklstring().
|
static |
Definition at line 124 of file lstrlib.cpp.
References b, i, luaL_buffinitsize(), luaL_checklstring(), luaL_pushresultsize(), p, s, and uchar.
|
static |
Definition at line 821 of file lstrlib.cpp.
References str_find_aux().
|
static |
Definition at line 1549 of file lstrlib.cpp.
References b, copywithendian(), Ftypes::d, Ftypes::f, getdetails(), h, initheader(), Header::islittle, Kchar, Kfloat, Kint, Knop, 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(), n, Ftypes::n, NB, packint(), s, utf8::size(), and SZINT.
|
static |
Definition at line 1636 of file lstrlib.cpp.
References getdetails(), h, initheader(), Kstring, Kzstr, lua_pushinteger(), luaL_argcheck, luaL_checkstring, MAXSIZE, and utf8::size().
|
static |
Definition at line 150 of file lstrlib.cpp.
References b, lua_pushliteral, luaL_buffinitsize(), luaL_checkinteger(), luaL_checklstring(), luaL_error(), luaL_optlstring(), luaL_pushresultsize(), MAXSIZE, n, p, and s.
|
static |
Definition at line 112 of file lstrlib.cpp.
References b, i, luaL_buffinitsize(), luaL_checklstring(), luaL_pushresultsize(), p, and s.
|
static |
Definition at line 100 of file lstrlib.cpp.
References getendpos(), lua_pushliteral, lua_pushlstring(), luaL_checkinteger(), luaL_checklstring(), posrelatI(), s, and editor::start().
|
static |
Definition at line 1690 of file lstrlib.cpp.
References copywithendian(), getdetails(), h, initheader(), Header::islittle, Kchar, Kfloat, Kint, Knop, Kpaddalign, Kpadding, Kstring, Kuint, Kzstr, lua_pushinteger(), lua_pushlstring(), lua_pushnumber(), luaL_argcheck, luaL_checklstring(), luaL_checkstack(), luaL_checkstring, luaL_optinteger(), n, posrelatI(), utf8::size(), and unpackint().
|
static |
Definition at line 137 of file lstrlib.cpp.
References b, i, luaL_buffinitsize(), luaL_checklstring(), luaL_pushresultsize(), p, s, and uchar.
|
static |
Definition at line 263 of file lstrlib.cpp.
References lua_pushvalue(), lua_stringtonumber(), LUA_TNUMBER, lua_tolstring(), lua_type(), and s.
Referenced by arith().
|
static |
Definition at line 276 of file lstrlib.cpp.
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 1664 of file lstrlib.cpp.
References i, luaL_error(), MC, NB, utf8::size(), and SZINT.
Referenced by str_unpack().
|
static |
Definition at line 221 of file lstrlib.cpp.
References str_Writer::B, str_Writer::init, luaL_addlstring(), and luaL_buffinit().
Referenced by handle_preprocess_command(), campaignd::server::handle_upload(), campaignd::server::load_config(), persist_file_context::save_context(), str_dump(), wesnothd::ban_manager::write(), and game_config::config_cache::write_file().
int dummy |
Definition at line 1347 of file lstrlib.cpp.
Referenced by image::locator::access_in_cache(), pathfind::full_cost_map::add_unit(), attack_unit(), BOOST_AUTO_TEST_CASE(), editor::editor_controller::can_execute_command(), config::child_range(), addons_client::delete_remote_addon(), find_widget_impl(), filesystem::get_binary_paths(), config::get_diff(), image::locator::locate_in_cache(), luaK_infix(), ai::readonly_context_impl::nearest_keep(), savegame::save_index_class::rebuild(), gui2::size_lock_definition::resolution::resolution(), gui2::drawing_definition::resolution::resolution(), gui2::stacked_widget_definition::resolution::resolution(), gui2::addon_list_definition::resolution::resolution(), game_lua_kernel::run_event(), game_lua_kernel::run_wml_action(), translation::strftime(), t_translation::string_to_number_(), replay::undo(), schema_validation::schema_self_validator::validate(), and youngcollection().
char little |
Definition at line 1348 of file lstrlib.cpp.
const { ... } nativeendian |
Referenced by copywithendian(), getoption(), and initheader().
|
static |
Definition at line 328 of file lstrlib.cpp.
Referenced by str_dump().
|
static |
Definition at line 1758 of file lstrlib.cpp.