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:

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)
MagickExport const LocaleInfoGetLocaleInfo_ (const char *tag, ExceptionInfo *exception)
static int LocaleInfoCompare (const void *x, const void *y)
MagickExport const LocaleInfo ** GetLocaleInfoList (const char *pattern, unsigned long *number_messages, ExceptionInfo *exception)
static int LocaleTagCompare (const void *x, const void *y)
MagickExport char ** GetLocaleList (const char *pattern, unsigned long *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 MagickBooleanType ListLocaleInfo (FILE *file, ExceptionInfo *exception)
static void ChopLocaleComponents (char *path, const unsigned long components)
static void * DestroyLocaleNode (void *locale_info)
static MagickBooleanType LoadLocaleList (const char *xml, const char *filename, const char *locale, const unsigned long depth, ExceptionInfo *exception)
MagickExport MagickBooleanType LocaleComponentGenesis (void)
MagickExport void LocaleComponentTerminus (void)

Variables

static const char * 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 62 of file locale.c.

Referenced by InitializeLocaleList().

#define MaxRecursionDepth   200

Definition at line 63 of file locale.c.


Function Documentation

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

Definition at line 689 of file locale.c.

Referenced by LoadLocaleList().

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

Definition at line 125 of file locale.c.

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

Referenced by LoadLocaleLists().

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

Definition at line 120 of file locale.c.

References DestroyStringInfo().

Referenced by DestroyLocaleOptions().

MagickExport const LocaleInfo* GetLocaleInfo_ ( const char *  tag,
ExceptionInfo exception 
)
MagickExport const LocaleInfo** GetLocaleInfoList ( const char *  pattern,
unsigned long *  number_messages,
ExceptionInfo exception 
)
MagickExport char** GetLocaleList ( const char *  pattern,
unsigned long *  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  ) 
static MagickBooleanType InitializeLocaleList ( ExceptionInfo exception  )  [static]
MagickExport MagickBooleanType ListLocaleInfo ( FILE *  file,
ExceptionInfo exception 
)
static MagickBooleanType LoadLocaleList ( const char *  xml,
const char *  filename,
const char *  locale,
const unsigned long  depth,
ExceptionInfo exception 
) [static]
static MagickBooleanType LoadLocaleLists ( const char *  filename,
const char *  locale,
ExceptionInfo exception 
)
MagickExport MagickBooleanType LocaleComponentGenesis ( void   ) 

Definition at line 1049 of file locale.c.

References AcquireSemaphoreInfo(), locale_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

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

Definition at line 211 of file locale.c.

References LocaleCompare().

Referenced by GetLocaleInfoList().

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

Definition at line 308 of file locale.c.

References LocaleCompare().

Referenced by GetLocaleList().


Variable Documentation

volatile MagickBooleanType instantiate_locale = MagickFalse [static]

Definition at line 87 of file locale.c.

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

SplayTreeInfo* locale_list = (SplayTreeInfo *) NULL [static]
const char* LocaleMap [static]
Initial value:
    "<?xml version=\"1.0\"?>"
    "<localemap>"
    "  <locale name=\"C\">"
    "    <Exception>"
    "     <Message name=\"\">"
    "     </Message>"
    "    </Exception>"
    "  </locale>"
    "</localemap>"

Definition at line 69 of file locale.c.

Referenced by LoadLocaleLists().


Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1