Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
Loading...
Searching...
No Matches
utf16.h
Go to the documentation of this file.
1
/*
2
* Copyright 2024 dogtopus
3
* SPDX-License-Identifier: MIT
4
*/
5
13
14
#ifndef __MUTEKI_UTF16_H__
15
#define __MUTEKI_UTF16_H__
16
17
#include "
common.h
"
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
26
typedef
enum
utf16_mb_encoding_e
{
31
UTF16_MB_ENCODING_CP936
= 0x0001,
36
UTF16_MB_ENCODING_CP950
= 0x0002,
41
UTF16_MB_ENCODING_CP932
= 0x0004,
46
UTF16_MB_ENCODING_CP949
= 0x0008,
51
UTF16_MB_ENCODING_CP874
= 0x0010,
59
UTF16_MB_ENCODING_CP1252
= 0x1000,
64
UTF16_MB_ENCODING_UTF8
= 0x7fff,
69
UTF16_MB_ENCODING_UTF16
= 0x8000,
77
UTF16_MB_ENCODING_DEFAULT
= 0xffff,
78
}
utf16_mb_encoding_e
;
79
90
extern
UTF16
ConvCharToUnicode
(
unsigned
int
src,
unsigned
short
src_encoding);
91
102
extern
UTF16
*
ConvStrToUnicode
(
const
void
*src,
UTF16
*dst,
unsigned
short
src_encoding);
103
104
#ifdef __cplusplus
105
}
// extern "C"
106
#endif
107
108
#endif
// __MUTEKI_UTF16_H__
common.h
Common include file for all muteki-shims headers.
UTF16
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition
common.h:54
ConvStrToUnicode
UTF16 * ConvStrToUnicode(const void *src, UTF16 *dst, unsigned short src_encoding)
Convert a multi-byte string to UTF-16.
ConvCharToUnicode
UTF16 ConvCharToUnicode(unsigned int src, unsigned short src_encoding)
Convert a multi-byte codepoint to UTF-16.
utf16_mb_encoding_e
utf16_mb_encoding_e
Supported encoding types.
Definition
utf16.h:26
UTF16_MB_ENCODING_CP932
@ UTF16_MB_ENCODING_CP932
Use CP932 (Shift-JIS-based).
Definition
utf16.h:41
UTF16_MB_ENCODING_UTF8
@ UTF16_MB_ENCODING_UTF8
Use UTF-8.
Definition
utf16.h:64
UTF16_MB_ENCODING_CP1252
@ UTF16_MB_ENCODING_CP1252
Use CP1252 (ISO8859-1-based).
Definition
utf16.h:59
UTF16_MB_ENCODING_CP936
@ UTF16_MB_ENCODING_CP936
Use CP936 (GB18030-based).
Definition
utf16.h:31
UTF16_MB_ENCODING_UTF16
@ UTF16_MB_ENCODING_UTF16
Use UTF-16.
Definition
utf16.h:69
UTF16_MB_ENCODING_CP949
@ UTF16_MB_ENCODING_CP949
Use CP949 (EUC-KR-based).
Definition
utf16.h:46
UTF16_MB_ENCODING_DEFAULT
@ UTF16_MB_ENCODING_DEFAULT
Use default encoding.
Definition
utf16.h:77
UTF16_MB_ENCODING_CP950
@ UTF16_MB_ENCODING_CP950
Use CP950 (BIG5-based).
Definition
utf16.h:36
UTF16_MB_ENCODING_CP874
@ UTF16_MB_ENCODING_CP874
Use CP874 (TIS-620-based).
Definition
utf16.h:51
include
muteki
utf16.h
Generated by
1.18.0