MagickCore
6.8.9
|
#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/nt-base-private.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"
#include "magick/xml-tree-private.h"
Macros | |
#define | LocaleFilename "locale.xml" |
#define | MaxRecursionDepth 200 |
Functions | |
static MagickBooleanType | IsLocaleTreeInstantiated (ExceptionInfo *) |
static MagickBooleanType | LoadLocaleCache (SplayTreeInfo *, const char *, const char *, const char *, const size_t, ExceptionInfo *) |
static void * | DestroyLocaleNode (void *locale_info) |
static SplayTreeInfo * | AcquireLocaleSplayTree (const char *filename, const char *locale, ExceptionInfo *exception) |
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 | LocaleFatalErrorHandler (const ExceptionType magick_unused(severity), const char *reason, const char *description) |
static size_t | MagickMin (const size_t x, const size_t y) |
MagickExport MagickBooleanType | LocaleComponentGenesis (void) |
MagickExport void | LocaleComponentTerminus (void) |
Variables | |
static const char * | LocaleMap |
static SemaphoreInfo * | locale_semaphore = (SemaphoreInfo *) NULL |
static SplayTreeInfo * | locale_cache = (SplayTreeInfo *) NULL |
#define LocaleFilename "locale.xml" |
Referenced by IsLocaleTreeInstantiated().
#define MaxRecursionDepth 200 |
|
static |
References CompareSplayTreeString(), DestroyLocaleNode(), DestroyLocaleOptions(), GetLocaleOptions(), GetNextValueInLinkedList(), GetNumberOfNodesInSplayTree(), GetStringInfoDatum(), GetStringInfoPath(), LoadLocaleCache(), locale_cache, LocaleMap, MagickTrue, NewSplayTree(), ResourceLimitFatalError, and ThrowFatalException.
Referenced by IsLocaleTreeInstantiated().
|
static |
Referenced by LoadLocaleCache().
|
static |
References DestroyString(), _LocaleInfo::message, _LocaleInfo::path, RelinquishMagickMemory(), and _LocaleInfo::tag.
Referenced by AcquireLocaleSplayTree().
MagickExport LinkedListInfo* DestroyLocaleOptions | ( | LinkedListInfo * | messages | ) |
References DestroyLinkedList(), DestroyOptions(), GetMagickModule, LogMagickEvent(), and TraceEvent.
Referenced by AcquireLocaleSplayTree().
|
static |
References DestroyStringInfo().
Referenced by DestroyLocaleOptions().
MagickExport ssize_t FormatLocaleFile | ( | FILE * | file, |
const char *restrict | format, | ||
... | |||
) |
References FormatLocaleFileList().
Referenced by AcquireResizeFilter(), Classify(), CloseMagickLog(), DefaultErrorHandler(), DefaultFatalErrorHandler(), DefaultWarningHandler(), DestroyLogElement(), DistortImage(), ExternalDelegateCommand(), 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(), PrintChannelLocations(), PrintChannelMoments(), PrintChannelPerceptualHash(), PrintChannelStatistics(), PrintStringInfo(), RenderPostscript(), ResamplePixelColor(), ScaleGeometryKernelInfo(), ScaleResampleFilter(), ShowKernelInfo(), SparseColorImage(), 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 AcquireTypeCache(), AnnotateImage(), AppendImageFormat(), BlobToImage(), BlurImageChannel(), CannyEdgeImage(), CanonicalXMLContent(), ClipImagePath(), ClonePixelCacheRepository(), ColorMatrixImage(), ConcatenateColorComponent(), ConcatentateHexColorComponent(), ConnectPixelCacheServer(), DeleteMagickRegistry(), DeskewImage(), DestroyPixelCache(), DistortImage(), DistributePixelCacheServer(), DrawClipPath(), DrawPatternPath(), DrawPrimitive(), EncodePredefinedEntities(), FilterImageChannel(), FormatMagickSize(), FormatMagickTime(), FxChannelStatistics(), FxEvaluateSubexpression(), GaussianBlurImageChannel(), GetConfigureBlob(), GetConfigureOptions(), GetConfigurePaths(), GetExecutionPath(), GetEXIFProperty(), GetImageProperty(), GetLocaleExceptionMessage(), GetLocaleMessage(), GetLocaleOptions(), GetMagickHomeURL(), GetMagickProperty(), GetMagickPropertyLetter(), GetMagickRegistry(), GetOpenCLCachedFilesDirectory(), GetPathTemplate(), HoughLineImage(), IdentifyImage(), ImagesToBlob(), ImageToBlob(), InjectImageBlob(), InterpretImageFilename(), InvokeDelegate(), ListMagickResourceInfo(), ListTypeInfo(), MagickToMime(), MontageImageList(), MorphologyApply(), OpenBlob(), OpenCLLog(), OpenCLLogException(), OpenPixelCache(), PolaroidImage(), PreviewImage(), RenderMVGContent(), RenderPostscript(), SelectiveBlurImageChannel(), SetImageProfileInternal(), 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 | ||
) |
References GetNextValueInSplayTree(), GetValueFromSplayTree(), IsLocaleTreeInstantiated(), locale_cache, locale_semaphore, LocaleCompare(), LockSemaphoreInfo(), MagickFalse, ResetSplayTreeIterator(), and UnlockSemaphoreInfo().
Referenced by GetLocaleInfoList(), GetLocaleList(), and GetLocaleMessage().
MagickExport const LocaleInfo** GetLocaleInfoList | ( | const char * | pattern, |
size_t * | number_messages, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), GetLocaleInfo_(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GlobExpression(), locale_cache, 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_cache, 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 AcquireLocaleSplayTree().
MagickExport const char* GetLocaleValue | ( | const LocaleInfo * | locale_info | ) |
References GetMagickModule, LogMagickEvent(), MagickSignature, _LocaleInfo::message, _LocaleInfo::signature, and TraceEvent.
MagickExport double InterpretLocaleValue | ( | const char *restrict | string, |
char **restrict | sentinal | ||
) |
Referenced by InterpretSiPrefixValue(), StringToDouble(), and StringToDoubleInterval().
|
static |
MagickExport MagickBooleanType ListLocaleInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
static MagickBooleanType LoadLocaleCache | ( | SplayTreeInfo * | locale_cache, |
const char * | xml, | ||
const char * | filename, | ||
const char * | locale, | ||
const size_t | depth, | ||
ExceptionInfo * | exception | ||
) |
References AcquireMagickMemory(), AcquireString(), AddValueToSplayTree(), ChopLocaleComponents(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), DirectorySeparator, FileToXML(), GetMagickModule, GetNextToken(), GetPathComponent(), HeadPath, LocaleCompare(), LocaleFatalErrorHandler(), LocaleNCompare(), LogMagickEvent(), MagickFalse, MagickMin(), MagickSignature, MagickTrue, MaxTextExtent, _LocaleInfo::message, _LocaleInfo::path, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, ResourceLimitFatalError, SetFatalErrorHandler(), _LocaleInfo::signature, _LocaleInfo::tag, ThrowFatalException, and ThrowMagickException().
Referenced by AcquireLocaleSplayTree().
MagickExport MagickBooleanType LocaleComponentGenesis | ( | void | ) |
References AllocateSemaphoreInfo(), locale_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickExport void LocaleComponentTerminus | ( | void | ) |
References ActivateSemaphoreInfo(), DestroySemaphoreInfo(), DestroySplayTree(), locale_cache, locale_semaphore, LockSemaphoreInfo(), and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
References FormatLocaleFile(), GetClientName(), and magick_unreferenced.
Referenced by LoadLocaleCache().
|
static |
References LocaleCompare().
Referenced by GetLocaleInfoList().
|
static |
References LocaleCompare().
Referenced by GetLocaleList().
|
inlinestatic |
Referenced by LoadLocaleCache().
|
static |
|
static |
|
static |
Referenced by AcquireLocaleSplayTree().