1 #ifndef _VBCCINLINE_CODESETS_H
2 #define _VBCCINLINE_CODESETS_H
5 #include <exec/types.h>
8 ULONG
__CodesetsConvertUTF32toUTF16(__reg("a6") struct Library
*, __reg("a0") void * sourceStart
, __reg("a1") void * sourceEnd
, __reg("a2") UTF16
** targetStart
, __reg("a3") UTF16
* targetEnd
, __reg("d0") ULONG flags
)="\tjsr\t-36(a6)";
9 #define CodesetsConvertUTF32toUTF16(sourceStart, sourceEnd, targetStart, targetEnd, flags) __CodesetsConvertUTF32toUTF16(CodesetsBase, (void *)(sourceStart), (void *)(sourceEnd), (targetStart), (targetEnd), (flags))
11 ULONG
__CodesetsConvertUTF16toUTF32(__reg("a6") struct Library
*, __reg("a0") void * sourceStart
, __reg("a1") void * sourceEnd
, __reg("a2") UTF32
** targetStart
, __reg("a3") UTF32
* targetEnd
, __reg("d0") ULONG flags
)="\tjsr\t-42(a6)";
12 #define CodesetsConvertUTF16toUTF32(sourceStart, sourceEnd, targetStart, targetEnd, flags) __CodesetsConvertUTF16toUTF32(CodesetsBase, (void *)(sourceStart), (void *)(sourceEnd), (targetStart), (targetEnd), (flags))
14 ULONG
__CodesetsConvertUTF16toUTF8(__reg("a6") struct Library
*, __reg("a0") void * sourceStart
, __reg("a1") void * sourceEnd
, __reg("a2") UTF8
** targetStart
, __reg("a3") UTF8
* targetEnd
, __reg("d0") ULONG flags
)="\tjsr\t-48(a6)";
15 #define CodesetsConvertUTF16toUTF8(sourceStart, sourceEnd, targetStart, targetEnd, flags) __CodesetsConvertUTF16toUTF8(CodesetsBase, (void *)(sourceStart), (void *)(sourceEnd), (targetStart), (targetEnd), (flags))
17 BOOL
__CodesetsIsLegalUTF8(__reg("a6") struct Library
*, __reg("a0") void * source
, __reg("d0") ULONG length
)="\tjsr\t-54(a6)";
18 #define CodesetsIsLegalUTF8(source, length) __CodesetsIsLegalUTF8(CodesetsBase, (void *)(source), (length))
20 BOOL
__CodesetsIsLegalUTF8Sequence(__reg("a6") struct Library
*, __reg("a0") void * source
, __reg("a1") void * sourceEnd
)="\tjsr\t-60(a6)";
21 #define CodesetsIsLegalUTF8Sequence(source, sourceEnd) __CodesetsIsLegalUTF8Sequence(CodesetsBase, (void *)(source), (void *)(sourceEnd))
23 ULONG
__CodesetsConvertUTF8toUTF16(__reg("a6") struct Library
*, __reg("a0") void * sourceStart
, __reg("a1") void * sourceEnd
, __reg("a2") UTF16
** targetStart
, __reg("a3") UTF16
* targetEnd
, __reg("d0") ULONG flags
)="\tjsr\t-66(a6)";
24 #define CodesetsConvertUTF8toUTF16(sourceStart, sourceEnd, targetStart, targetEnd, flags) __CodesetsConvertUTF8toUTF16(CodesetsBase, (void *)(sourceStart), (void *)(sourceEnd), (targetStart), (targetEnd), (flags))
26 ULONG
__CodesetsConvertUTF32toUTF8(__reg("a6") struct Library
*, __reg("a0") void * sourceStart
, __reg("a1") void * sourceEnd
, __reg("a2") UTF8
** targetStart
, __reg("a3") UTF8
* targetEnd
, __reg("d0") ULONG flags
)="\tjsr\t-72(a6)";
27 #define CodesetsConvertUTF32toUTF8(sourceStart, sourceEnd, targetStart, targetEnd, flags) __CodesetsConvertUTF32toUTF8(CodesetsBase, (void *)(sourceStart), (void *)(sourceEnd), (targetStart), (targetEnd), (flags))
29 ULONG
__CodesetsConvertUTF8toUTF32(__reg("a6") struct Library
*, __reg("a0") void * sourceStart
, __reg("a1") void * sourceEnd
, __reg("a2") UTF32
** targetStart
, __reg("a3") UTF32
* targetEnd
, __reg("d0") ULONG flags
)="\tjsr\t-78(a6)";
30 #define CodesetsConvertUTF8toUTF32(sourceStart, sourceEnd, targetStart, targetEnd, flags) __CodesetsConvertUTF8toUTF32(CodesetsBase, (void *)(sourceStart), (void *)(sourceEnd), (targetStart), (targetEnd), (flags))
32 struct codeset
* __CodesetsSetDefaultA(__reg("a6") struct Library
*, __reg("a0") STRPTR name
, __reg("a1") struct TagItem
* attrs
)="\tjsr\t-84(a6)";
33 #define CodesetsSetDefaultA(name, attrs) __CodesetsSetDefaultA(CodesetsBase, (name), (attrs))
35 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
36 struct codeset
* __CodesetsSetDefault(__reg("a6") struct Library
*, __reg("a0") STRPTR name
, Tag attrs
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-84(a6)\n\tmovea.l\t(a7)+,a1";
37 #define CodesetsSetDefault(name, ...) __CodesetsSetDefault(CodesetsBase, (name), __VA_ARGS__)
40 void __CodesetsFreeA(__reg("a6") struct Library
*, __reg("a0") APTR obj
, __reg("a1") struct TagItem
* attrs
)="\tjsr\t-90(a6)";
41 #define CodesetsFreeA(obj, attrs) __CodesetsFreeA(CodesetsBase, (obj), (attrs))
43 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
44 void __CodesetsFree(__reg("a6") struct Library
*, __reg("a0") APTR obj
, Tag attrs
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-90(a6)\n\tmovea.l\t(a7)+,a1";
45 #define CodesetsFree(obj, ...) __CodesetsFree(CodesetsBase, (obj), __VA_ARGS__)
48 STRPTR
* __CodesetsSupportedA(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-96(a6)";
49 #define CodesetsSupportedA(attrs) __CodesetsSupportedA(CodesetsBase, (attrs))
51 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
52 STRPTR
* __CodesetsSupported(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-96(a6)\n\tmovea.l\t(a7)+,a0";
53 #define CodesetsSupported(...) __CodesetsSupported(CodesetsBase, __VA_ARGS__)
56 struct codeset
* __CodesetsFindA(__reg("a6") struct Library
*, __reg("a0") STRPTR name
, __reg("a1") struct TagItem
* attrs
)="\tjsr\t-102(a6)";
57 #define CodesetsFindA(name, attrs) __CodesetsFindA(CodesetsBase, (name), (attrs))
59 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
60 struct codeset
* __CodesetsFind(__reg("a6") struct Library
*, __reg("a0") STRPTR name
, Tag attrs
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-102(a6)\n\tmovea.l\t(a7)+,a1";
61 #define CodesetsFind(name, ...) __CodesetsFind(CodesetsBase, (name), __VA_ARGS__)
64 struct codeset
* __CodesetsFindBestA(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-108(a6)";
65 #define CodesetsFindBestA(attrs) __CodesetsFindBestA(CodesetsBase, (attrs))
67 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
68 struct codeset
* __CodesetsFindBest(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-108(a6)\n\tmovea.l\t(a7)+,a0";
69 #define CodesetsFindBest(...) __CodesetsFindBest(CodesetsBase, __VA_ARGS__)
72 ULONG
__CodesetsUTF8Len(__reg("a6") struct Library
*, __reg("a0") void * str
)="\tjsr\t-114(a6)";
73 #define CodesetsUTF8Len(str) __CodesetsUTF8Len(CodesetsBase, (void *)(str))
75 STRPTR
__CodesetsUTF8ToStrA(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-120(a6)";
76 #define CodesetsUTF8ToStrA(attrs) __CodesetsUTF8ToStrA(CodesetsBase, (attrs))
78 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
79 STRPTR
__CodesetsUTF8ToStr(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-120(a6)\n\tmovea.l\t(a7)+,a0";
80 #define CodesetsUTF8ToStr(...) __CodesetsUTF8ToStr(CodesetsBase, __VA_ARGS__)
83 UTF8
* __CodesetsUTF8CreateA(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-126(a6)";
84 #define CodesetsUTF8CreateA(attrs) __CodesetsUTF8CreateA(CodesetsBase, (attrs))
86 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
87 UTF8
* __CodesetsUTF8Create(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-126(a6)\n\tmovea.l\t(a7)+,a0";
88 #define CodesetsUTF8Create(...) __CodesetsUTF8Create(CodesetsBase, __VA_ARGS__)
91 ULONG
__CodesetsEncodeB64A(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-132(a6)";
92 #define CodesetsEncodeB64A(attrs) __CodesetsEncodeB64A(CodesetsBase, (attrs))
94 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
95 ULONG
__CodesetsEncodeB64(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-132(a6)\n\tmovea.l\t(a7)+,a0";
96 #define CodesetsEncodeB64(...) __CodesetsEncodeB64(CodesetsBase, __VA_ARGS__)
99 ULONG
__CodesetsDecodeB64A(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-138(a6)";
100 #define CodesetsDecodeB64A(attrs) __CodesetsDecodeB64A(CodesetsBase, (attrs))
102 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
103 ULONG
__CodesetsDecodeB64(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-138(a6)\n\tmovea.l\t(a7)+,a0";
104 #define CodesetsDecodeB64(...) __CodesetsDecodeB64(CodesetsBase, __VA_ARGS__)
107 ULONG
__CodesetsStrLenA(__reg("a6") struct Library
*, __reg("a0") STRPTR str
, __reg("a1") struct TagItem
* attrs
)="\tjsr\t-144(a6)";
108 #define CodesetsStrLenA(str, attrs) __CodesetsStrLenA(CodesetsBase, (str), (attrs))
110 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
111 ULONG
__CodesetsStrLen(__reg("a6") struct Library
*, __reg("a0") STRPTR str
, Tag attrs
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-144(a6)\n\tmovea.l\t(a7)+,a1";
112 #define CodesetsStrLen(str, ...) __CodesetsStrLen(CodesetsBase, (str), __VA_ARGS__)
115 BOOL
__CodesetsIsValidUTF8(__reg("a6") struct Library
*, __reg("a0") STRPTR str
)="\tjsr\t-150(a6)";
116 #define CodesetsIsValidUTF8(str) __CodesetsIsValidUTF8(CodesetsBase, (str))
118 void __CodesetsFreeVecPooledA(__reg("a6") struct Library
*, __reg("a0") APTR pool
, __reg("a1") APTR mem
, __reg("a2") struct TagItem
* attrs
)="\tjsr\t-156(a6)";
119 #define CodesetsFreeVecPooledA(pool, mem, attrs) __CodesetsFreeVecPooledA(CodesetsBase, (pool), (mem), (attrs))
121 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
122 void __CodesetsFreeVecPooled(__reg("a6") struct Library
*, __reg("a0") APTR pool
, __reg("a1") APTR mem
, Tag attrs
, ...)="\tmove.l\ta2,-(a7)\n\tlea\t4(a7),a2\n\tjsr\t-156(a6)\n\tmovea.l\t(a7)+,a2";
123 #define CodesetsFreeVecPooled(pool, mem, ...) __CodesetsFreeVecPooled(CodesetsBase, (pool), (mem), __VA_ARGS__)
126 STRPTR
__CodesetsConvertStrA(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* str
)="\tjsr\t-162(a6)";
127 #define CodesetsConvertStrA(str) __CodesetsConvertStrA(CodesetsBase, (str))
129 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
130 STRPTR
__CodesetsConvertStr(__reg("a6") struct Library
*, Tag str
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-162(a6)\n\tmovea.l\t(a7)+,a0";
131 #define CodesetsConvertStr(...) __CodesetsConvertStr(CodesetsBase, __VA_ARGS__)
134 struct codesetList
* __CodesetsListCreateA(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-168(a6)";
135 #define CodesetsListCreateA(attrs) __CodesetsListCreateA(CodesetsBase, (attrs))
137 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
138 struct codesetList
* __CodesetsListCreate(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-168(a6)\n\tmovea.l\t(a7)+,a0";
139 #define CodesetsListCreate(...) __CodesetsListCreate(CodesetsBase, __VA_ARGS__)
142 BOOL
__CodesetsListDeleteA(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-174(a6)";
143 #define CodesetsListDeleteA(attrs) __CodesetsListDeleteA(CodesetsBase, (attrs))
145 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
146 BOOL
__CodesetsListDelete(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-174(a6)\n\tmovea.l\t(a7)+,a0";
147 #define CodesetsListDelete(...) __CodesetsListDelete(CodesetsBase, __VA_ARGS__)
150 BOOL
__CodesetsListAddA(__reg("a6") struct Library
*, __reg("a0") struct codesetList
* list
, __reg("a1") struct TagItem
* attrs
)="\tjsr\t-180(a6)";
151 #define CodesetsListAddA(list, attrs) __CodesetsListAddA(CodesetsBase, (list), (attrs))
153 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
154 BOOL
__CodesetsListAdd(__reg("a6") struct Library
*, __reg("a0") struct codesetList
* list
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-180(a6)\n\tmovea.l\t(a7)+,a1";
155 #define CodesetsListAdd(...) __CodesetsListAdd(CodesetsBase, __VA_ARGS__)
158 BOOL
__CodesetsListRemoveA(__reg("a6") struct Library
*, __reg("a0") struct TagItem
* attrs
)="\tjsr\t-186(a6)";
159 #define CodesetsListRemoveA(attrs) __CodesetsListRemoveA(CodesetsBase, (attrs))
161 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
162 BOOL
__CodesetsListRemove(__reg("a6") struct Library
*, Tag attrs
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-186(a6)\n\tmovea.l\t(a7)+,a0";
163 #define CodesetsListRemove(...) __CodesetsListRemove(CodesetsBase, __VA_ARGS__)
166 #endif /* _VBCCINLINE_CODESETS_H */