|
WizardsToolkit
1.0.7
|
#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.
Defines | |
| #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 | IsAccessible (const char *path) |
| WizardExport WizardBooleanType | IsWizardTrue (const char *value) |
| WizardExport const char * | ParseWizardTime (const char *timestamp, time_t *target) |
Variables | |
| static const char | Base64 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" |
| #define X_OK 1 |
Referenced by IsDirectory().
| WizardExport void AppendFileExtension | ( | const char * | extension, |
| char * | filename | ||
| ) |
Definition at line 94 of file utility.c.
References MaxTextExtent, LogWizardEvent(), TraceEvent, GetWizardModule, GetPathComponent(), RootPath, CopyWizardString(), and ConcatenateWizardString().
Referenced by AcquireFileLock(), and RelinquishFileLock().
| WizardExport unsigned char* Base64Decode | ( | const char * | source, |
| size_t * | length | ||
| ) |
Definition at line 136 of file utility.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, AcquireQuantumMemory(), Base64, and RelinquishWizardMemory().
| WizardExport char* Base64Encode | ( | const unsigned char * | blob, |
| const size_t | blob_length, | ||
| size_t * | encode_length | ||
| ) |
Definition at line 290 of file utility.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, AcquireQuantumMemory(), and Base64.
Referenced by CanonicalXMLContent().
| WizardExport void ChopPathComponents | ( | char * | path, |
| const size_t | components | ||
| ) |
Definition at line 376 of file utility.c.
References GetPathComponent(), and HeadPath.
Referenced by GetConfigurePaths().
| WizardExport WizardBooleanType GetExecutionPath | ( | char * | path, |
| const size_t | extent | ||
| ) |
Definition at line 641 of file utility.c.
References getcwd, MaxTextExtent, PATH_MAX, FormatLocaleString(), getpid, CopyWizardString(), DirectorySeparator, ConcatenateWizardString(), NTGetExecutionPath(), AcquireQuantumMemory(), RelinquishWizardMemory(), and IsAccessible().
Referenced by WizardsToolkitGenesis().
| WizardExport void GetPathComponent | ( | const char * | path, |
| PathType | type, | ||
| char * | component | ||
| ) |
Definition at line 413 of file utility.c.
References MaxTextExtent, LogWizardEvent(), TraceEvent, GetWizardModule, CopyWizardString(), IsDirectory(), IsAccessible(), WizardFalse, IsBasenameSeparator, FilesystemPath, RootPath, HeadPath, TailPath, CopyWizardMemory(), BasePath, ExtensionPath, SubnodePath, CanonicalPath, and UndefinedPath.
Referenced by OpenBlob(), LoadConfigureList(), LoadLogList(), LoadMimeList(), AppendFileExtension(), ChopPathComponents(), WizardsToolkitGenesis(), AddPathToXMLTree(), and GetXMLTreePath().
| WizardExport char** GetPathComponents | ( | const char * | path, |
| size_t * | number_components | ||
| ) |
Definition at line 574 of file utility.c.
References IsBasenameSeparator, AcquireQuantumMemory(), ThrowFatalException, ResourceFatalError, MaxTextExtent, and CopyWizardString().
Referenced by AddPathToXMLTree(), and GetXMLTreePath().
| WizardExport WizardBooleanType IsAccessible | ( | const char * | path | ) |
Definition at line 769 of file utility.c.
References stat, WizardFalse, stat_utf8(), S_ISREG, F_OK, and WizardTrue.
Referenced by LogWizardEventList(), IsGlob(), GetPathComponent(), and GetExecutionPath().
| static int IsDirectory | ( | const char * | path | ) | [static] |
Definition at line 813 of file utility.c.
References stat, WizardFalse, stat_utf8(), S_ISDIR, and X_OK.
Referenced by GetPathComponent().
| WizardExport WizardBooleanType IsWizardTrue | ( | const char * | value | ) |
Definition at line 863 of file utility.c.
References WizardFalse, LocaleCompare(), and WizardTrue.
Referenced by LoadConfigureList(), and LoadMimeList().
| WizardExport const char* ParseWizardTime | ( | const char * | timestamp, |
| time_t * | target | ||
| ) |
Definition at line 904 of file utility.c.
References ResetWizardMemory(), and StringToDouble().
const char Base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [static] |
Definition at line 59 of file utility.c.
Referenced by Base64Decode(), and Base64Encode().