MagickCore  6.8.5
locale.c File Reference
#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"
Include dependency graph for locale.c:

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 LinkedListInfoDestroyLocaleOptions (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 LocaleInfoGetLocaleInfo_ (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 LinkedListInfoGetLocaleOptions (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 SemaphoreInfolocale_semaphore = (SemaphoreInfo *) NULL
static SplayTreeInfolocale_list = (SplayTreeInfo *) NULL
static volatile MagickBooleanType instantiate_locale = MagickFalse

Macro Definition Documentation

#define LocaleFilename   "locale.xml"

Referenced by InitializeLocaleList().

#define MaxRecursionDepth   200

Function Documentation

static void ChopLocaleComponents ( char *  path,
const size_t  components 
)
static

Referenced by LoadLocaleList().

static void* DestroyLocaleNode ( void *  locale_info)
static
static void* DestroyOptions ( void *  message)
static

References DestroyStringInfo().

Referenced by DestroyLocaleOptions().

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 
)
MagickExport const char* GetLocaleValue ( const LocaleInfo locale_info)
MagickExport double InterpretLocaleValue ( const char *restrict  string,
char **restrict  sentinal 
)
MagickExport MagickBooleanType LocaleComponentGenesis ( void  )
static void LocaleFatalErrorHandler ( const ExceptionType   magick_unusedseverity,
const char *  reason,
const char *  description 
)
static

References FormatLocaleFile(), and GetClientName().

Referenced by LoadLocaleList().

static int LocaleInfoCompare ( const void *  x,
const void *  y 
)
static

References LocaleCompare().

Referenced by GetLocaleInfoList().

static int LocaleTagCompare ( const void *  x,
const void *  y 
)
static

References LocaleCompare().

Referenced by GetLocaleList().

Variable Documentation

volatile MagickBooleanType instantiate_locale = MagickFalse
static
const char* LocaleMap = "</localemap>"
static

Referenced by LoadLocaleLists().