MagickCore 7.1.0
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"
 

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 LocaleLowercase (const int c)
 
MagickExport int LocaleNCompare (const char *p, const char *q, const size_t length)
 
MagickExport void LocaleUpper (char *string)
 
MagickExport int LocaleUppercase (const int c)
 
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.

Function Documentation

◆ AcquireLocaleSplayTree()

◆ ChopLocaleComponents()

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

Definition at line 1108 of file locale.c.

Referenced by LoadLocaleCache().

◆ DestroyLocaleNode()

static void * DestroyLocaleNode ( void *  locale_info)
static

◆ DestroyLocaleOptions()

◆ DestroyOptions()

static void * DestroyOptions ( void *  message)
static

Definition at line 286 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 326 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 466 of file locale.c.

References FormatLocaleStringList().

Referenced by AcquireTypeCache(), AnnotateImage(), AppendImageFormat(), AutoThresholdImage(), BlobToImage(), BlurImage(), CannyEdgeImage(), ClipImagePath(), ClonePixelCacheRepository(), ColorMatrixImage(), ConcatenateColorComponent(), ConcatentateHexColorComponent(), ConnectPixelCacheServer(), CustomStreamToImage(), DeskewImage(), DestroyPixelCache(), DistortImage(), DrawPatternPath(), DrawPrimitive(), EncodePredefinedEntities(), FormatMagickSize(), FormatMagickTime(), 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(), MagickToMime(), MontageImageList(), MorphologyApply(), OpenBlob(), OpenPixelCache(), PingBlob(), PolaroidImage(), PreviewImage(), RenderMVGContent(), RenderPostscript(), SelectiveBlurImage(), SetImageProgress(), SetPixelCacheExtent(), StringToStrings(), SubstituteXMLEntities(), ThrowMagickExceptionList(), ThumbnailImage(), TraceBezierCurve(), 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 417 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 1406 of file locale.c.

References LocaleToLowercase().

Referenced by AcquireStreamPixels(), AcquireVirtualMemory(), AppendImageFormat(), CoalesceImages(), CoderCompare(), CoderInfoCompare(), ColorCompare(), ColorInfoCompare(), CompareSplayTreeString(), ConfigureCompare(), ConfigureInfoCompare(), ConnectedComponentsImage(), DelegateCompare(), DelegateInfoCompare(), DrawPrimitive(), ExpandFilenames(), ExportCharPixel(), ExportDoublePixel(), ExportFloatPixel(), ExportLongLongPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportShortPixel(), FileCompare(), FileToBlob(), FileToImage(), FileToXML(), Get8BIMProperty(), GetChannelQualifier(), GetCoderInfo(), GetColorCompliance(), GetCommandOptionFlags(), GetCommandOptionInfo(), GetConfigureInfo(), GetConstantColour(), GetDelegateInfo(), GetEXIFProperty(), GetImageBoundingBox(), GetImageMinimumBoundingBox(), GetImgAttrToken(), GetLocaleInfo_(), GetLogInfo(), GetMagickInfo(), GetMagickProperty(), GetMVGMacros(), GetOperand(), GetPathComponent(), GetPolicyInfo(), GetQuantumInfo(), GetThresholdMapFile(), GetTypeInfo(), GetTypeInfoByFamily(), 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(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadPolicyCache(), LoadTypeCache(), LocaleInfoCompare(), LocaleTagCompare(), LogCompare(), LogInfoCompare(), MagicCompare(), MagicInfoCompare(), MagickCompare(), MagickInfoCompare(), MagnifyImage(), MaybeXYWH(), MontageImageList(), OpenBlob(), OpenPixelCache(), ParseCommandOption(), ParseKernelArray(), PatchCorruptProfile(), PingImages(), ProfileImage(), QueryColorCompliance(), ReadImage(), ReadImages(), RegisterStaticModule(), RenderMVGContent(), RenderType(), SetImageInfo(), SetImageInfoFromExtension(), SetImageOption(), SetImageProfileInternal(), SetImageProperty(), SetMagickSecurityPolicyValue(), SetPolicyValue(), StreamImagePixels(), ThrowException(), ThumbnailImage(), TranslateEvent(), TypeCompare(), TypeInfoCompare(), UnregisterMagickInfo(), UnregisterStaticModule(), WriteImage(), and WriteTo8BimProfile().

◆ LocaleComponentGenesis()

MagickPrivate MagickBooleanType LocaleComponentGenesis ( void  )

Definition at line 1628 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 1131 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 563 of file locale.c.

References LocaleCompare().

Referenced by GetLocaleInfoList().

◆ LocaleLower()

MagickExport void LocaleLower ( char *  string)

◆ LocaleLowercase()

MagickExport int LocaleLowercase ( const int  c)

Definition at line 1482 of file locale.c.

References LocaleToLowercase().

◆ LocaleNCompare()

◆ LocaleTagCompare()

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

Definition at line 661 of file locale.c.

References LocaleCompare().

Referenced by GetLocaleList().

◆ LocaleUpper()

MagickExport void LocaleUpper ( char *  string)

Definition at line 1573 of file locale.c.

References LocaleToUppercase().

Referenced by InvokeDelegate(), SetImageInfo(), and SetImageInfoFromExtension().

◆ LocaleUppercase()

MagickExport int LocaleUppercase ( const int  c)

Definition at line 1605 of file locale.c.

References LocaleToUppercase().

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 78 of file locale.c.

Referenced by AcquireLocaleSplayTree().