MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
token.c File Reference
Include dependency graph for token.c:

Go to the source code of this file.

Data Structures

struct  _TokenInfo
 

Macros

#define IN_WHITE   0
 
#define IN_TOKEN   1
 
#define IN_QUOTE   2
 
#define IN_OZONE   3
 

Functions

MagickExport TokenInfoAcquireTokenInfo (void)
 
MagickExport TokenInfoDestroyTokenInfo (TokenInfo *token_info)
 
MagickExport void GetNextToken (const char *start, const char **end, const size_t extent, char *token)
 
MagickExport MagickBooleanType GlobExpression (const char *expression, const char *pattern, const MagickBooleanType case_insensitive)
 
MagickPrivate MagickBooleanType IsGlob (const char *path)
 
static ssize_t sindex (int c, const char *string)
 
static void StoreToken (TokenInfo *token_info, char *string, size_t max_token_length, int c)
 
MagickExport int Tokenizer (TokenInfo *token_info, const unsigned flag, char *token, const size_t max_token_length, const char *line, const char *white, const char *break_set, const char *quote, const char escape, char *breaker, int *next, char *quoted)
 

Macro Definition Documentation

◆ IN_OZONE

#define IN_OZONE   3

Definition at line 815 of file token.c.

Referenced by Tokenizer().

◆ IN_QUOTE

#define IN_QUOTE   2

Definition at line 814 of file token.c.

Referenced by StoreToken(), and Tokenizer().

◆ IN_TOKEN

#define IN_TOKEN   1

Definition at line 813 of file token.c.

Referenced by Tokenizer().

◆ IN_WHITE

#define IN_WHITE   0

Definition at line 812 of file token.c.

Referenced by Tokenizer().

Function Documentation

◆ AcquireTokenInfo()

MagickExport TokenInfo* AcquireTokenInfo ( void  )

Definition at line 95 of file token.c.

References AcquireCriticalMemory(), MagickCoreSignature, and _TokenInfo::signature.

Referenced by RenderType().

◆ DestroyTokenInfo()

MagickExport TokenInfo* DestroyTokenInfo ( TokenInfo token_info)

◆ GetNextToken()

◆ GlobExpression()

◆ IsGlob()

MagickPrivate MagickBooleanType IsGlob ( const char *  path)

Definition at line 619 of file token.c.

References IsPathAccessible(), MagickFalse, and MagickTrue.

Referenced by ExpandFilenames(), and InterpretImageProperties().

◆ sindex()

static ssize_t sindex ( int  c,
const char *  string 
)
static

Definition at line 817 of file token.c.

Referenced by Tokenizer().

◆ StoreToken()

static void StoreToken ( TokenInfo token_info,
char *  string,
size_t  max_token_length,
int  c 
)
static

Definition at line 828 of file token.c.

References _TokenInfo::flag, IN_QUOTE, _TokenInfo::offset, and _TokenInfo::state.

Referenced by Tokenizer().

◆ Tokenizer()

MagickExport int Tokenizer ( TokenInfo token_info,
const unsigned  flag,
char *  token,
const size_t  max_token_length,
const char *  line,
const char *  white,
const char *  break_set,
const char *  quote,
const char  escape,
char *  breaker,
int *  next,
char *  quoted 
)