LMMS
Loading...
Searching...
No Matches
eel_strings.h File Reference
#include "ns-eel-int.h"
#include "../wdlcstring.h"
#include "../wdlstring.h"

Go to the source code of this file.

Classes

class  eel_string_context_state

Macros

#define EEL_STRING_MAX_USER_STRINGS   1024
#define EEL_STRING_LITERAL_BASE   10000
#define EEL_STRING_NAMED_BASE   90000
#define EEL_STRING_UNNAMED_BASE   190000
#define EEL_STRING_MUTEXLOCK_SCOPE
#define EEL_STRING_GET_FOR_INDEX(x, wr)
#define EEL_STRING_GET_FOR_WRITE(x, wr)
#define EEL_STRING_GETFMTVAR(x)
#define EEL_STRING_GETNAMEDVAR(x, createOK, altOut)
#define EEL_STRING_STORAGECLASS   WDL_FastString
#define EEL_GETCHAR_FLAG_ENDIANSWAP   0x10
#define EEL_GETCHAR_FLAG_UNSIGNED   0x20
#define EEL_GETCHAR_FLAG_FLOAT   0x40

Functions

static int eel_validate_format_specifier (const char *fmt_in, char *typeOut, char *fmtOut, int fmtOut_sz, char *varOut, int varOut_sz, int *varOut_used)
int eel_format_strings (void *opaque, const char *fmt, const char *fmt_end, char *buf, int buf_sz, int num_fmt_parms, EEL_F **fmt_parms)
static int eel_string_match (void *opaque, const char *fmt, const char *msg, int match_fmt_pos, int ignorecase, const char *fmt_endptr, const char *msg_endptr, int num_fmt_parms, EEL_F **fmt_parms)
static EEL_F NSEEL_CGEN_CALL _eel_sprintf (void *opaque, INT_PTR num_param, EEL_F **parms)
static EEL_F NSEEL_CGEN_CALL _eel_strncat (void *opaque, EEL_F *strOut, EEL_F *fmt_index, EEL_F *maxlen)
static EEL_F NSEEL_CGEN_CALL _eel_strcpysubstr (void *opaque, INT_PTR nparm, EEL_F **parms)
static EEL_F NSEEL_CGEN_CALL _eel_strncpy (void *opaque, EEL_F *strOut, EEL_F *fmt_index, EEL_F *maxlen)
static EEL_F _eel_strcmp_int (const char *a, int a_len, const char *b, int b_len, int ml, bool ignorecase)
static EEL_F NSEEL_CGEN_CALL _eel_strncmp (void *opaque, EEL_F *aa, EEL_F *bb, EEL_F *maxlen)
static EEL_F NSEEL_CGEN_CALL _eel_strnicmp (void *opaque, EEL_F *aa, EEL_F *bb, EEL_F *maxlen)
static EEL_F NSEEL_CGEN_CALL _eel_strcat (void *opaque, EEL_F *strOut, EEL_F *fmt_index)
static EEL_F NSEEL_CGEN_CALL _eel_strcpy (void *opaque, EEL_F *strOut, EEL_F *fmt_index)
static EEL_F NSEEL_CGEN_CALL _eel_strcmp (void *opaque, EEL_F *strOut, EEL_F *fmt_index)
static EEL_F NSEEL_CGEN_CALL _eel_stricmp (void *opaque, EEL_F *strOut, EEL_F *fmt_index)
static EEL_F NSEEL_CGEN_CALL _eel_strgetchar (void *opaque, EEL_F *strOut, EEL_F *idx)
static int eel_getchar_flag (int type)
static void eel_setchar_do (int flag, char *dest, EEL_F val)
static EEL_F eel_getchar_do (int flag, const char *src)
static EEL_F NSEEL_CGEN_CALL _eel_strgetchar2 (void *opaque, INT_PTR np, EEL_F **parms)
static EEL_F NSEEL_CGEN_CALL _eel_strsetchar2 (void *opaque, INT_PTR np, EEL_F **parms)
static EEL_F NSEEL_CGEN_CALL _eel_strsetchar (void *opaque, EEL_F *strOut, EEL_F *idx, EEL_F *val)
static EEL_F NSEEL_CGEN_CALL _eel_strinsert (void *opaque, EEL_F *strOut, EEL_F *fmt_index, EEL_F *pos)
static EEL_F NSEEL_CGEN_CALL _eel_strdelsub (void *opaque, EEL_F *strOut, EEL_F *pos, EEL_F *len)
static EEL_F NSEEL_CGEN_CALL _eel_strsetlen (void *opaque, EEL_F *strOut, EEL_F *newlen)
static EEL_F NSEEL_CGEN_CALL _eel_strlen (void *opaque, EEL_F *fmt_index)
static EEL_F NSEEL_CGEN_CALL _eel_printf (void *opaque, INT_PTR num_param, EEL_F **parms)
static EEL_F NSEEL_CGEN_CALL _eel_match (void *opaque, INT_PTR num_parms, EEL_F **parms)
static EEL_F NSEEL_CGEN_CALL _eel_matchi (void *opaque, INT_PTR num_parms, EEL_F **parms)
void EEL_string_register ()
void eel_string_initvm (NSEEL_VMCTX vm)

