MagickCore  6.8.9
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/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"
Include dependency graph for locale.c:

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 SplayTreeInfoAcquireLocaleSplayTree (const char *filename, const char *locale, ExceptionInfo *exception)
 
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 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 SemaphoreInfolocale_semaphore = (SemaphoreInfo *) NULL
 
static SplayTreeInfolocale_cache = (SplayTreeInfo *) NULL
 

Macro Definition Documentation

#define LocaleFilename   "locale.xml"
#define MaxRecursionDepth   200

Function Documentation

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

Referenced by LoadLocaleCache().

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 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 
)
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
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().

static size_t MagickMin ( const size_t  x,
const size_t  y 
)
inlinestatic

Referenced by LoadLocaleCache().

Variable Documentation

const char* LocaleMap
static
Initial value:
=
"<?xml version=\"1.0\"?>"
"<localemap>"
" <locale name=\"C\">"
" <Exception>"
" <Message name=\"\">"
" </Message>"
" </Exception>"
" </locale>"
"</localemap>"

Referenced by AcquireLocaleSplayTree().