#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/token.h"#include "magick/token-private.h"#include "magick/utility.h"
Go to the source code of this file.
Data Structures | |
| struct | _TokenInfo |
Defines | |
| #define | IN_WHITE 0 |
| #define | IN_TOKEN 1 |
| #define | IN_QUOTE 2 |
| #define | IN_OZONE 3 |
Functions | |
| MagickExport TokenInfo * | AcquireTokenInfo (void) |
| MagickExport TokenInfo * | DestroyTokenInfo (TokenInfo *token_info) |
| MagickExport void | GetMagickToken (const char *start, const char **end, char *token) |
| MagickExport MagickBooleanType | GlobExpression (const char *expression, const char *pattern, const MagickBooleanType case_insensitive) |
| MagickExport MagickBooleanType | IsGlob (const char *path) |
| static long | 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) |
| #define IN_OZONE 3 |
Definition at line 769 of file token.c.
Referenced by Tokenizer().
| #define IN_QUOTE 2 |
Definition at line 768 of file token.c.
Referenced by StoreToken(), and Tokenizer().
| #define IN_TOKEN 1 |
Definition at line 767 of file token.c.
Referenced by Tokenizer().
| #define IN_WHITE 0 |
Definition at line 766 of file token.c.
Referenced by Tokenizer().
| MagickExport TokenInfo* AcquireTokenInfo | ( | void | ) |
Definition at line 92 of file token.c.
References AcquireMagickMemory(), MagickSignature, ResourceLimitFatalError, _TokenInfo::signature, and ThrowFatalException.
Definition at line 127 of file token.c.
References GetMagickModule, LogMagickEvent(), MagickSignature, RelinquishMagickMemory(), _TokenInfo::signature, and TraceEvent.
| MagickExport void GetMagickToken | ( | const char * | start, | |
| const char ** | end, | |||
| char * | token | |||
| ) |
Definition at line 166 of file token.c.
References CopyMagickString(), DirectorySeparator, LocaleNCompare(), and MaxTextExtent.
Referenced by ColorDecisionListImage(), DrawImage(), LoadCoderList(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), LoadLocaleList(), LoadLogList(), LoadMagicList(), LoadPolicyList(), LoadTypeList(), ParseAffineGeometry(), and TracePath().
| MagickExport MagickBooleanType GlobExpression | ( | const char * | expression, | |
| const char * | pattern, | |||
| const MagickBooleanType | case_insensitive | |||
| ) |
Definition at line 313 of file token.c.
References AcquireExceptionInfo(), AcquireImageInfo(), CopyMagickString(), DestroyExceptionInfo(), DestroyImageInfo(), _ImageInfo::filename, GetUTFCode(), GetUTFOctets(), LocaleCompare(), MagickFalse, MagickTrue, MaxTextExtent, and SetImageInfo().
Referenced by GetCoderInfoList(), GetCoderList(), GetColorInfoList(), GetColorList(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfoList(), GetDelegateList(), GetLocaleInfoList(), GetLocaleList(), GetLogInfoList(), GetLogList(), GetMagicInfoList(), GetMagickInfoList(), GetMagickList(), GetMagicList(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetPolicyInfoList(), GetPolicyList(), GetTypeInfoList(), GetTypeList(), InterpretImageProperties(), IsRightsAuthorized(), ListFiles(), LoadColorList(), and ProfileImage().
| MagickExport MagickBooleanType IsGlob | ( | const char * | path | ) |
Definition at line 588 of file token.c.
References IsPathAccessible(), MagickFalse, and MagickTrue.
Referenced by ExpandFilenames(), InterpretImageProperties(), and XFileBrowserWidget().
| static long sindex | ( | int | c, | |
| const char * | string | |||
| ) | [static] |
Definition at line 771 of file token.c.
Referenced by Tokenizer().
| static void StoreToken | ( | TokenInfo * | token_info, | |
| char * | string, | |||
| size_t | max_token_length, | |||
| int | c | |||
| ) | [static] |
Definition at line 782 of file token.c.
References _TokenInfo::flag, IN_QUOTE, _TokenInfo::offset, and _TokenInfo::state.
Referenced by 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 | |||
| ) |
Definition at line 812 of file token.c.
References _TokenInfo::flag, IN_OZONE, IN_QUOTE, IN_TOKEN, IN_WHITE, MagickFalse, MagickTrue, _TokenInfo::offset, _TokenInfo::quote, sindex(), _TokenInfo::state, and StoreToken().
1.6.1