convert_endian_16bit_byte_array

16bitエンディアン変換関数convert_endian_16bit_byte_arrayを作る。
main.cは、

と書く。

実行するとこうなる。
実行するとこうなる。

実行するとこうなる。

src.txtはUTF-16BEだが、dest.txtはUTF-16LE。
src.txtはUTF-16BEだが、dest.txtはUTF-16LE。

src.txtはUTF-16BEだが、dest.txtはUTF-16LE。

Test/c/convert_endian_16bit_byte_array/convert_endian_16bit_byte_array/src/convert_endian_16bit_byte_array at master · bg1bgst333/Test · GitHub

write_file_bom_utf8

UTF-8用のBOMを書き込む関数write_file_bom_utf8を作る。
main.cで、

と書く。

実行するとこうなる。
実行するとこうなる。

実行するとこうなる。

BOM付きUTF-8で出力されている。
BOM付きUTF-8で出力されている。

BOM付きUTF-8で出力されている。

Test/c/write_file_bom_utf8/write_file_bom_utf8/src/write_file_bom_utf8 at master · bg1bgst333/Test · GitHub

write_file_bom_utf16be

UTF-16BE用のBOMを書き込む関数write_file_bom_utf16beを作る。
main.cで、

と書く。

実行するとこうなる。
実行するとこうなる。

実行するとこうなる。

BOM付きUTF-16BEで出力されている
BOM付きUTF-16BEで出力されている

BOM付きUTF-16BEで出力されている。

Test/c/write_file_bom_utf16be/write_file_bom_utf16be/src/write_file_bom_utf16be at master · bg1bgst333/Test · GitHub