*この記事はまだ書きかけです。管理人が今後加筆していく予定ですので、参考にする場合は注意してください。 アプリケーションをUnicodeに対応させる †ワイド文字列を扱う場合に注意しなければならないこと。 よくやるのは #ifdef UNICODE // 強引に対応。単独プロジェクトならOK? typedef wregex tregex; // 正直自分でも何してるのか分からない。 typedef wstring tstring; // typedef wsmatch tsmatch; // typedef wstringstream tstringstream; // //typedef wprintf tprintf; // #else // typedef regex tregex; // typedef string tstring; // typedef smatch tsmatch; // typedef stringstream tstringstream; // //typedef wprintf tprintf; // #endif // のように、あくまでどっちつかずな方法。 参考ページ †http://www.246.ne.jp/~y-ookubo/program/tips/unicode.html |