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
29 extern MagickPrivate MagickBooleanType
30 LocaleComponentGenesis(
void);
32 extern MagickPrivate
void
33 LocaleComponentTerminus(
void);
35 extern 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)));
42 static 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)));
53 static 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)