2010-03-15から1日間の記事一覧

mbstowcs, wcstombs

http://d.hatena.ne.jp/janus_wel/20100315/1268654296 の C 標準関数版。 // nwconv_c.hpp #ifndef NWCONV_C_HPP #define NWCONV_C_HPP #include <string> #include <vector> #include <cstdlib> #include "../../header/wexcept.hpp" #ifdef _MSC_VER # include <errno.h> #endif namespace u</errno.h></cstdlib></vector></string>…

codecvt

てなわけで ( http://d.hatena.ne.jp/janus_wel/20100313/1268483725 ) 実際に narrow character と wide character の変換をする code を書いてみた。つっても sample 的なものだとアレなので class としてまとめて使いやすくしたものを。てか codecvt face…