native Lua  0.4.0
Lua on the platform you use with the compiler you choose
Data Structures | Macros | Typedefs | Enumerations | Functions
lstrlib.c File Reference
#include "lprefix.h"
#include <ctype.h>
#include <float.h>
#include <limits.h>
#include <locale.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Include dependency graph for lstrlib.c:

Data Structures

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_ITEM   (120 + l_mathlim(MAX_10_EXP))
 
#define FLAGS   "-+ #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

LUAMOD_API int luaopen_string (lua_State *L)
 

Macro Definition Documentation

◆ CAP_POSITION

#define CAP_POSITION   (-2)

◆ CAP_UNFINISHED

#define CAP_UNFINISHED   (-1)

◆ FLAGS

#define FLAGS   "-+ #0"

◆ L_ESC

#define L_ESC   '%'

◆ lstrlib_c

#define lstrlib_c

◆ LUA_LIB

#define LUA_LIB

◆ LUA_MAXCAPTURES

#define LUA_MAXCAPTURES   32

◆ LUAL_PACKPADBYTE

#define LUAL_PACKPADBYTE   0x00

◆ MAX_FORMAT

#define MAX_FORMAT   32

◆ MAX_ITEM

#define MAX_ITEM   (120 + l_mathlim(MAX_10_EXP))

◆ MAX_SIZET

#define MAX_SIZET   ((size_t)(~(size_t)0))

◆ MAXALIGN

#define MAXALIGN   (offsetof(struct cD, u))

◆ MAXCCALLS

#define MAXCCALLS   200

◆ MAXINTSIZE

#define MAXINTSIZE   16

◆ MAXSIZE

#define MAXSIZE    (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX))

◆ MC

#define MC   ((1 << NB) - 1)

◆ NB

#define NB   CHAR_BIT

◆ SPECIALS

#define SPECIALS   "^$*+?.([%-"

◆ SZINT

#define SZINT   ((int)sizeof(lua_Integer))

◆ uchar

#define uchar (   c)    ((unsigned char)(c))

Typedef Documentation

◆ Ftypes

typedef union Ftypes Ftypes

◆ GMatchState

typedef struct GMatchState GMatchState

◆ Header

typedef struct Header Header

◆ KOption

typedef enum KOption KOption

◆ MatchState

typedef struct MatchState MatchState

Enumeration Type Documentation

◆ KOption

enum KOption
Enumerator
Kint 
Kuint 
Kfloat 
Kchar 
Kstring 
Kzstr 
Kpadding 
Kpaddalign 
Knop 

Function Documentation

◆ luaopen_string()

LUAMOD_API int luaopen_string ( lua_State L)

Variable Documentation

◆ dummy

int dummy

◆ little

char little