Macro Definition Documentation

◆ EEL_GETCHAR_FLAG_ENDIANSWAP

#define EEL_GETCHAR_FLAG_ENDIANSWAP   0x10

◆ EEL_GETCHAR_FLAG_FLOAT

#define EEL_GETCHAR_FLAG_FLOAT   0x40

◆ EEL_GETCHAR_FLAG_UNSIGNED

#define EEL_GETCHAR_FLAG_UNSIGNED   0x20

◆ EEL_STRING_GET_FOR_INDEX

#define EEL_STRING_GET_FOR_INDEX ( x,
wr )
Value:
(EEL_STRING_GET_CONTEXT_POINTER(opaque)->GetStringForIndex(x, wr, false))
unsigned x[BMAX+1]
Definition inflate.c:1586
#define opaque
Definition eelscript.h:281
#define EEL_STRING_GET_CONTEXT_POINTER(opaque)
Definition eelscript.h:168

◆ EEL_STRING_GET_FOR_WRITE

#define EEL_STRING_GET_FOR_WRITE ( x,
wr )
Value:
(EEL_STRING_GET_CONTEXT_POINTER(opaque)->GetStringForIndex(x, wr, true))

◆ EEL_STRING_GETFMTVAR

#define EEL_STRING_GETFMTVAR ( x)
Value:

◆ EEL_STRING_GETNAMEDVAR

#define EEL_STRING_GETNAMEDVAR ( x,
createOK,
altOut )
Value:
(EEL_STRING_GET_CONTEXT_POINTER(opaque)->GetNamedVar(x,createOK,altOut))

◆ EEL_STRING_LITERAL_BASE

#define EEL_STRING_LITERAL_BASE   10000

◆ EEL_STRING_MAX_USER_STRINGS

#define EEL_STRING_MAX_USER_STRINGS   1024

◆ EEL_STRING_MUTEXLOCK_SCOPE

#define EEL_STRING_MUTEXLOCK_SCOPE

◆ EEL_STRING_NAMED_BASE

#define EEL_STRING_NAMED_BASE   90000

◆ EEL_STRING_STORAGECLASS

#define EEL_STRING_STORAGECLASS   WDL_FastString

◆ EEL_STRING_UNNAMED_BASE

#define EEL_STRING_UNNAMED_BASE   190000

Function Documentation

◆ _eel_match()

EEL_F NSEEL_CGEN_CALL _eel_match ( void * opaque,
INT_PTR num_parms,
EEL_F ** parms )
static

◆ _eel_matchi()

EEL_F NSEEL_CGEN_CALL _eel_matchi ( void * opaque,
INT_PTR num_parms,
EEL_F ** parms )
static

◆ _eel_printf()

EEL_F NSEEL_CGEN_CALL _eel_printf ( void * opaque,
INT_PTR num_param,
EEL_F ** parms )
static

◆ _eel_sprintf()

EEL_F NSEEL_CGEN_CALL _eel_sprintf ( void * opaque,
INT_PTR num_param,
EEL_F ** parms )
static

◆ _eel_strcat()

EEL_F NSEEL_CGEN_CALL _eel_strcat ( void * opaque,
EEL_F * strOut,
EEL_F * fmt_index )
static

◆ _eel_strcmp()

EEL_F NSEEL_CGEN_CALL _eel_strcmp ( void * opaque,
EEL_F * strOut,
EEL_F * fmt_index )
static

◆ _eel_strcmp_int()

