MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
token.c File Reference
#include "magick/studio.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/image.h"
#include "magick/memory_.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/token.h"
#include "magick/token-private.h"
#include "magick/utility.h"
Include dependency graph for token.c:

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)
 
MagickExport MagickBooleanType IsGlob (const char *path)
 
MagickExport MagickBooleanType IsMagickTrue (const char *value)
 
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

Referenced by Tokenizer().

◆ IN_QUOTE

#define IN_QUOTE   2

Referenced by StoreToken(), and Tokenizer().

◆ IN_TOKEN

#define IN_TOKEN   1

Referenced by Tokenizer().

◆ IN_WHITE

#define IN_WHITE   0

Referenced by Tokenizer().

Function Documentation

◆ AcquireTokenInfo()

◆ DestroyTokenInfo()

◆ GetNextToken()

◆ GlobExpression()

◆ IsGlob()

◆ IsMagickTrue()

◆ sindex()

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

Referenced by Tokenizer().

◆ StoreToken()

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

◆ 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 
)