Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
Macros | |
#define | lutf8lib_c |
#define | LUA_LIB |
#define | MAXUNICODE 0x10FFFF |
#define | iscont(p) ((*(p) & 0xC0) == 0x80) |
#define | UTF8PATT "[\0-\x7F\xC2-\xF4][\x80-\xBF]*" |
Functions | |
static lua_Integer | u_posrelat (lua_Integer pos, size_t len) |
static const char * | utf8_decode (const char *o, int *val) |
static int | utflen (lua_State *L) |
static int | codepoint (lua_State *L) |
static void | pushutfchar (lua_State *L, int arg) |
static int | utfchar (lua_State *L) |
static int | byteoffset (lua_State *L) |
static int | iter_aux (lua_State *L) |
static int | iter_codes (lua_State *L) |
LUAMOD_API int | luaopen_utf8 (lua_State *L) |
Variables | |
static const luaL_Reg | funcs [] |
#define iscont | ( | p | ) | ((*(p) & 0xC0) == 0x80) |
Definition at line 25 of file lua-5.3.6/src/lutf8lib.c.
Referenced by byteoffset(), and iter_aux().
#define LUA_LIB |
Definition at line 8 of file lua-5.3.6/src/lutf8lib.c.
#define lutf8lib_c |
Definition at line 7 of file lua-5.3.6/src/lutf8lib.c.
#define MAXUNICODE 0x10FFFF |
Definition at line 23 of file lua-5.3.6/src/lutf8lib.c.
Referenced by pushutfchar(), and utf8_decode().
#define UTF8PATT "[\0-\x7F\xC2-\xF4][\x80-\xBF]*" |
Definition at line 235 of file lua-5.3.6/src/lutf8lib.c.
Referenced by luaopen_utf8().
|
static |
Definition at line 160 of file lua-5.3.6/src/lutf8lib.c.
References iscont, lua_pushinteger(), lua_pushnil(), luaL_argcheck, luaL_checkinteger(), luaL_checklstring(), luaL_error(), luaL_optinteger(), s, and u_posrelat().
|
static |
Definition at line 100 of file lua-5.3.6/src/lutf8lib.c.
References lua_pushinteger(), luaL_argcheck, luaL_checklstring(), luaL_checkstack(), luaL_error(), luaL_optinteger(), NULL, s, u_posrelat(), and utf8_decode().
|
static |
Definition at line 201 of file lua-5.3.6/src/lutf8lib.c.
References iscont, lua_pushinteger(), lua_tointeger, luaL_checklstring(), luaL_error(), next, NULL, s, and utf8_decode().
Referenced by iter_codes().
|
static |
Definition at line 225 of file lua-5.3.6/src/lutf8lib.c.
References iter_aux(), lua_pushcfunction, lua_pushinteger(), lua_pushvalue(), and luaL_checkstring.
LUAMOD_API int luaopen_utf8 | ( | lua_State * | L | ) |
Definition at line 250 of file lua-5.3.6/src/lutf8lib.c.
|
static |
Definition at line 128 of file lua-5.3.6/src/lutf8lib.c.
References arg, lua_pushfstring(), luaL_argcheck, luaL_checkinteger(), and MAXUNICODE.
Referenced by utfchar().
|
static |
Definition at line 30 of file lua-5.3.6/src/lutf8lib.c.
Referenced by byteoffset(), codepoint(), and utflen().
|
static |
Definition at line 40 of file lua-5.3.6/src/lutf8lib.c.
References MAXUNICODE, NULL, and s.
Referenced by codepoint(), iter_aux(), and utflen().
|
static |
Definition at line 138 of file lua-5.3.6/src/lutf8lib.c.
References lua_gettop(), luaL_addvalue(), luaL_buffinit(), luaL_pushresult(), and pushutfchar().
|
static |
Definition at line 71 of file lua-5.3.6/src/lutf8lib.c.
References lua_pushinteger(), lua_pushnil(), luaL_argcheck, luaL_checklstring(), luaL_optinteger(), NULL, s, u_posrelat(), and utf8_decode().
|
static |
Definition at line 238 of file lua-5.3.6/src/lutf8lib.c.
Referenced by duk__inc_data_inner_refcounts(), duk__refcount_finalize_hobject(), duk_put_function_list(), duk_put_number_list(), luaopen_LuaXML_lib(), and luaopen_utf8().