|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/image.h"#include "MagickCore/memory_.h"#include "MagickCore/string_.h"#include "MagickCore/string-private.h"#include "MagickCore/token.h"#include "MagickCore/token-private.h"#include "MagickCore/utility.h"#include "MagickCore/utility-private.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) |
| 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) |
| #define IN_OZONE 3 |
Definition at line 774 of file token.c.
Referenced by Tokenizer().
| #define IN_QUOTE 2 |
Definition at line 773 of file token.c.
Referenced by StoreToken(), and Tokenizer().
| #define IN_TOKEN 1 |
Definition at line 772 of file token.c.
Referenced by Tokenizer().
| #define IN_WHITE 0 |
Definition at line 771 of file token.c.
Referenced by Tokenizer().
| MagickExport TokenInfo* AcquireTokenInfo | ( | void | ) |
Definition at line 94 of file token.c.
References AcquireMagickMemory(), ThrowFatalException, ResourceLimitFatalError, _TokenInfo::signature, and MagickSignature.
Definition at line 129 of file token.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, _TokenInfo::signature, MagickSignature, and RelinquishMagickMemory().
| MagickExport void GetMagickToken | ( | const char * | start, |
| const char ** | end, | ||
| char * | token | ||
| ) |
Definition at line 169 of file token.c.
References StringToDouble(), DirectorySeparator, LocaleNCompare(), CopyMagickString(), and MaxTextExtent.
Referenced by LoadCoderList(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), DrawImage(), TracePath(), ColorDecisionListImage(), ParseAffineGeometry(), LoadLocaleList(), LoadLogList(), LoadMagicList(), ParseKernelArray(), ParseKernelName(), AcquireKernelInfo(), LoadPolicyList(), OrderedPosterizeImage(), and LoadTypeList().
| MagickExport MagickBooleanType GlobExpression | ( | const char * | expression, |
| const char * | pattern, | ||
| const MagickBooleanType | case_insensitive | ||
| ) |
Definition at line 319 of file token.c.
References MagickTrue, GetUTFCode(), LocaleCompare(), AcquireImageInfo(), CopyMagickString(), _ImageInfo::filename, MaxTextExtent, AcquireExceptionInfo(), SetImageInfo(), DestroyExceptionInfo(), DestroyImageInfo(), MagickFalse, GetUTFOctets(), and GlobExpression().
Referenced by GetCoderInfoList(), GetCoderList(), GetColorInfoList(), GetColorList(), LoadColorList(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfoList(), GetDelegateList(), GetLocaleInfoList(), GetLocaleList(), GetLogInfoList(), GetLogList(), GetMagicInfoList(), GetMagicList(), GetMagickInfoList(), GetMagickList(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetPolicyInfoList(), GetPolicyList(), IsRightsAuthorized(), ProfileImage(), InterpretImageProperties(), GlobExpression(), GetTypeInfoList(), GetTypeList(), and ListFiles().
| MagickPrivate MagickBooleanType IsGlob | ( | const char * | path | ) |
Definition at line 593 of file token.c.
References IsPathAccessible(), MagickFalse, and MagickTrue.
Referenced by InterpretImageProperties(), and ExpandFilenames().
| static ssize_t sindex | ( | int | c, |
| const char * | string | ||
| ) | [static] |
Definition at line 776 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 787 of file token.c.
References _TokenInfo::offset, _TokenInfo::state, IN_QUOTE, and _TokenInfo::flag.
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 817 of file token.c.
References _TokenInfo::state, IN_WHITE, _TokenInfo::quote, MagickFalse, _TokenInfo::flag, _TokenInfo::offset, sindex(), IN_TOKEN, IN_OZONE, IN_QUOTE, StoreToken(), and MagickTrue.