MagickCore
6.8.5
|
#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"
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) |
MagickExport ssize_t | FormatLocaleFileList (FILE *file, const char *restrict format, va_list operands) |
MagickExport ssize_t | FormatLocaleFile (FILE *file, const char *restrict format,...) |
MagickExport 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) |
MagickExport MagickBooleanType | LocaleComponentGenesis (void) |
MagickExport void | LocaleComponentTerminus (void) |
Variables | |
static const char * | LocaleMap = "</localemap>" |
static SemaphoreInfo * | locale_semaphore = (SemaphoreInfo *) NULL |
static SplayTreeInfo * | locale_list = (SplayTreeInfo *) NULL |
static volatile MagickBooleanType | instantiate_locale = MagickFalse |
#define LocaleFilename "locale.xml" |
Referenced by InitializeLocaleList().
#define MaxRecursionDepth 200 |
|
static |
Referenced by LoadLocaleList().
|
static |
References DestroyString(), _LocaleInfo::message, _LocaleInfo::path, RelinquishMagickMemory(), and _LocaleInfo::tag.
Referenced by LoadLocaleList().
MagickExport LinkedListInfo* DestroyLocaleOptions | ( | LinkedListInfo * | messages | ) |
References DestroyLinkedList(), DestroyOptions(), GetMagickModule, LogMagickEvent(), and TraceEvent.
Referenced by LoadLocaleLists().
|
static |
References DestroyStringInfo().
Referenced by DestroyLocaleOptions().
MagickExport ssize_t FormatLocaleFile | ( | FILE * | file, |
const char *restrict | format, | ||
... | |||
) |
References FormatLocaleFileList().
Referenced by AcquireKernelInfo(), AcquireResizeFilter(), Classify(), CloseMagickLog(), DefaultErrorHandler(), DefaultFatalErrorHandler(), DefaultWarningHandler(), DestroyLogElement(), DistortImage(), FxEvaluateSubexpression(), 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().
MagickExport ssize_t FormatLocaleFileList | ( | FILE * | file, |
const char *restrict | format, | ||
va_list | operands | ||
) |
Referenced by FormatLocaleFile().
MagickExport ssize_t FormatLocaleString | ( | char *restrict | string, |
const size_t | length, | ||
const char *restrict | format, | ||
... | |||
) |
References FormatLocaleStringList().
Referenced by AnnotateImage(), AppendImageFormat(), BlobToImage(), BlurImageChannel(), CanonicalXMLContent(), ClipImagePath(), ClonePixelCacheRepository(), ColorMatrixImage(), ConcatenateColorComponent(), ConcatentateHexColorComponent(), ConnectPixelCacheServer(), DeleteMagickRegistry(), DeskewImage(), DestroyPixelCache(), DistortImage(), DistributePixelCacheServer(), DrawClipPath(), DrawImage(), DrawPatternPath(), DrawPrimitive(), EncodePredefinedEntities(), FilterImageChannel(), FormatMagickSize(), FormatMagickTime(), FxChannelStatistics(), FxEvaluateSubexpression(), GaussianBlurImageChannel(), GetConfigureBlob(), GetConfigureOptions(), GetConfigurePaths(), GetExecutionPath(), GetEXIFProperty(), GetImageProperty(), GetLocaleExceptionMessage(), GetLocaleMessage(), GetLocaleOptions(), GetMagickHomeURL(), GetMagickProperty(), GetMagickPropertyLetter(), GetMagickRegistry(), GetPathTemplate(), IdentifyImage(), ImagesToBlob(), ImageToBlob(), InjectImageBlob(), InterpretImageFilename(), InvokeDelegate(), ListMagickResourceInfo(), ListTypeInfo(), LoadTypeLists(), MagickToMime(), MontageImageList(), MorphologyApply(), OpenBlob(), OpenPixelCache(), PolaroidImage(), PreviewImage(), RenderPostscript(), SelectiveBlurImageChannel(), SetImageProfile(), SetImageProgress(), SetMagickRegistry(), SetPixelCacheExtent(), StringToList(), SyncImageSettings(), ThrowMagickExceptionList(), ThumbnailImage(), TracePSClippath(), TraceSVGClippath(), TranslateEvent(), TranslateFilename(), VignetteImage(), XMLTreeInfoToXML(), and XMLTreeTagToXML().
MagickExport ssize_t FormatLocaleStringList | ( | char *restrict | string, |
const size_t | length, | ||
const char *restrict | format, | ||
va_list | operands | ||
) |
Referenced by FormatImageAttribute(), FormatImageProperty(), FormatLocaleString(), and FormatString().
MagickExport const LocaleInfo* GetLocaleInfo_ | ( | const char * | tag, |
ExceptionInfo * | exception | ||
) |
MagickExport const LocaleInfo** GetLocaleInfoList | ( | const char * | pattern, |
size_t * | number_messages, | ||
ExceptionInfo * | exception | ||
) |
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 | ||
) |
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 | ) |
References AcquireExceptionInfo(), DestroyExceptionInfo(), FormatLocaleString(), GetLocaleInfo_(), MaxTextExtent, and _LocaleInfo::message.
Referenced by GetLocaleExceptionMessage().
MagickExport LinkedListInfo* GetLocaleOptions | ( | const char * | filename, |
ExceptionInfo * | exception | ||
) |
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 | ) |
References GetMagickModule, LogMagickEvent(), MagickSignature, _LocaleInfo::message, _LocaleInfo::signature, and TraceEvent.
|
static |
MagickExport double InterpretLocaleValue | ( | const char *restrict | string, |
char **restrict | sentinal | ||
) |
Referenced by InterpretSiPrefixValue(), StringToDouble(), and StringToDoubleInterval().
MagickExport MagickBooleanType ListLocaleInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
|
static |
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 | ||
) |
MagickExport MagickBooleanType LocaleComponentGenesis | ( | void | ) |
References AcquireSemaphoreInfo(), locale_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickExport void LocaleComponentTerminus | ( | void | ) |
References AcquireSemaphoreInfo(), DestroySemaphoreInfo(), DestroySplayTree(), instantiate_locale, locale_list, locale_semaphore, LockSemaphoreInfo(), MagickFalse, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
References FormatLocaleFile(), and GetClientName().
Referenced by LoadLocaleList().
|
static |
References LocaleCompare().
Referenced by GetLocaleInfoList().
|
static |
References LocaleCompare().
Referenced by GetLocaleList().
|
static |
Referenced by GetLocaleInfo_(), InitializeLocaleList(), and LocaleComponentTerminus().
|
static |
|
static |
Referenced by GetLocaleInfoList(), GetLocaleList(), InitializeLocaleList(), LocaleComponentGenesis(), and LocaleComponentTerminus().
|
static |
Referenced by LoadLocaleLists().