MagickCore 7.0.10
locale_.h
Go to the documentation of this file.
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.
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 WizardsToolkit locale methods.
17*/
18#ifndef _WIZARDSTOOLKIT_LOCALE_H
19#define _WIZARDSTOOLKIT_LOCALE_H
20
21#include "wizard/hashmap.h"
22
23#if defined(__cplusplus) || defined(c_plusplus)
24extern "C" {
25#endif
26
27#if !defined(WizardLocaleExtent)
28# define WizardLocaleExtent 256
29#endif
30
31typedef struct _LocaleInfo
32{
33 char
37
40
41 struct _LocaleInfo
43 *next; /* deprecated, use GetLocaleInfoList() */
44
45 size_t
48
49extern WizardExport char
50 **GetLocaleList(const char *,size_t *,ExceptionInfo *);
51
52extern WizardExport const char
53 *GetLocaleMessage(const char *);
54
55extern WizardExport const LocaleInfo
56 *GetLocaleInfo_(const char *,ExceptionInfo *),
57 **GetLocaleInfoList(const char *,size_t *,ExceptionInfo *);
58
59extern WizardExport double
60 InterpretLocaleValue(const char *,char **);
61
64 *GetLocaleOptions(const char *,ExceptionInfo *);
65
69
70extern WizardExport ssize_t
71 FormatLocaleFile(FILE *,const char *wizard_restrict,...)
72 wizard_attribute((__format__ (__printf__,2,3))),
73 FormatLocaleFileList(FILE *,const char *wizard_restrict,va_list)
74 wizard_attribute((__format__ (__printf__,2,0))),
76 const char *,...) wizard_attribute((__format__ (__printf__,3,4))),
77 FormatLocaleStringList(char *restrict,const size_t,
78 const char *,va_list) wizard_attribute((__format__ (__printf__,3,0)));
79
80extern WizardExport void
82
83#if defined(__cplusplus) || defined(c_plusplus)
84}
85#endif
86
87#endif
WizardExport const char * GetLocaleMessage(const char *)
Definition locale.c:739
WizardExport WizardBooleanType ListLocaleInfo(FILE *, ExceptionInfo *)
WizardExport ssize_t FormatLocaleStringList(char *restrict, const size_t, const char *, va_list) wizard_attribute((__format__(__printf__
struct _LocaleInfo LocaleInfo
WizardExport double InterpretLocaleValue(const char *, char **)
Definition locale.c:969
WizardExport const LocaleInfo ** GetLocaleInfoList(const char *, size_t *, ExceptionInfo *)
Definition locale.c:579
WizardExport const LocaleInfo * GetLocaleInfo_(const char *, ExceptionInfo *)
WizardExport char ** GetLocaleList(const char *, size_t *, ExceptionInfo *)
Definition locale.c:674
WizardExport LinkedListInfo * GetLocaleOptions(const char *, ExceptionInfo *)
Definition locale.c:787
WizardExport ssize_t FormatLocaleString(char *wizard_restrict, const size_t, const char *,...) wizard_attribute((__format__(__printf__
WizardExport ssize_t FormatLocaleFile(FILE *, const char *wizard_restrict,...) wizard_attribute((__format__(__printf__
WizardExport ssize_t FormatLocaleFileList(FILE *, const char *wizard_restrict, va_list) wizard_attribute((__format__(__printf__
WizardExport ssize_t WizardExport void LocaleComponentTerminus(void)
Definition locale.c:1420
WizardExport WizardBooleanType LocaleComponentGenesis(void)
Definition locale.c:1392
WizardExport LinkedListInfo * DestroyLocaleOptions(LinkedListInfo *)
#define wizard_attribute(x)
#define WizardExport
char * tag
Definition locale_.h:35
size_t signature
Definition locale_.h:46
char * message
Definition locale_.h:36
WizardBooleanType stealth
Definition locale_.h:39
struct _LocaleInfo * next
Definition locale_.h:43
struct _LocaleInfo * previous
Definition locale_.h:41
char * path
Definition locale_.h:34
#define wizard_restrict
Definition studio.h:71
WizardBooleanType
Definition wizard-type.h:26