MagickCore 7.0.10
|
#include "wizard/studio.h"
#include "wizard/exception.h"
#include "wizard/exception-private.h"
#include "wizard/locale_.h"
#include "wizard/memory_.h"
#include "wizard/resource_.h"
#include "wizard/string-private.h"
#include "wizard/utility.h"
#include "wizard/utility-private.h"
Go to the source code of this file.
Macros | |
#define | X_OK 1 |
Functions | |
static int | IsDirectory (const char *) |
WizardExport void | AppendFileExtension (const char *extension, char *filename) |
WizardExport unsigned char * | Base64Decode (const char *source, size_t *length) |
WizardExport char * | Base64Encode (const unsigned char *blob, const size_t blob_length, size_t *encode_length) |
WizardExport void | ChopPathComponents (char *path, const size_t components) |
WizardExport void | GetPathComponent (const char *path, PathType type, char *component) |
WizardExport char ** | GetPathComponents (const char *path, size_t *number_components) |
WizardExport WizardBooleanType | GetExecutionPath (char *path, const size_t extent) |
WizardExport WizardBooleanType | IsPathAcessible (const char *path) |
WizardPrivate ssize_t | GetWizardPageSize (void) |
WizardExport WizardBooleanType | IsWizardTrue (const char *value) |
WizardExport const char * | ParseWizardTime (const char *timestamp, time_t *target) |
WizardExport void | WizardDelay (const WizardSizeType milliseconds) |
Variables | |
static const char | Base64 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" |
#define X_OK 1 |
WizardExport void AppendFileExtension | ( | const char * | extension, |
char * | filename | ||
) |
Definition at line 94 of file utility.c.
References ConcatenateWizardString(), CopyWizardString(), GetPathComponent(), GetWizardModule, LogWizardEvent(), RootPath, TraceEvent, and WizardPathExtent.
Referenced by AcquireFileLock(), and RelinquishFileLock().
WizardExport unsigned char * Base64Decode | ( | const char * | source, |
size_t * | length | ||
) |
Definition at line 136 of file utility.c.
References AcquireQuantumMemory(), Base64, GetWizardModule, LogWizardEvent(), RelinquishWizardMemory(), and TraceEvent.
WizardExport char * Base64Encode | ( | const unsigned char * | blob, |
const size_t | blob_length, | ||
size_t * | encode_length | ||
) |
Definition at line 292 of file utility.c.
References AcquireQuantumMemory(), Base64, GetWizardModule, LogWizardEvent(), and TraceEvent.
Referenced by CanonicalXMLContent().
WizardExport void ChopPathComponents | ( | char * | path, |
const size_t | components | ||
) |
Definition at line 378 of file utility.c.
References GetPathComponent(), and HeadPath.
WizardExport WizardBooleanType GetExecutionPath | ( | char * | path, |
const size_t | extent | ||
) |
WizardExport void GetPathComponent | ( | const char * | path, |
PathType | type, | ||
char * | component | ||
) |
Definition at line 415 of file utility.c.
References BasePath, CanonicalPath, CopyWizardMemory(), CopyWizardString(), ExtensionPath, FilesystemPath, GetWizardModule, HeadPath, IsBasenameSeparator, IsDirectory(), IsPathAcessible(), LogWizardEvent(), RootPath, SubnodePath, TailPath, TraceEvent, UndefinedPath, WizardFalse, and WizardPathExtent.
Referenced by AddPathToXMLTree(), AppendFileExtension(), ChopPathComponents(), GetXMLTreePath(), LoadConfigureCache(), LoadLocaleCache(), LoadLogCache(), LoadMimeCache(), OpenBlob(), and WizardsToolkitGenesis().
WizardExport char ** GetPathComponents | ( | const char * | path, |
size_t * | number_components | ||
) |
Definition at line 576 of file utility.c.
References AcquireQuantumMemory(), CopyWizardString(), IsBasenameSeparator, ResourceFatalError, ThrowFatalException, and WizardPathExtent.
Referenced by AddPathToXMLTree(), and GetXMLTreePath().
WizardPrivate ssize_t GetWizardPageSize | ( | void | ) |
Definition at line 817 of file utility.c.
Referenced by AcquireAlignedMemory().
|
static |
Definition at line 860 of file utility.c.
References S_ISDIR, stat_utf8(), WizardFalse, and X_OK.
Referenced by GetPathComponent().
WizardExport WizardBooleanType IsPathAcessible | ( | const char * | path | ) |
Definition at line 779 of file utility.c.
References S_ISREG, stat_utf8(), WizardFalse, and WizardTrue.
Referenced by GetExecutionPath(), GetPathComponent(), IsGlob(), and LogWizardEventList().
WizardExport WizardBooleanType IsWizardTrue | ( | const char * | value | ) |
Definition at line 910 of file utility.c.
References LocaleCompare(), WizardFalse, and WizardTrue.
Referenced by LoadConfigureCache(), and LoadMimeCache().
WizardExport const char * ParseWizardTime | ( | const char * | timestamp, |
time_t * | target | ||
) |
Definition at line 951 of file utility.c.
References StringToDouble().
WizardExport void WizardDelay | ( | const WizardSizeType | milliseconds | ) |
Definition at line 1042 of file utility.c.
Referenced by AcquireFileLock().
|
static |
Definition at line 59 of file utility.c.
Referenced by Base64Decode(), and Base64Encode().