GadgetSeed  0.9.6
charcode.c ファイル

文字コード [詳解]

#include "sysconfig.h"
#include "ff.h"
#include "charcode.h"
#include "tkprintf.h"
#include "dtprintf.h"
charcode.c の依存先関係図:

[ソースコード]

マクロ定義

#define MAX_CONVERT_LEN   FF_MAX_LFN
 

関数

ushort sjiscode_to_utf16code (ushort sjiscode)
 SJIS から UTF-16 へ変換 [詳解]
 
ucharsjisstr_to_utf8str (uchar *utf8str, uchar *sjisstr, unsigned int count)
 SJIS 文字列から UTF-8 文字列へ変換 [詳解]
 
ucharsj2utf8 (uchar *sjisstr)
 SJIS 文字列から最大文字バイト数固定 UTF-8 文字列へ変換 [詳解]
 
int utf16code_to_utf8code (uchar *utf8code, ushort utf16code)
 UTF-16 文字から UTF-8 文字へ変換 [詳解]
 
int utf16str_to_utf8str (uchar *utf8str, ushort *utf16str, unsigned int count)
 UTF-16 文字列から UTF-8 文字列へ変換 [詳解]
 
ucharutf162utf8 (ushort *utf16str)
 UTF-16 文字列から最大文字バイト数固定 UTF-8 文字列へ変換 [詳解]
 
int utf8code_to_utf16code (ushort *utf16code, uchar *utf8code)
 UTF-8 文字から UTF-16 文字へ変換 [詳解]
 
int utf8str_to_utf16str (ushort *utf16str, uchar *utf8str, unsigned int count)
 UTF-8 文字列から UTF-16 文字列へ変換 [詳解]
 

詳解

文字コード

日付
2018.02.12
著者
Takashi SHUDO

charcode.c に定義があります。

関数詳解

◆ sj2utf8()

uchar* sj2utf8 ( uchar sjisstr)

SJIS 文字列から最大文字バイト数固定 UTF-8 文字列へ変換

引数
[in]sjiscodeSJIS文字列
戻り値
UTF-8文字列

charcode.c124 行目に定義があります。

◆ sjiscode_to_utf16code()

ushort sjiscode_to_utf16code ( ushort  sjiscode)

SJIS から UTF-16 へ変換

引数
[in]sjiscodeSJIS文字
戻り値
UTF-16文字

charcode.c57 行目に定義があります。

参照元 sjisstr_to_utf8str().

被呼び出し関係図:

◆ sjisstr_to_utf8str()

uchar* sjisstr_to_utf8str ( uchar utf8str,
uchar sjisstr,
unsigned int  count 
)

SJIS 文字列から UTF-8 文字列へ変換

引数
[out]utf8strUTF-8文字列
[in]sjiscodeSJIS文字列
[in]count出力UTF-8文字列最大長
戻り値
UTF-8文字列

charcode.c73 行目に定義があります。

参照先 sjiscode_to_utf16code(), utf16code_to_utf8code().

呼び出し関係図:

◆ utf162utf8()

uchar* utf162utf8 ( ushort utf16str)

UTF-16 文字列から最大文字バイト数固定 UTF-8 文字列へ変換

引数
[in]utf16strUTF-16文字列
戻り値
UTF-8文字列

charcode.c230 行目に定義があります。

◆ utf16code_to_utf8code()

int utf16code_to_utf8code ( uchar utf8code,
ushort  utf16code 
)

UTF-16 文字から UTF-8 文字へ変換

引数
[out]utf8strUTF-8文字
[in]utf16codeUTF-16文字
戻り値
UTF-8文字バイト数

charcode.c142 行目に定義があります。

参照元 sjisstr_to_utf8str(), utf16str_to_utf8str().

被呼び出し関係図:

◆ utf16str_to_utf8str()

int utf16str_to_utf8str ( uchar utf8str,
ushort utf16str,
unsigned int  count 
)

UTF-16 文字列から UTF-8 文字列へ変換

引数
[out]utf8strUTF-8文字列
[in]utf16strUTF-16文字列
[in]count最大出力UTF-8文字列バイト数
戻り値
UTF-8文字列バイト長

charcode.c179 行目に定義があります。

参照先 utf16code_to_utf8code().

呼び出し関係図:

◆ utf8code_to_utf16code()

int utf8code_to_utf16code ( ushort utf16code,
uchar utf8code 
)

UTF-8 文字から UTF-16 文字へ変換

引数
[out]utf16codeUTF-16文字
[in]utf8codeUTF-8文字
戻り値
UTF-8文字バイト数

charcode.c247 行目に定義があります。

参照元 utf8str_to_utf16str().

被呼び出し関係図:

◆ utf8str_to_utf16str()

int utf8str_to_utf16str ( ushort utf16str,
uchar utf8str,
unsigned int  count 
)

UTF-8 文字列から UTF-16 文字列へ変換

引数
[out]utf16strUTF-16文字列
[in]utf8strUTF-8文字列
[in]count最大出力UTF-16文字列バイト数
戻り値
変換後UTF-16文字列バイト長

charcode.c289 行目に定義があります。

参照先 utf8code_to_utf16code().

呼び出し関係図: