#include "magick/studio.h"#include "magick/blob.h"#include "magick/client.h"#include "magick/configure.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/hashmap.h"#include "magick/locale_.h"#include "magick/log.h"#include "magick/memory_.h"#include "magick/semaphore.h"#include "magick/splay-tree.h"#include "magick/string_.h"#include "magick/token.h"#include "magick/utility.h"#include "magick/xml-tree.h"
Go to the source code of this file.
Defines | |
| #define | LocaleFilename "locale.xml" |
| #define | MaxRecursionDepth 200 |
Functions | |
| static MagickBooleanType | InitializeLocaleList (ExceptionInfo *) |
| static MagickBooleanType | LoadLocaleLists (const char *, const char *, ExceptionInfo *) |
| static void * | DestroyOptions (void *message) |
| MagickExport LinkedListInfo * | DestroyLocaleOptions (LinkedListInfo *messages) |
| MagickExport const LocaleInfo * | GetLocaleInfo_ (const char *tag, ExceptionInfo *exception) |
| static int | LocaleInfoCompare (const void *x, const void *y) |
| MagickExport const LocaleInfo ** | GetLocaleInfoList (const char *pattern, unsigned long *number_messages, ExceptionInfo *exception) |
| static int | LocaleTagCompare (const void *x, const void *y) |
| MagickExport char ** | GetLocaleList (const char *pattern, unsigned long *number_messages, ExceptionInfo *exception) |
| MagickExport const char * | GetLocaleMessage (const char *tag) |
| MagickExport LinkedListInfo * | GetLocaleOptions (const char *filename, ExceptionInfo *exception) |
| MagickExport const char * | GetLocaleValue (const LocaleInfo *locale_info) |
| MagickExport MagickBooleanType | ListLocaleInfo (FILE *file, ExceptionInfo *exception) |
| static void | ChopLocaleComponents (char *path, const unsigned long components) |
| static void * | DestroyLocaleNode (void *locale_info) |
| static MagickBooleanType | LoadLocaleList (const char *xml, const char *filename, const char *locale, const unsigned long depth, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | LocaleComponentGenesis (void) |
| MagickExport void | LocaleComponentTerminus (void) |
Variables | |
| static const char * | LocaleMap |
| static SemaphoreInfo * | locale_semaphore = (SemaphoreInfo *) NULL |
| static SplayTreeInfo * | locale_list = (SplayTreeInfo *) NULL |
| static volatile MagickBooleanType | instantiate_locale = MagickFalse |
| #define LocaleFilename "locale.xml" |
Definition at line 62 of file locale.c.
Referenced by InitializeLocaleList().
| static void ChopLocaleComponents | ( | char * | path, | |
| const unsigned long | components | |||
| ) | [static] |
Definition at line 689 of file locale.c.
Referenced by LoadLocaleList().
| static void* DestroyLocaleNode | ( | void * | locale_info | ) | [static] |
Definition at line 712 of file locale.c.
References DestroyString(), _LocaleInfo::message, _LocaleInfo::path, RelinquishMagickMemory(), and _LocaleInfo::tag.
Referenced by LoadLocaleList().
| MagickExport LinkedListInfo* DestroyLocaleOptions | ( | LinkedListInfo * | messages | ) |
Definition at line 125 of file locale.c.
References DestroyLinkedList(), DestroyOptions(), GetMagickModule, LogMagickEvent(), and TraceEvent.
Referenced by LoadLocaleLists().
| static void* DestroyOptions | ( | void * | message | ) | [static] |
Definition at line 120 of file locale.c.
References DestroyStringInfo().
Referenced by DestroyLocaleOptions().
| MagickExport const LocaleInfo* GetLocaleInfo_ | ( | const char * | tag, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 158 of file locale.c.
References GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GetValueFromSplayTree(), InitializeLocaleList(), instantiate_locale, locale_list, LocaleCompare(), MagickFalse, and ResetSplayTreeIterator().
Referenced by GetLocaleInfoList(), GetLocaleList(), and GetLocaleMessage().
| MagickExport const LocaleInfo** GetLocaleInfoList | ( | const char * | pattern, | |
| unsigned long * | number_messages, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 228 of file locale.c.
References AcquireQuantumMemory(), GetLocaleInfo_(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GlobExpression(), locale_list, locale_semaphore, LocaleInfoCompare(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickTrue, ResetSplayTreeIterator(), _LocaleInfo::stealth, _LocaleInfo::tag, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListLocaleInfo().
| MagickExport char** GetLocaleList | ( | const char * | pattern, | |
| unsigned long * | number_messages, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 323 of file locale.c.
References AcquireQuantumMemory(), ConstantString(), GetLocaleInfo_(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GlobExpression(), locale_list, locale_semaphore, LocaleTagCompare(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickTrue, _LocaleInfo::stealth, _LocaleInfo::tag, TraceEvent, and UnlockSemaphoreInfo().
| MagickExport const char* GetLocaleMessage | ( | const char * | tag | ) |
Definition at line 388 of file locale.c.
References AcquireExceptionInfo(), DestroyExceptionInfo(), FormatMagickString(), GetLocaleInfo_(), MaxTextExtent, and _LocaleInfo::message.
Referenced by GetLocaleExceptionMessage(), and GetLocaleMonitorMessage().
| MagickExport LinkedListInfo* GetLocaleOptions | ( | const char * | filename, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 436 of file locale.c.
References AppendValueToLinkedList(), ConfigureFileToStringInfo(), CopyMagickString(), DestroyLinkedList(), DestroyString(), FormatMagickString(), GetConfigurePaths(), GetMagickModule, GetNextValueInLinkedList(), LocaleEvent, LogMagickEvent(), MaxTextExtent, NewLinkedList(), NTResourceToBlob(), RelinquishMagickMemory(), ResetLinkedListIterator(), StringToStringInfo(), and TraceEvent.
Referenced by LoadLocaleLists().
| MagickExport const char* GetLocaleValue | ( | const LocaleInfo * | locale_info | ) |
Definition at line 517 of file locale.c.
References GetMagickModule, LogMagickEvent(), MagickSignature, _LocaleInfo::message, _LocaleInfo::signature, and TraceEvent.
| static MagickBooleanType InitializeLocaleList | ( | ExceptionInfo * | exception | ) | [static] |
Definition at line 547 of file locale.c.
References AcquireSemaphoreInfo(), ConstantString(), DestroyString(), GetEnvironmentValue(), instantiate_locale, LoadLocaleLists(), locale_list, locale_semaphore, LocaleFilename, LockSemaphoreInfo(), MagickFalse, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetLocaleInfo_().
| MagickExport MagickBooleanType ListLocaleInfo | ( | FILE * | file, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 611 of file locale.c.
References GetLocaleInfoList(), LocaleCompare(), MagickFalse, MagickTrue, _LocaleInfo::path, and RelinquishMagickMemory().
| static MagickBooleanType LoadLocaleList | ( | const char * | xml, | |
| const char * | filename, | |||
| const char * | locale, | |||
| const unsigned long | depth, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 727 of file locale.c.
References AcquireMagickMemory(), AcquireString(), AddValueToSplayTree(), ChopLocaleComponents(), CompareSplayTreeString(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), DestroyLocaleNode(), DirectorySeparator, FileToString(), GetMagickModule, GetMagickToken(), GetPathComponent(), HeadPath, locale_list, LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, _LocaleInfo::message, NewSplayTree(), _LocaleInfo::path, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, ResourceLimitFatalError, _LocaleInfo::signature, _LocaleInfo::tag, ThrowFatalException, ThrowFileException, and ThrowMagickException().
Referenced by LoadLocaleLists().
| static MagickBooleanType LoadLocaleLists | ( | const char * | filename, | |
| const char * | locale, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 986 of file locale.c.
References DestroyLocaleOptions(), GetLocaleOptions(), GetNextValueInLinkedList(), GetNumberOfNodesInSplayTree(), GetStringInfoDatum(), GetStringInfoPath(), LoadLocaleList(), locale_list, LocaleMap, MagickFalse, and MagickTrue.
Referenced by InitializeLocaleList().
| MagickExport MagickBooleanType LocaleComponentGenesis | ( | void | ) |
Definition at line 1049 of file locale.c.
References AcquireSemaphoreInfo(), locale_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
| MagickExport void LocaleComponentTerminus | ( | void | ) |
Definition at line 1073 of file locale.c.
References AcquireSemaphoreInfo(), DestroySemaphoreInfo(), DestroySplayTree(), instantiate_locale, locale_list, locale_semaphore, LockSemaphoreInfo(), MagickFalse, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
| static int LocaleInfoCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
Definition at line 211 of file locale.c.
References LocaleCompare().
Referenced by GetLocaleInfoList().
| static int LocaleTagCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
volatile MagickBooleanType instantiate_locale = MagickFalse [static] |
Definition at line 87 of file locale.c.
Referenced by GetLocaleInfo_(), InitializeLocaleList(), and LocaleComponentTerminus().
SplayTreeInfo* locale_list = (SplayTreeInfo *) NULL [static] |
Definition at line 84 of file locale.c.
Referenced by GetLocaleInfo_(), GetLocaleInfoList(), GetLocaleList(), InitializeLocaleList(), LoadLocaleList(), LoadLocaleLists(), and LocaleComponentTerminus().
SemaphoreInfo* locale_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 81 of file locale.c.
Referenced by GetLocaleInfoList(), GetLocaleList(), InitializeLocaleList(), LocaleComponentGenesis(), and LocaleComponentTerminus().
const char* LocaleMap [static] |
"<?xml version=\"1.0\"?>"
"<localemap>"
" <locale name=\"C\">"
" <Exception>"
" <Message name=\"\">"
" </Message>"
" </Exception>"
" </locale>"
"</localemap>"
Definition at line 69 of file locale.c.
Referenced by LoadLocaleLists().
1.6.1