muteki
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
14#ifndef __MUTEKI_UTF16_H__
15#define __MUTEKI_UTF16_H__
16
17#include <muteki/common.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
79
90extern UTF16 ConvCharToUnicode(unsigned int src, unsigned short src_encoding);
91
102extern 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 include file for all muteki-shims headers.
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
UTF16 * ConvStrToUnicode(const void *src, UTF16 *dst, unsigned short src_encoding)
Convert a multi-byte string to UTF-16.
UTF16 ConvCharToUnicode(unsigned int src, unsigned short src_encoding)
Convert a multi-byte codepoint to UTF-16.
utf16_mb_encoding_e
Supported encoding types.
Definition utf16.h:26
@ MB_ENCODING_CP874
Use CP874 (TIS-620-based).
Definition utf16.h:51
@ MB_ENCODING_UTF8
Use UTF-8.
Definition utf16.h:64
@ MB_ENCODING_CP932
Use CP932 (Shift-JIS-based).
Definition utf16.h:41
@ MB_ENCODING_DEFAULT
Use default encoding.
Definition utf16.h:77
@ MB_ENCODING_CP950
Use CP950 (BIG5-based).
Definition utf16.h:36
@ MB_ENCODING_CP1252
Use CP1252 (ISO8859-1-based).
Definition utf16.h:59
@ MB_ENCODING_UTF16
Use UTF-16.
Definition utf16.h:69
@ MB_ENCODING_CP936
Use CP936 (GB18030-based).
Definition utf16.h:31
@ MB_ENCODING_CP949
Use CP949 (EUC-KR-based).
Definition utf16.h:46