2008-10-08から1日間の記事一覧

C++0x UTF-8リテラル

C++

u8 プレフィックスを付加された文字列は、 UTF-8 にエンコードされた const char の配列になります。 const char* s = u8"abc"; Raw String Literal にしたい場合は、 u8R を使用します。 const char* s = u8R"a\nb"; N2442 Raw and Unicode String Literals…