MagickCore 6.9.13
Loading...
Searching...
No Matches
locale_.h
1/*
2 Copyright 1999 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. You may
6 obtain a copy of the License at
7
8 https://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)
24extern "C" {
25#endif
26
27typedef struct _LocaleInfo
28{
29 char
30 *path,
31 *tag,
32 *message;
33
34 MagickBooleanType
35 stealth;
36
37 struct _LocaleInfo
38 *previous,
39 *next; /* deprecated, use GetLocaleInfoList() */
40
41 size_t
42 signature;
44
45extern MagickExport char
46 **GetLocaleList(const char *,size_t *,ExceptionInfo *);
47
48extern MagickExport const char
49 *GetLocaleMessage(const char *);
50
51extern MagickExport const LocaleInfo
52 *GetLocaleInfo_(const char *,ExceptionInfo *),
53 **GetLocaleInfoList(const char *,size_t *,ExceptionInfo *);
54
55extern MagickExport double
56 InterpretLocaleValue(const char *magick_restrict,char **magick_restrict);
57
58extern MagickExport int
59 LocaleCompare(const char *,const char *) magick_attribute((__pure__)),
60 LocaleLowercase(const int),
61 LocaleNCompare(const char *,const char *,const size_t)
62 magick_attribute((__pure__)),
63 LocaleUppercase(const int);
64
65extern MagickExport LinkedListInfo
66 *DestroyLocaleOptions(LinkedListInfo *),
67 *GetLocaleOptions(const char *,ExceptionInfo *);
68
69extern MagickExport MagickBooleanType
70 ListLocaleInfo(FILE *,ExceptionInfo *),
71 LocaleComponentGenesis(void);
72
73extern MagickExport ssize_t
74 FormatLocaleFile(FILE *,const char *magick_restrict,...)
75 magick_attribute((__format__ (__printf__,2,3))),
76 FormatLocaleFileList(FILE *,const char *magick_restrict,va_list)
77 magick_attribute((__format__ (__printf__,2,0))),
78 FormatLocaleString(char *magick_restrict,const size_t,
79 const char *magick_restrict,...)
80 magick_attribute((__format__ (__printf__,3,4))),
81 FormatLocaleStringList(char *magick_restrict,const size_t,
82 const char *magick_restrict,
83 va_list) magick_attribute((__format__ (__printf__,3,0)));
84
85extern MagickExport void
86 LocaleComponentTerminus(void),
87 LocaleLower(char *),
88 LocaleUpper(char *);
89
90#if defined(__cplusplus) || defined(c_plusplus)
91}
92#endif
93
94#endif