EEL_F _eel_strcmp_int ( const char * a,
int a_len,
const char * b,
int b_len,
int ml,
bool ignorecase )
static

◆ _eel_strcpy()

EEL_F NSEEL_CGEN_CALL _eel_strcpy ( void * opaque,
EEL_F * strOut,
EEL_F * fmt_index )
static

◆ _eel_strcpysubstr()

EEL_F NSEEL_CGEN_CALL _eel_strcpysubstr ( void * opaque,
INT_PTR nparm,
EEL_F ** parms )
static

◆ _eel_strdelsub()

EEL_F NSEEL_CGEN_CALL _eel_strdelsub ( void * opaque,
EEL_F * strOut,
EEL_F * pos,
EEL_F * len )
static

◆ _eel_strgetchar()

EEL_F NSEEL_CGEN_CALL _eel_strgetchar ( void * opaque,
EEL_F * strOut,
EEL_F * idx )
static

◆ _eel_strgetchar2()

EEL_F NSEEL_CGEN_CALL _eel_strgetchar2 ( void * opaque,
INT_PTR np,
EEL_F ** parms )
static

◆ _eel_stricmp()

EEL_F NSEEL_CGEN_CALL _eel_stricmp ( void * opaque,
EEL_F * strOut,
EEL_F * fmt_index )
static

◆ _eel_strinsert()

EEL_F NSEEL_CGEN_CALL _eel_strinsert ( void * opaque,
EEL_F * strOut,
EEL_F * fmt_index,
EEL_F * pos )
static

◆ _eel_strlen()

EEL_F NSEEL_CGEN_CALL _eel_strlen ( void * opaque,
EEL_F * fmt_index )
static

◆ _eel_strncat()

EEL_F NSEEL_CGEN_CALL _eel_strncat ( void * opaque,
EEL_F * strOut,
EEL_F * fmt_index,
EEL_F * maxlen )
static

◆ _eel_strncmp()

EEL_F NSEEL_CGEN_CALL _eel_strncmp ( void * opaque,
EEL_F * aa,
EEL_F * bb,
EEL_F * maxlen )
static

◆ _eel_strncpy()

EEL_F NSEEL_CGEN_CALL _eel_strncpy ( void * opaque,
EEL_F * strOut,
EEL_F * fmt_index,
EEL_F * maxlen )
static

◆ _eel_strnicmp()

EEL_F NSEEL_CGEN_CALL _eel_strnicmp ( void * opaque,
EEL_F * aa,
EEL_F * bb,
EEL_F * maxlen )
static

◆ _eel_strsetchar()

EEL_F NSEEL_CGEN_CALL _eel_strsetchar ( void * opaque,
EEL_F * strOut,
EEL_F * idx,
EEL_F * val )
static

◆ _eel_strsetchar2()

EEL_F NSEEL_CGEN_CALL _eel_strsetchar2 ( void * opaque,
INT_PTR np,
EEL_F ** parms )
static

◆ _eel_strsetlen()

EEL_F NSEEL_CGEN_CALL _eel_strsetlen ( void * opaque,
EEL_F * strOut,
EEL_F * newlen )
static

◆ eel_format_strings()

int eel_format_strings ( void * opaque,
const char * fmt,
const char * fmt_end,
char * buf,
int buf_sz,
int num_fmt_parms,
EEL_F ** fmt_parms )

◆ eel_getchar_do()

EEL_F eel_getchar_do ( int flag,
const char * src )
static

◆ eel_getchar_flag()

int eel_getchar_flag ( int type)
static

◆ eel_setchar_do()

void eel_setchar_do ( int flag,
char * dest,
EEL_F val )
static

◆ eel_string_initvm()

void eel_string_initvm ( NSEEL_VMCTX vm)

◆ eel_string_match()

int eel_string_match ( void * opaque,
const char * fmt,
const char * msg,
int match_fmt_pos,
int ignorecase,
const char * fmt_endptr,
const char * msg_endptr,
int num_fmt_parms,
EEL_F ** fmt_parms )
static

◆ EEL_string_register()

void EEL_string_register ( )

◆ eel_validate_format_specifier()

int eel_validate_format_specifier ( const char * fmt_in,
char * typeOut,
char * fmtOut,
int fmtOut_sz,
char * varOut,
int varOut_sz,
int * varOut_used )
static