18#ifndef MAGICKCORE_LOCALE_PRIVATE_H
19#define MAGICKCORE_LOCALE_PRIVATE_H
21#if defined(__cplusplus) || defined(c_plusplus)
25#if !defined(MagickLocaleExtent)
26# define MagickLocaleExtent 256
29extern MagickPrivate MagickBooleanType
30 LocaleComponentGenesis(
void);
32extern MagickPrivate
void
33 LocaleComponentTerminus(
void);
35extern MagickPrivate ssize_t
36 FormatLocaleFileList(FILE *,
const char *magick_restrict,va_list)
37 magick_attribute((__format__ (__printf__,2,0))),
38 FormatLocaleStringList(
char *magick_restrict,
const size_t,
39 const char *magick_restrict,va_list)
40 magick_attribute((__format__ (__printf__,3,0)));
42static inline int LocaleToLowercase(
const int c)
44 if ((c == EOF) || (c != (
unsigned char) c))
46#if defined(MAGICKCORE_LOCALE_SUPPORT)
47 if (c_locale != (locale_t) NULL)
48 return(tolower_l((
int) ((
unsigned char) c),c_locale));
50 return(tolower((
int) ((
unsigned char) c)));
53static inline int LocaleToUppercase(
const int c)
55 if ((c == EOF) || (c != (
unsigned char) c))
57#if defined(MAGICKCORE_LOCALE_SUPPORT)
58 if (c_locale != (locale_t) NULL)
59 return(toupper_l((
int) ((
unsigned char) c),c_locale));
61 return(toupper((
int) ((
unsigned char) c)));
64#if defined(__cplusplus) || defined(c_plusplus)