locale.library: support opening both native and english catalogs
[AROS.git] / workbench / libs / locale / locale.conf
blobaea9097bc7e0faa40027aa080cc11e428bd324fc
1 ##begin config
2 version 50.7
3 libbasetype struct IntLocaleBase
4 libbasetypeextern struct LocaleBase
5 options noexpunge
6 ##end config
8 ##begin cdef
9 #include <utility/hooks.h>
10 #include <dos/datetime.h>
11 #include <libraries/locale.h>
12 #include <stdarg.h> /* For va_list in VNewRawDoFmt */
14 __BEGIN_DECLS
16 struct Catalog *OpenCatalog
18     const struct Locale  *locale,
19     CONST_STRPTR name,
20     Tag             tag1,
21     ...
24 __END_DECLS
26 ##end cdef
28 ##begin cdefprivate
29 #include "locale_intern.h"
30 ##end cdefprivate
32 ##begin functionlist
33 .version 39
35 void CloseCatalog(struct Catalog *catalog) (A0)
36 void CloseLocale(struct Locale *locale) (A0)
37 ULONG ConvToLower(const struct Locale *locale, ULONG character) (A0, D0)
38 ULONG ConvToUpper(const struct Locale *locale, ULONG character) (A0, D0)
39 void FormatDate(const struct Locale *locale, CONST_STRPTR formatString, const struct DateStamp *date, const struct Hook *hook) (A0, A1, A2, A3)
40 APTR FormatString(const struct Locale *locale, CONST_STRPTR fmtTemplate, CONST_APTR dataStream, const struct Hook *putCharFunc) (A0, A1, A2, A3)
41 CONST_STRPTR GetCatalogStr(const struct Catalog *catalog, ULONG stringNum, CONST_STRPTR defaultString) (A0, D0, A1)
42 CONST_STRPTR GetLocaleStr(const struct Locale *locale, ULONG stringNum) (A0, D0)
43 ULONG IsAlNum(const struct Locale *locale, ULONG character) (A0, D0)
44 ULONG IsAlpha(const struct Locale *locale, ULONG character) (A0, D0)
45 ULONG IsCntrl(const struct Locale *locale, ULONG character) (A0, D0)
46 ULONG IsDigit(const struct Locale *locale, ULONG character) (A0, D0)
47 ULONG IsGraph(const struct Locale *locale, ULONG character) (A0, D0)
48 ULONG IsLower(const struct Locale *locale, ULONG character) (A0, D0)
49 ULONG IsPrint(const struct Locale *locale, ULONG character) (A0, D0)
50 ULONG IsPunct(const struct Locale *locale, ULONG character) (A0, D0)
51 ULONG IsSpace(const struct Locale *locale, ULONG character) (A0, D0)
52 ULONG IsUpper(const struct Locale *locale, ULONG character) (A0, D0)
53 ULONG IsXDigit(const struct Locale *locale, ULONG character) (A0, D0)
54 struct Catalog *OpenCatalogA(const struct Locale *locale, CONST_STRPTR name, const struct TagItem *tags) (A0, A1, A2)
55 struct Locale *OpenLocale(CONST_STRPTR name) (A0)
56 BOOL ParseDate(struct Locale *locale, struct DateStamp *date, CONST_STRPTR fmtTemplate, struct Hook *getCharFunc) (A0, A1, A2, A3)
57 struct Locale *LocalePrefsUpdate(struct Locale *locale) (A0)
58 ULONG StrConvert(const struct Locale *locale, CONST_STRPTR string, APTR buffer, ULONG bufferSize, ULONG type) (A0, A1, A2, D0, D1)
59 LONG StrnCmp(const struct Locale *locale, CONST_STRPTR string1, CONST_STRPTR string2, LONG length, ULONG type) (A0, A1, A2, D0, D1)
60 APTR LocRawDoFmt(CONST_STRPTR FormatString, APTR DataStream, VOID_FUNC PutChProc, APTR PutChData) (A0, A1, A2, A3)
61 .private
62 LONG LocStrnicmp(CONST_STRPTR string1, CONST_STRPTR string2, LONG length) (A0, A1, D0)
63 .private
64 LONG LocStricmp(CONST_STRPTR string1, CONST_STRPTR string2) (A0, A1)
65 .private
66 ULONG LocToLower(ULONG character) (D0)
67 .private
68 ULONG LocToUpper(ULONG character) (D0)
69 .private
70 LONG LocDateToStr(struct DateTime *datetime) (D1)
71 .private
72 LONG LocStrToDate(struct DateTime *datetime) (D1)
73 .private
74 CONST_STRPTR LocDosGetLocalizedString(LONG stringNum) (D1)
75 .private
76 APTR LocVNewRawDoFmt(CONST_STRPTR FormatString, VOID_FUNC PutChProc, APTR PutChData, va_list DataStream) (A0, A2, A3, A1)
77 .private
78 ##end functionlist