1 /***************************************************************************
3 codesets.library - Amiga shared library for handling different codesets
4 Copyright (C) 2001-2005 by Alfonso [alfie] Ranieri <alforan@tin.it>.
5 Copyright (C) 2005-2014 codesets.library Open Source Team
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 codesets.library project: http://sourceforge.net/projects/codesetslib/
21 ***************************************************************************/
25 LIBSTUB(CodesetsEncodeB64A
, ULONG
)
27 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
28 return CALL_LFUNC(CodesetsEncodeB64A
, (struct TagItem
*)REG_A0
);
31 LIBSTUB(CodesetsDecodeB64A
, ULONG
)
33 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
34 return CALL_LFUNC(CodesetsDecodeB64A
, (struct TagItem
*)REG_A0
);
37 LIBSTUB(CodesetsSupportedA
, STRPTR
*)
39 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
40 return CALL_LFUNC(CodesetsSupportedA
, (struct TagItem
*)REG_A0
);
43 LIBSTUB(CodesetsFreeA
, void)
45 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
46 return CALL_LFUNC(CodesetsFreeA
, (APTR
)REG_A0
, (struct TagItem
*)REG_A1
);
49 LIBSTUB(CodesetsSetDefaultA
, struct codeset
*)
51 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
52 return CALL_LFUNC(CodesetsSetDefaultA
, (STRPTR
)REG_A0
, (struct TagItem
*)REG_A1
);
55 LIBSTUB(CodesetsFindA
, struct codeset
*)
57 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
58 return CALL_LFUNC(CodesetsFindA
, (STRPTR
)REG_A0
, (struct TagItem
*)REG_A1
);
61 LIBSTUB(CodesetsFindBestA
, struct codeset
*)
63 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
64 return CALL_LFUNC(CodesetsFindBestA
, (struct TagItem
*)REG_A0
);
67 LIBSTUB(CodesetsUTF8Len
, ULONG
)
69 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
70 return CALL_LFUNC(CodesetsUTF8Len
, (UTF8
*)REG_A0
);
73 LIBSTUB(CodesetsStrLenA
, ULONG
)
75 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
76 return CALL_LFUNC(CodesetsStrLenA
, (STRPTR
)REG_A0
, (struct TagItem
*)REG_A1
);
79 LIBSTUB(CodesetsUTF8ToStrA
, STRPTR
)
81 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
82 return CALL_LFUNC(CodesetsUTF8ToStrA
, (struct TagItem
*)REG_A0
);
85 LIBSTUB(CodesetsUTF8CreateA
, UTF8
*)
87 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
88 return CALL_LFUNC(CodesetsUTF8CreateA
, (struct TagItem
*)REG_A0
);
91 LIBSTUB(CodesetsIsValidUTF8
, BOOL
)
93 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
94 return CALL_LFUNC(CodesetsIsValidUTF8
, (STRPTR
)REG_A0
);
97 LIBSTUB(CodesetsConvertStrA
, STRPTR
)
99 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
100 return CALL_LFUNC(CodesetsConvertStrA
, (struct TagItem
*)REG_A0
);
103 LIBSTUB(CodesetsFreeVecPooledA
, void)
105 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
106 return CALL_LFUNC(CodesetsFreeVecPooledA
, (APTR
)REG_A0
,(APTR
)REG_A1
, (struct TagItem
*)REG_A2
);
109 LIBSTUB(CodesetsListCreateA
, struct codesetList
*)
111 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
112 return CALL_LFUNC(CodesetsListCreateA
, (struct TagItem
*)REG_A0
);
115 LIBSTUB(CodesetsListDeleteA
, BOOL
)
117 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
118 return CALL_LFUNC(CodesetsListDeleteA
, (struct TagItem
*)REG_A0
);
121 LIBSTUB(CodesetsListAddA
, BOOL
)
123 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
124 return CALL_LFUNC(CodesetsListAddA
, (struct codesetList
*)REG_A0
, (struct TagItem
*)REG_A1
);
127 LIBSTUB(CodesetsListRemoveA
, BOOL
)
129 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
130 return CALL_LFUNC(CodesetsListRemoveA
, (struct TagItem
*)REG_A0
);
133 LIBSTUB(CodesetsConvertUTF32toUTF16
, ULONG
)
135 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
136 return CALL_LFUNC(CodesetsConvertUTF32toUTF16
, (const UTF32
**)REG_A0
, (const UTF32
*)REG_A1
, (UTF16
**)REG_A2
, (UTF16
*)REG_A3
, (ULONG
)REG_D0
);
139 LIBSTUB(CodesetsConvertUTF16toUTF32
, ULONG
)
141 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
142 return CALL_LFUNC(CodesetsConvertUTF16toUTF32
, (const UTF16
**)REG_A0
, (const UTF16
*)REG_A1
, (UTF32
**)REG_A2
, (UTF32
*)REG_A3
, (ULONG
)REG_D0
);
145 LIBSTUB(CodesetsConvertUTF16toUTF8
, ULONG
)
147 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
148 return CALL_LFUNC(CodesetsConvertUTF16toUTF8
, (const UTF16
**)REG_A0
, (const UTF16
*)REG_A1
, (UTF8
**)REG_A2
, (UTF8
*)REG_A3
, (ULONG
)REG_D0
);
152 LIBSTUB(CodesetsIsLegalUTF8
, BOOL
)
154 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
155 return CALL_LFUNC(CodesetsIsLegalUTF8
, (const UTF8
*)REG_A0
, (ULONG
)REG_D0
);
158 LIBSTUB(CodesetsIsLegalUTF8Sequence
, BOOL
)
160 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
161 return CALL_LFUNC(CodesetsIsLegalUTF8Sequence
, (const UTF8
*)REG_A0
,(const UTF8
*)REG_A1
);
164 LIBSTUB(CodesetsConvertUTF8toUTF16
, ULONG
)
166 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
167 return CALL_LFUNC(CodesetsConvertUTF8toUTF16
, (const UTF8
**)REG_A0
, (const UTF8
*)REG_A1
, (UTF16
**)REG_A2
, (UTF16
*)REG_A3
, (ULONG
)REG_D0
);
170 LIBSTUB(CodesetsConvertUTF32toUTF8
, ULONG
)
172 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
173 return CALL_LFUNC(CodesetsConvertUTF32toUTF8
, (const UTF32
**)REG_A0
, (const UTF32
*)REG_A1
, (UTF8
**)REG_A2
, (UTF8
*)REG_A3
, (ULONG
)REG_D0
);
176 LIBSTUB(CodesetsConvertUTF8toUTF32
, ULONG
)
178 __BASE_OR_IFACE
= (__BASE_OR_IFACE_TYPE
)REG_A6
;
179 return CALL_LFUNC(CodesetsConvertUTF8toUTF32
, (const UTF8
**)REG_A0
, (const UTF8
*)REG_A1
, (UTF32
**)REG_A2
, (UTF32
*)REG_A3
, (ULONG
)REG_D0
);