* Copyright 2007 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _UTF8_H
#define _UTF8_H
#include <BeBuild.h>
#include <InterfaceDefs.h>
#include <SupportDefs.h>
enum {
B_ISO1_CONVERSION,
B_ISO2_CONVERSION,
B_ISO3_CONVERSION,
B_ISO4_CONVERSION,
B_ISO5_CONVERSION,
B_ISO6_CONVERSION,
B_ISO7_CONVERSION,
B_ISO8_CONVERSION,
B_ISO9_CONVERSION,
B_ISO10_CONVERSION,
B_MAC_ROMAN_CONVERSION,
B_SJIS_CONVERSION,
B_EUC_CONVERSION,
B_JIS_CONVERSION,
B_MS_WINDOWS_CONVERSION,
B_UNICODE_CONVERSION,
B_KOI8R_CONVERSION,
B_MS_WINDOWS_1251_CONVERSION,
B_MS_DOS_866_CONVERSION,
B_MS_DOS_CONVERSION,
B_EUC_KR_CONVERSION,
B_ISO13_CONVERSION,
B_ISO14_CONVERSION,
B_ISO15_CONVERSION,
B_BIG5_CONVERSION,
B_GBK_CONVERSION,
B_UTF16_CONVERSION,
B_MS_WINDOWS_1250_CONVERSION
};
#ifdef __cplusplus
status_t convert_to_utf8(uint32 sourceEncoding, const char* source,
int32* sourceLength, char* dest, int32* destLength, int32* state,
char substitute = B_SUBSTITUTE);
status_t convert_from_utf8(uint32 destEncoding, const char* source,
int32* sourceLength, char* dest, int32* destLength, int32* state,
char substitute = B_SUBSTITUTE);
#endif
#endif