GadgetSeed  0.9.6
charcode.h
[詳解]
1 /** @file
2  @brief 文字コード処理
3 
4  @date 2018.02.12
5  @author Takashi SHUDO
6 */
7 
8 #ifndef CHARCODE_H
9 #define CHARCODE_H
10 
11 #include "str.h"
12 
13 extern ushort sjiscode_to_utf16code(ushort sjiscode);
14 extern uchar *sjisstr_to_utf8str(uchar *utf8str, uchar *sjisstr, unsigned int count);
15 extern uchar *sj2utf8(uchar *sjisstr);
16 
17 extern int utf16code_to_utf8code(uchar *utf8code, ushort utf16code);
18 extern int utf16str_to_utf8str(uchar *utf8str, ushort *utf16str, unsigned int count);
19 extern uchar *utf162utf8(ushort *utf16str);
20 
21 extern int utf8code_to_utf16code(ushort *utf16code, uchar *utf8code);
22 extern int utf8str_to_utf16str(ushort *utf16str, uchar *utf8str, unsigned int count);
23 
24 #endif // CHARCODE_H
unsigned char uchar
GadgetSeedの文字(列)は unsigned char 型となる
Definition: str.h:13
int utf8str_to_utf16str(ushort *utf16str, uchar *utf8str, unsigned int count)
UTF-8 文字列から UTF-16 文字列へ変換
Definition: charcode.c:289
文字列処理
ushort sjiscode_to_utf16code(ushort sjiscode)
SJIS から UTF-16 へ変換
Definition: charcode.c:57
int utf16code_to_utf8code(uchar *utf8code, ushort utf16code)
UTF-16 文字から UTF-8 文字へ変換
Definition: charcode.c:142
uchar * sjisstr_to_utf8str(uchar *utf8str, uchar *sjisstr, unsigned int count)
SJIS 文字列から UTF-8 文字列へ変換
Definition: charcode.c:73
uchar * sj2utf8(uchar *sjisstr)
SJIS 文字列から最大文字バイト数固定 UTF-8 文字列へ変換
Definition: charcode.c:124
uchar * utf162utf8(ushort *utf16str)
UTF-16 文字列から最大文字バイト数固定 UTF-8 文字列へ変換
Definition: charcode.c:230
unsigned short ushort
2バイト(UTF-16)文字
Definition: str.h:14
int utf16str_to_utf8str(uchar *utf8str, ushort *utf16str, unsigned int count)
UTF-16 文字列から UTF-8 文字列へ変換
Definition: charcode.c:179
int utf8code_to_utf16code(ushort *utf16code, uchar *utf8code)
UTF-8 文字から UTF-16 文字へ変換
Definition: charcode.c:247