MagickCore
7.0.0
|
#include "MagickCore/studio.h"
#include "MagickCore/blob.h"
#include "MagickCore/client.h"
#include "MagickCore/configure.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/hashmap.h"
#include "MagickCore/locale_.h"
#include "MagickCore/locale-private.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/xml-tree.h"
Go to the source code of this file.
Macros | |
#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) |
MagickPrivate ssize_t | FormatLocaleFileList (FILE *file, const char *restrict format, va_list operands) |
MagickExport ssize_t | FormatLocaleFile (FILE *file, const char *restrict format,...) |
MagickPrivate ssize_t | FormatLocaleStringList (char *restrict string, const size_t length, const char *restrict format, va_list operands) |
MagickExport ssize_t | FormatLocaleString (char *restrict string, const size_t length, const char *restrict format,...) |
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, size_t *number_messages, ExceptionInfo *exception) |
static int | LocaleTagCompare (const void *x, const void *y) |
MagickExport char ** | GetLocaleList (const char *pattern, size_t *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 double | InterpretLocaleValue (const char *restrict string, char **restrict sentinal) |
MagickExport MagickBooleanType | ListLocaleInfo (FILE *file, ExceptionInfo *exception) |
static void | ChopLocaleComponents (char *path, const size_t components) |
static void * | DestroyLocaleNode (void *locale_info) |
static void | LocaleFatalErrorHandler (const ExceptionType magick_unused(severity), const char *reason, const char *description) |
static MagickBooleanType | LoadLocaleList (const char *xml, const char *filename, const char *locale, const size_t depth, ExceptionInfo *exception) |
MagickPrivate MagickBooleanType | LocaleComponentGenesis (void) |
MagickPrivate 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 66 of file locale.c.
Referenced by InitializeLocaleList().
|
static |
Definition at line 1017 of file locale.c.
Referenced by LoadLocaleList().
|
static |
Definition at line 1040 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 208 of file locale.c.
References DestroyLinkedList(), DestroyOptions(), GetMagickModule, LogMagickEvent(), and TraceEvent.
Referenced by LoadLocaleLists().
|
static |
Definition at line 203 of file locale.c.
References DestroyStringInfo().
Referenced by DestroyLocaleOptions().
MagickExport ssize_t FormatLocaleFile | ( | FILE * | file, |
const char *restrict | format, | ||
... | |||
) |
Definition at line 287 of file locale.c.
References FormatLocaleFileList().
Referenced by AcquireKernelInfo(), AcquireResizeFilter(), Classify(), CloseMagickLog(), DefaultErrorHandler(), DefaultFatalErrorHandler(), DefaultWarningHandler(), DestroyLogElement(), DistortImage(), FxEvaluateSubexpression(), GetCommandOptionInfo(), GetNumberColors(), IdentifyImage(), ListCoderInfo(), ListColorInfo(), ListCommandOptions(), ListConfigureInfo(), ListDelegateInfo(), ListLocaleInfo(), ListLogInfo(), ListMagicInfo(), ListMagickInfo(), ListMagickResourceInfo(), ListMagickVersion(), ListMimeInfo(), ListPolicyInfo(), ListThresholdMapFile(), ListThresholdMaps(), ListTypeInfo(), LocaleFatalErrorHandler(), LockSemaphoreInfo(), LogMagickEventList(), MorphologyApply(), OptimizeLayerFrames(), ParseKernelName(), PrintChannelFeatures(), PrintChannelStatistics(), PrintStringInfo(), RenderPostscript(), ResamplePixelColor(), ScaleGeometryKernelInfo(), ScaleResampleFilter(), ShowKernelInfo(), SparseColorImage(), SystemCommand(), TracePath(), and UnlockSemaphoreInfo().
MagickPrivate ssize_t FormatLocaleFileList | ( | FILE * | file, |
const char *restrict | format, | ||
va_list | operands | ||
) |
MagickExport ssize_t FormatLocaleString | ( | char *restrict | string, |
const size_t | length, | ||
const char *restrict | format, | ||
... | |||
) |
Definition at line 382 of file locale.c.
References FormatLocaleStringList().
Referenced by AnnotateImage(), AppendImageFormat(), BlobToImage(), BlurImage(), CanonicalXMLContent(), ClipImagePath(), ClonePixelCacheRepository(), ColorMatrixImage(), ConcatenateColorComponent(), ConcatentateHexColorComponent(), ConnectPixelCacheServer(), DeskewImage(), DestroyPixelCache(), DistortImage(), DistributePixelCacheServer(), DrawClipPath(), DrawImage(), DrawPatternPath(), DrawPrimitive(), EncodePredefinedEntities(), FormatMagickSize(), FormatMagickTime(), FxChannelStatistics(), FxEvaluateSubexpression(), GaussianBlurImage(), GetConfigureOptions(), GetConfigurePaths(), GetExecutionPath(), GetEXIFProperty(), GetLocaleExceptionMessage(), GetLocaleMessage(), GetLocaleOptions(), GetMagickHomeURL(), GetMagickProperty(), GetMagickPropertyLetter(), GetPathTemplate(), IdentifyImage(), ImagesToBlob(), ImageToBlob(), InjectImageBlob(), InterpretImageFilename(), InterpretImageProperties(), InvokeDelegate(), ListMagickResourceInfo(), ListTypeInfo(), LoadTypeLists(), MagickToMime(), MontageImageList(), MorphologyApply(), OpenBlob(), OpenPixelCache(), PolaroidImage(), PreviewImage(), RenderPostscript(), SelectiveBlurImage(), SetImageProfile(), SetImageProgress(), SetPixelCacheExtent(), StringToList(), SyncImageSettings(), ThrowMagickExceptionList(), ThumbnailImage(), TracePSClippath(), TraceSVGClippath(), TranslateEvent(), TranslateFilename(), VignetteImage(), XMLTreeInfoToXML(), and XMLTreeTagToXML().
MagickPrivate ssize_t FormatLocaleStringList | ( | char *restrict | string, |
const size_t | length, | ||
const char *restrict | format, | ||
va_list | operands | ||
) |
MagickExport const LocaleInfo* GetLocaleInfo_ | ( | const char * | tag, |
ExceptionInfo * | exception | ||
) |
Definition at line 423 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, |
size_t * | number_messages, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 493 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, |
size_t * | number_messages, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 588 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 653 of file locale.c.
References AcquireExceptionInfo(), DestroyExceptionInfo(), FormatLocaleString(), GetLocaleInfo_(), MaxTextExtent, and _LocaleInfo::message.
Referenced by GetLocaleExceptionMessage().
MagickExport LinkedListInfo* GetLocaleOptions | ( | const char * | filename, |
ExceptionInfo * | exception | ||
) |
Definition at line 701 of file locale.c.
References AcquireStringInfo(), AppendValueToLinkedList(), ConfigureFileToStringInfo(), CopyMagickString(), DestroyLinkedList(), FormatLocaleString(), GetConfigurePaths(), GetMagickModule, GetNextValueInLinkedList(), LocaleEvent, LogMagickEvent(), MaxTextExtent, NewLinkedList(), RelinquishMagickMemory(), ResetLinkedListIterator(), SetStringInfoDatum(), SetStringInfoLength(), SetStringInfoPath(), and TraceEvent.
Referenced by LoadLocaleLists().
MagickExport const char* GetLocaleValue | ( | const LocaleInfo * | locale_info | ) |
Definition at line 784 of file locale.c.
References GetMagickModule, LogMagickEvent(), MagickSignature, _LocaleInfo::message, _LocaleInfo::signature, and TraceEvent.
|
static |
Definition at line 814 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 double InterpretLocaleValue | ( | const char *restrict | string, |
char **restrict | sentinal | ||
) |
Definition at line 883 of file locale.c.
Referenced by InterpretSiPrefixValue(), ParsePixelChannelOption(), StringToDouble(), and StringToDoubleInterval().
MagickExport MagickBooleanType ListLocaleInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
Definition at line 938 of file locale.c.
References FormatLocaleFile(), GetLocaleInfoList(), LocaleCompare(), MagickFalse, MagickTrue, _LocaleInfo::path, and RelinquishMagickMemory().
|
static |
Definition at line 1070 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(), LocaleFatalErrorHandler(), LocaleNCompare(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, _LocaleInfo::message, NewSplayTree(), _LocaleInfo::path, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, ResourceLimitFatalError, SetFatalErrorHandler(), _LocaleInfo::signature, _LocaleInfo::tag, ThrowFatalException, and ThrowMagickException().
Referenced by LoadLocaleLists().
static MagickBooleanType LoadLocaleLists | ( | const char * | filename, |
const char * | locale, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1330 of file locale.c.
References DestroyLocaleOptions(), GetLocaleOptions(), GetNextValueInLinkedList(), GetNumberOfNodesInSplayTree(), GetStringInfoDatum(), GetStringInfoPath(), LoadLocaleList(), locale_list, LocaleMap, MagickFalse, and MagickTrue.
Referenced by InitializeLocaleList().
MagickPrivate MagickBooleanType LocaleComponentGenesis | ( | void | ) |
Definition at line 1393 of file locale.c.
References AcquireSemaphoreInfo(), locale_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickPrivate void LocaleComponentTerminus | ( | void | ) |
Definition at line 1417 of file locale.c.
References AcquireSemaphoreInfo(), DestroySemaphoreInfo(), DestroySplayTree(), instantiate_locale, locale_list, locale_semaphore, LockSemaphoreInfo(), MagickFalse, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
Definition at line 1055 of file locale.c.
References FormatLocaleFile(), and GetClientName().
Referenced by LoadLocaleList().
|
static |
Definition at line 476 of file locale.c.
References LocaleCompare().
Referenced by GetLocaleInfoList().
|
static |
|
static |
Definition at line 104 of file locale.c.
Referenced by GetLocaleInfo_(), InitializeLocaleList(), and LocaleComponentTerminus().
|
static |
Definition at line 96 of file locale.c.
Referenced by GetLocaleInfo_(), GetLocaleInfoList(), GetLocaleList(), InitializeLocaleList(), LoadLocaleList(), LoadLocaleLists(), and LocaleComponentTerminus().
|
static |
Definition at line 93 of file locale.c.
Referenced by GetLocaleInfoList(), GetLocaleList(), InitializeLocaleList(), LocaleComponentGenesis(), and LocaleComponentTerminus().
|
static |
Definition at line 81 of file locale.c.
Referenced by LoadLocaleLists().