2 * Copyright 2007 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
10 #include <InterfaceDefs.h>
11 #include <SupportDefs.h>
14 /* Conversion Flavors */
16 B_ISO1_CONVERSION
, /* ISO 8859-x */
26 B_MAC_ROMAN_CONVERSION
, /* Macintosh Roman */
27 B_SJIS_CONVERSION
, /* Shift-JIS */
28 B_EUC_CONVERSION
, /* EUC Packed Japanese */
29 B_JIS_CONVERSION
, /* JIS X 0208-1990 */
30 B_MS_WINDOWS_CONVERSION
, /* Windows Latin-1 Codepage 1252 */
31 B_UNICODE_CONVERSION
, /* Unicode 2.0, UCS-2 */
32 B_KOI8R_CONVERSION
, /* KOI8-R */
33 B_MS_WINDOWS_1251_CONVERSION
, /* Windows Cyrillic Codepage 1251 */
34 B_MS_DOS_866_CONVERSION
, /* MS-DOS Codepage 866 */
35 B_MS_DOS_CONVERSION
, /* MS-DOS Codepage 437 */
36 B_EUC_KR_CONVERSION
, /* EUC Korean */
40 B_BIG5_CONVERSION
, /* Chinese Big5 */
41 B_GBK_CONVERSION
, /* Chinese GB18030 */
42 B_UTF16_CONVERSION
, /* Unicode UTF-16 */
43 B_MS_WINDOWS_1250_CONVERSION
/* Windows Central European Codepage */
47 /* Conversion Functions */
51 status_t
convert_to_utf8(uint32 sourceEncoding
, const char* source
,
52 int32
* sourceLength
, char* dest
, int32
* destLength
, int32
* state
,
53 char substitute
= B_SUBSTITUTE
);
55 status_t
convert_from_utf8(uint32 destEncoding
, const char* source
,
56 int32
* sourceLength
, char* dest
, int32
* destLength
, int32
* state
,
57 char substitute
= B_SUBSTITUTE
);
59 #endif /* __cplusplus */