1 #ifndef CLIB_CHARSETS_PROTOS_H 2 #define CLIB_CHARSETS_PROTOS_H 3 4 /* 5 * charsets.library C prototypes 6 * 7 * Copyright © 2009-2014 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef EXEC_TYPES_H 11 # include <exec/types.h> 12 #endif 13 14 #ifndef LIBRARIES_CHARSETS_H 15 # include <libraries/charsets.h> 16 #endif 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif /* __cplusplus */ 21 22 CONST_STRPTR GetCharsetName(ULONG mibenum, CONST_STRPTR *mimename, CONST CONST_STRPTR **aliases); 23 ULONG GetCharsetNumber(CONST_STRPTR name, ULONG match); 24 25 #if !defined(USE_INLINE_STDARG) 26 LONG ConvertTags(CONST_APTR src, LONG srcbytes, APTR dst, LONG dstbytes, ULONG srcmib, ULONG dstmib, ULONG tag1, ...); 27 #endif 28 LONG ConvertTagList(CONST_APTR src, LONG srcbytes, APTR dst, LONG dstbytes, ULONG srcmib, ULONG dstmib, CONST struct TagItem *taglist); 29 30 WCHAR UTF16_ToCodePoint(UTF16 ch1, UTF16 ch2); 31 LONG GetSystemCharset(STRPTR buffer, ULONG buflen); 32 WCHAR GetUTF16BE(UTF16 *Buffer, ULONG CodeUnits); 33 WCHAR GetUTF16LE(UTF16 *Buffer, ULONG CodeUnits); 34 LONG GetLength(APTR str, LONG bytes, ULONG mib); 35 LONG GetByteSize(APTR str, LONG bytes, ULONG srcmib, ULONG dstmib); 36 37 38 #ifdef __cplusplus 39 } 40 #endif /* __cplusplus */ 41 42 #endif /* CLIB_CHARSETS_PROTOS_H */