MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
locale_.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2018 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7 
8  https://www.imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore locale methods.
17 */
18 #ifndef MAGICKCORE_LOCALE_H
19 #define MAGICKCORE_LOCALE_H
20 
21 #include "magick/hashmap.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 typedef struct _LocaleInfo
28 {
29  char
30  *path,
31  *tag,
32  *message;
33 
36 
37  struct _LocaleInfo
38  *previous,
39  *next; /* deprecated, use GetLocaleInfoList() */
40 
41  size_t
43 } LocaleInfo;
44 
45 extern MagickExport char
46  **GetLocaleList(const char *,size_t *,ExceptionInfo *);
47 
48 extern MagickExport const char
49  *GetLocaleMessage(const char *);
50 
51 extern MagickExport const LocaleInfo
52  *GetLocaleInfo_(const char *,ExceptionInfo *),
53  **GetLocaleInfoList(const char *,size_t *,ExceptionInfo *);
54 
55 extern MagickExport double
56  InterpretLocaleValue(const char *magick_restrict,char **magick_restrict);
57 
58 extern MagickExport int
59  LocaleCompare(const char *,const char *),
60  LocaleNCompare(const char *,const char *,const size_t);
61 
64  *GetLocaleOptions(const char *,ExceptionInfo *);
65 
67  ListLocaleInfo(FILE *,ExceptionInfo *),
69 
70 extern MagickExport ssize_t
71  FormatLocaleFile(FILE *,const char *magick_restrict,...)
72  magick_attribute((__format__ (__printf__,2,3))),
73  FormatLocaleFileList(FILE *,const char *magick_restrict,va_list)
74  magick_attribute((__format__ (__printf__,2,0))),
75  FormatLocaleString(char *magick_restrict,const size_t,
76  const char *magick_restrict,...)
77  magick_attribute((__format__ (__printf__,3,4))),
78  FormatLocaleStringList(char *magick_restrict,const size_t,
79  const char *magick_restrict,
80  va_list) magick_attribute((__format__ (__printf__,3,0)));
81 
82 extern MagickExport void
84  LocaleLower(char *),
85  LocaleUpper(char *);
86 
87 #if defined(__cplusplus) || defined(c_plusplus)
88 }
89 #endif
90 
91 #endif
#define magick_restrict
Definition: MagickCore.h:41
MagickExport ssize_t MagickExport void LocaleLower(char *)
MagickExport ssize_t FormatLocaleString(char *magick_restrict, const size_t, const char *magick_restrict,...) magick_attribute((__format__(__printf__
Definition: exception.h:102
MagickExport MagickBooleanType LocaleComponentGenesis(void)
Definition: locale.c:1626
MagickExport ssize_t FormatLocaleFile(FILE *, const char *magick_restrict,...) magick_attribute((__format__(__printf__
MagickExport int LocaleNCompare(const char *, const char *, const size_t)
Definition: locale.c:1540
Definition: hashmap.c:77
MagickExport int LocaleCompare(const char *, const char *)
MagickExport ssize_t MagickExport void LocaleComponentTerminus(void)
MagickBooleanType
Definition: magick-type.h:189
char * message
Definition: locale_.h:30
MagickExport const LocaleInfo * GetLocaleInfo_(const char *, ExceptionInfo *)
MagickExport ssize_t FormatLocaleStringList(char *magick_restrict, const size_t, const char *magick_restrict, va_list) magick_attribute((__format__(__printf__
char * tag
Definition: locale_.h:30
MagickExport const char * GetLocaleMessage(const char *)
Definition: locale.c:776
size_t signature
Definition: locale_.h:42
MagickExport double InterpretLocaleValue(const char *magick_restrict, char **magick_restrict)
MagickExport const LocaleInfo ** GetLocaleInfoList(const char *, size_t *, ExceptionInfo *)
Definition: locale.c:616
MagickExport LinkedListInfo * DestroyLocaleOptions(LinkedListInfo *)
struct _LocaleInfo * previous
Definition: locale_.h:37
MagickExport char ** GetLocaleList(const char *, size_t *, ExceptionInfo *)
Definition: locale.c:711
MagickExport MagickBooleanType magick_attribute((deprecated))
MagickExport LinkedListInfo * GetLocaleOptions(const char *, ExceptionInfo *)
Definition: locale.c:824
struct _LocaleInfo * next
Definition: locale_.h:37
MagickExport MagickBooleanType ListLocaleInfo(FILE *, ExceptionInfo *)
char * path
Definition: locale_.h:30
struct _LocaleInfo LocaleInfo
MagickExport ssize_t FormatLocaleFileList(FILE *, const char *magick_restrict, va_list) magick_attribute((__format__(__printf__
#define MagickExport
Definition: method-attribute.h:98
MagickBooleanType stealth
Definition: locale_.h:35
Definition: locale_.h:27
MagickExport ssize_t MagickExport void LocaleUpper(char *)
Definition: locale.c:1598