aliceml_code_conv.h

#include "aliceml.h"

ソースコードを見る。

マクロ定義

#define ML_CHAR_UTF8_MAXSIZE   6
 UCS4一文字をUTF8に変換したときに必要になるバッファの最大数です。
#define ML_CHAR_UTF16_MAXSIZE   2
 UCS4一文字をUTF16に変換したときに必要になるバッファの最大数です。

関数

ALICEMLAPI ML_size ALICEMLCALL ML_GetCharLengthUTF8 (ML_char8 utf8)
 このオクテットから始まるUTF81文字に必要なオクテット数を返します。
ALICEMLAPI ML_size ALICEMLCALL ML_GetCharLengthUTF16 (ML_char16 utf16)
 このオクテットから始まるUTF161文字に必要なオクテット数を返します。
ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUCS4ToUTF16 (const ML_char32 *text, ML_size length)
ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUCS4ToUTF8 (const ML_char32 *text, ML_size length)
ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUTF16ToUCS4 (const ML_char16 *text, ML_size length)
ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUTF16ToUTF8 (const ML_char16 *text, ML_size length)
ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUTF8ToUCS4 (const ML_char8 *text, ML_size length)
ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUTF8ToUTF16 (const ML_char8 *text, ML_size length)
ALICEMLAPI int ALICEMLCALL ML_ConvertCharUCS4ToUTF16 (ML_char32 ucs4, ML_char16 result[ML_CHAR_UTF16_MAXSIZE], ML_size *result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertCharUCS4ToUTF8 (ML_char32 ucs4, ML_char8 result[ML_CHAR_UTF8_MAXSIZE], ML_size *result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertCharUTF16ToUCS4 (const ML_char16 *utf16_str, ML_size *utf16_length, ML_char32 *result)
ALICEMLAPI int ALICEMLCALL ML_ConvertCharUTF16ToUTF8 (const ML_char16 *utf16_str, ML_size *utf16_length, ML_char8 result[ML_CHAR_UTF8_MAXSIZE], ML_size *result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertCharUTF8ToUCS4 (const ML_char8 *utf8_str, ML_size *utf8_length, ML_char32 *result)
ALICEMLAPI int ALICEMLCALL ML_ConvertCharUTF8ToUTF16 (const ML_char8 *utf8_str, ML_size *utf8_length, ML_char16 result[ML_CHAR_UTF16_MAXSIZE], ML_size *result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertStrUCS4ToUTF16 (const ML_char32 *text, ML_size length, ML_char16 *result, ML_size result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertStrUCS4ToUTF8 (const ML_char32 *text, ML_size length, ML_char8 *result, ML_size result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertStrUTF16ToUCS4 (const ML_char16 *text, ML_size length, ML_char32 *result, ML_size result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertStrUTF16ToUTF8 (const ML_char16 *text, ML_size length, ML_char8 *result, ML_size result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertStrUTF8ToUCS4 (const ML_char8 *text, ML_size length, ML_char32 *result, ML_size result_length)
ALICEMLAPI int ALICEMLCALL ML_ConvertStrUTF8ToUTF16 (const ML_char8 *text, ML_size length, ML_char16 *result, ML_size result_length)


マクロ定義

#define ML_CHAR_UTF16_MAXSIZE   2

UCS4一文字をUTF16に変換したときに必要になるバッファの最大数です。

#define ML_CHAR_UTF8_MAXSIZE   6

UCS4一文字をUTF8に変換したときに必要になるバッファの最大数です。


関数

ALICEMLAPI int ALICEMLCALL ML_ConvertCharUCS4ToUTF16 ( ML_char32  ucs4,
ML_char16  result[ML_CHAR_UTF16_MAXSIZE],
ML_size result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertCharUCS4ToUTF8 ( ML_char32  ucs4,
ML_char8  result[ML_CHAR_UTF8_MAXSIZE],
ML_size result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertCharUTF16ToUCS4 ( const ML_char16 utf16_str,
ML_size utf16_length,
ML_char32 result 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertCharUTF16ToUTF8 ( const ML_char16 utf16_str,
ML_size utf16_length,
ML_char8  result[ML_CHAR_UTF8_MAXSIZE],
ML_size result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertCharUTF8ToUCS4 ( const ML_char8 utf8_str,
ML_size utf8_length,
ML_char32 result 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertCharUTF8ToUTF16 ( const ML_char8 utf8_str,
ML_size utf8_length,
ML_char16  result[ML_CHAR_UTF16_MAXSIZE],
ML_size result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertStrUCS4ToUTF16 ( const ML_char32 text,
ML_size  length,
ML_char16 result,
ML_size  result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertStrUCS4ToUTF8 ( const ML_char32 text,
ML_size  length,
ML_char8 result,
ML_size  result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertStrUTF16ToUCS4 ( const ML_char16 text,
ML_size  length,
ML_char32 result,
ML_size  result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertStrUTF16ToUTF8 ( const ML_char16 text,
ML_size  length,
ML_char8 result,
ML_size  result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertStrUTF8ToUCS4 ( const ML_char8 text,
ML_size  length,
ML_char32 result,
ML_size  result_length 
)

ALICEMLAPI int ALICEMLCALL ML_ConvertStrUTF8ToUTF16 ( const ML_char8 text,
ML_size  length,
ML_char16 result,
ML_size  result_length 
)

ALICEMLAPI ML_size ALICEMLCALL ML_GetCharLengthUTF16 ( ML_char16  utf16  ) 

このオクテットから始まるUTF161文字に必要なオクテット数を返します。

ALICEMLAPI ML_size ALICEMLCALL ML_GetCharLengthUTF8 ( ML_char8  utf8  ) 

このオクテットから始まるUTF81文字に必要なオクテット数を返します。

ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUCS4ToUTF16 ( const ML_char32 text,
ML_size  length 
)

ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUCS4ToUTF8 ( const ML_char32 text,
ML_size  length 
)

ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUTF16ToUCS4 ( const ML_char16 text,
ML_size  length 
)

ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUTF16ToUTF8 ( const ML_char16 text,
ML_size  length 
)

ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUTF8ToUCS4 ( const ML_char8 text,
ML_size  length 
)

ALICEMLAPI ML_size ALICEMLCALL ML_GetStrLengthUTF8ToUTF16 ( const ML_char8 text,
ML_size  length 
)


AliceMLに対してSat Apr 21 13:06:20 2007に生成されました。  doxygen 1.4.7