MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
locale.c File Reference
Include dependency graph for locale.c:

Go to the source code of this file.

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)
 
MagickPrivate ssize_t FormatLocaleFileList (FILE *file, const char *magick_restrict format, va_list operands)
 
MagickExport ssize_t FormatLocaleFile (FILE *file, const char *magick_restrict format,...)
 
MagickPrivate ssize_t FormatLocaleStringList (char *magick_restrict string, const size_t length, const char *magick_restrict format, va_list operands)
 
MagickExport ssize_t FormatLocaleString (char *magick_restrict string, const size_t length, const char *magick_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 *magick_restrict string, char **magick_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)
 
MagickExport int LocaleCompare (const char *p, const char *q)
 
MagickExport void LocaleLower (char *string)
 
MagickExport int LocaleNCompare (const char *p, const char *q, const size_t length)
 
MagickExport void LocaleUpper (char *string)
 
MagickPrivate MagickBooleanType LocaleComponentGenesis (void)
 
MagickPrivate void LocaleComponentTerminus (void)
 

Variables

static const char * LocaleMap
 
static SemaphoreInfolocale_semaphore = (SemaphoreInfo *) NULL
 
static SplayTreeInfolocale_cache = (SplayTreeInfo *) NULL
 

Macro Definition Documentation

◆ LocaleFilename

#define LocaleFilename   "locale.xml"

Definition at line 72 of file locale.c.

Referenced by IsLocaleTreeInstantiated().

◆ MaxRecursionDepth

#define MaxRecursionDepth   200

Definition at line 73 of file locale.c.

Function Documentation

◆ AcquireLocaleSplayTree()

static SplayTreeInfo* AcquireLocaleSplayTree ( const char *  filename,
const char *  locale,
ExceptionInfo exception 
)
static

◆ ChopLocaleComponents()

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

Definition at line 1111 of file locale.c.

Referenced by LoadLocaleCache().

◆ DestroyLocaleNode()

static void* DestroyLocaleNode ( void *  locale_info)
static

◆ DestroyLocaleOptions()

MagickExport LinkedListInfo* DestroyLocaleOptions ( LinkedListInfo messages)

◆ DestroyOptions()

static void* DestroyOptions ( void *  message)
static

Definition at line 294 of file locale.c.

References DestroyStringInfo().

Referenced by DestroyLocaleOptions().

◆ FormatLocaleFile()

◆ FormatLocaleFileList()

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

Definition at line 333 of file locale.c.

Referenced by FormatLocaleFile().

◆ FormatLocaleString()

MagickExport ssize_t FormatLocaleString ( char *magick_restrict  string,
const size_t  length,
const char *magick_restrict  format,
  ... 
)

Definition at line 473 of file locale.c.

References FormatLocaleStringList().

Referenced by AcquireTypeCache(), AnnotateImage(), AppendImageFormat(), AutoThresholdImage(), BlobToImage(), BlurImage(), CannyEdgeImage(), CanonicalXMLContent(), ClipImagePath(), ClonePixelCacheRepository(), ColorMatrixImage(), ConcatenateColorComponent(), ConcatentateHexColorComponent(), ConnectPixelCacheServer(), CustomStreamToImage(), DeskewImage(), DestroyPixelCache(), DistortImage(), DistributePixelCacheServer(), DrawClipPath(), DrawImage(), DrawPatternPath(), DrawPrimitive(), EncodePredefinedEntities(), FormatMagickSize(), FormatMagickTime(), FxChannelStatistics(), FxEvaluateSubexpression(), GaussianBlurImage(), GetConfigureOptions(), GetConfigurePaths(), GetExecutionPath(), GetEXIFProperty(), GetLocaleExceptionMessage(), GetLocaleMessage(), GetLocaleOptions(), GetMagickHomeURL(), GetMagickProperty(), GetMagickPropertyLetter(), GetPageGeometry(), GetPathTemplate(), GetStructuralSimilarityDistortion(), HoughLineImage(), IdentifyImage(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), InjectImageBlob(), InterpretImageFilename(), InterpretImageProperties(), InvokeDelegate(), ListMagickResourceInfo(), ListTypeInfo(), LogPixelChannels(), MagickReadDirectory(), MagickToMime(), MontageImageList(), MorphologyApply(), OpenBlob(), OpenPixelCache(), PolaroidImage(), PreviewImage(), RenderPostscript(), RenderType(), SelectiveBlurImage(), SetImageProfileInternal(), SetImageProgress(), SetPixelCacheExtent(), StringToList(), ThrowMagickExceptionList(), ThumbnailImage(), TracePSClippath(), TraceSVGClippath(), TranslateEvent(), TranslateFilename(), VignetteImage(), XMLTreeInfoToXML(), and XMLTreeTagToXML().

◆ FormatLocaleStringList()

MagickPrivate ssize_t FormatLocaleStringList ( char *magick_restrict  string,
const size_t  length,
const char *magick_restrict  format,
va_list  operands 
)

Definition at line 424 of file locale.c.

Referenced by FormatLocaleString().

◆ GetLocaleInfo_()

◆ GetLocaleInfoList()

◆ GetLocaleList()

◆ GetLocaleMessage()

MagickExport const char* GetLocaleMessage ( const char *  tag)

◆ GetLocaleOptions()

◆ GetLocaleValue()

MagickExport const char* GetLocaleValue ( const LocaleInfo locale_info)

◆ InterpretLocaleValue()

MagickExport double InterpretLocaleValue ( const char *magick_restrict  string,
char **magick_restrict  sentinal 
)

◆ IsLocaleTreeInstantiated()

◆ ListLocaleInfo()

MagickExport MagickBooleanType ListLocaleInfo ( FILE *  file,
ExceptionInfo exception 
)

◆ LoadLocaleCache()

◆ LocaleCompare()

MagickExport int LocaleCompare ( const char *  p,
const char *  q 
)

Definition at line 1409 of file locale.c.

References AsciiMap.

Referenced by AcquireStreamPixels(), AcquireVirtualMemory(), AppendImageFormat(), CoderCompare(), CoderInfoCompare(), ColorCompare(), ColorInfoCompare(), CompareSplayTreeString(), ComplexImages(), ConfigureCompare(), ConfigureInfoCompare(), DelegateCompare(), DelegateInfoCompare(), DrawImage(), ExpandFilenames(), ExportCharPixel(), ExportDoublePixel(), ExportFloatPixel(), ExportLongLongPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportShortPixel(), FileCompare(), FileToBlob(), FileToImage(), FileToXML(), ForwardFourierTransformImage(), FxEvaluateSubexpression(), FxGetSymbol(), Get8BIMProperty(), GetCoderInfo(), GetColorCompliance(), GetCommandOptionFlags(), GetCommandOptionInfo(), GetConfigureInfo(), GetDelegateInfo(), GetEXIFProperty(), GetLocaleInfo_(), GetLogInfo(), GetMagickInfo(), GetMagickProperty(), GetPolicyInfo(), GetQuantumInfo(), GetThresholdMapFile(), GetTypeInfo(), GetTypeInfoByFamily(), GetTypeList(), GlobExpression(), GradientImage(), HuffmanEncodeImage(), IdentifyImage(), ImageToFile(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportLongLongPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportShortPixel(), InvokeDelegate(), InvokeDynamicImageFilter(), IsOptionMember(), IsPathAccessible(), IsSkipTag(), IsStringFalse(), IsStringTrue(), IsTaintImage(), ListCoderInfo(), ListColorInfo(), ListConfigureInfo(), ListDelegateInfo(), ListFiles(), ListLocaleInfo(), ListLogInfo(), ListMagicInfo(), ListPolicyInfo(), ListTypeInfo(), LoadCoderCache(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMagicCache(), LoadPolicyCache(), LoadTypeCache(), LocaleInfoCompare(), LocaleTagCompare(), LogCompare(), LogInfoCompare(), MagicCompare(), MagicInfoCompare(), MagickCompare(), MagickInfoCompare(), MontageImageList(), OpenBlob(), OpenPixelCache(), ParseCommandOption(), ParseKernelArray(), PingImages(), ProfileImage(), QueryColorCompliance(), ReadImage(), ReadImages(), RenderType(), SetImageInfo(), SetImageOption(), SetImageProfileInternal(), SetImageProperty(), StreamImagePixels(), ThrowException(), ThumbnailImage(), TranslateEvent(), TypeCompare(), TypeInfoCompare(), UnregisterMagickInfo(), WriteImage(), and WriteTo8BimProfile().

◆ LocaleComponentGenesis()

MagickPrivate MagickBooleanType LocaleComponentGenesis ( void  )

Definition at line 1595 of file locale.c.

References AcquireSemaphoreInfo(), locale_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

◆ LocaleComponentTerminus()

◆ LocaleFatalErrorHandler()

static void LocaleFatalErrorHandler ( const ExceptionType   magick_unusedseverity,
const char *  reason,
const char *  description 
)
static

Definition at line 1134 of file locale.c.

References FormatLocaleFile(), GetClientName(), and magick_unreferenced.

Referenced by LoadLocaleCache().

◆ LocaleInfoCompare()

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

Definition at line 570 of file locale.c.

References LocaleCompare().

Referenced by GetLocaleInfoList().

◆ LocaleLower()

MagickExport void LocaleLower ( char *  string)

◆ LocaleNCompare()

◆ LocaleTagCompare()

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

Definition at line 667 of file locale.c.

References LocaleCompare().

Referenced by GetLocaleList().

◆ LocaleUpper()

MagickExport void LocaleUpper ( char *  string)

Definition at line 1567 of file locale.c.

Referenced by InvokeDelegate(), and SetImageInfo().

Variable Documentation

◆ locale_cache

SplayTreeInfo* locale_cache = (SplayTreeInfo *) NULL
static

◆ locale_semaphore

◆ LocaleMap

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

Definition at line 79 of file locale.c.

Referenced by AcquireLocaleSplayTree().