MagickCore  6.7.5
locale.c File Reference
Include dependency graph for locale.c:

Go to the source code of this file.

Defines

#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)
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 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)
MagickPrivate MagickBooleanType LocaleComponentGenesis (void)
MagickPrivate 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

Define Documentation

#define LocaleFilename   "locale.xml"

Definition at line 65 of file locale.c.

Referenced by InitializeLocaleList().

#define MaxRecursionDepth   200

Definition at line 66 of file locale.c.


Function Documentation

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

Definition at line 1015 of file locale.c.

Referenced by LoadLocaleList().

static void* DestroyLocaleNode ( void *  locale_info) [static]
MagickExport LinkedListInfo* DestroyLocaleOptions ( LinkedListInfo messages)

Definition at line 206 of file locale.c.

References LogMagickEvent(), TraceEvent, GetMagickModule, DestroyLinkedList(), and DestroyOptions().

Referenced by LoadLocaleLists().

static void* DestroyOptions ( void *  message) [static]

Definition at line 201 of file locale.c.

References DestroyStringInfo().

Referenced by DestroyLocaleOptions().

MagickPrivate ssize_t FormatLocaleFileList ( FILE *  file,
const char *restrict  format,
va_list  operands 
)

Definition at line 240 of file locale.c.

MagickExport ssize_t FormatLocaleString ( char *restrict  string,
const size_t  length,
const char *restrict  format,
  ... 
)
MagickPrivate ssize_t FormatLocaleStringList ( char *restrict  string,
const size_t  length,
const char *restrict  format,
va_list  operands 
)

Definition at line 331 of file locale.c.

MagickExport const char* GetLocaleMessage ( const char *  tag)
MagickExport const char* GetLocaleValue ( const LocaleInfo locale_info)
MagickExport double InterpretLocaleValue ( const char *restrict  string,
char **restrict  sentinal 
)

Definition at line 881 of file locale.c.

Referenced by StringToDouble(), StringToDoubleInterval(), and InterpretSiPrefixValue().

MagickExport MagickBooleanType ListLocaleInfo ( FILE *  file,
ExceptionInfo exception 
)
static MagickBooleanType LoadLocaleLists ( const char *  filename,
const char *  locale,
ExceptionInfo exception 
)
MagickPrivate MagickBooleanType LocaleComponentGenesis ( void  )

Definition at line 1391 of file locale.c.

References AcquireSemaphoreInfo(), locale_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

MagickPrivate void LocaleComponentTerminus ( void  )
static void LocaleFatalErrorHandler ( const ExceptionType   magick_unusedseverity,
const char *  reason,
const char *  description 
) [static]

Definition at line 1053 of file locale.c.

References FormatLocaleFile(), and GetClientName().

Referenced by LoadLocaleList().

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

Definition at line 474 of file locale.c.

References LocaleCompare().

Referenced by GetLocaleInfoList().

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

Definition at line 571 of file locale.c.

References LocaleCompare().

Referenced by GetLocaleList().


Variable Documentation

volatile MagickBooleanType instantiate_locale = MagickFalse [static]

Definition at line 102 of file locale.c.

Referenced by GetLocaleInfo_(), InitializeLocaleList(), and LocaleComponentTerminus().

const char* LocaleMap = "</localemap>" [static]

Definition at line 79 of file locale.c.

Referenced by LoadLocaleLists().