2015-12-29から1日間の記事一覧
// newfeaturs.cpp #include "stdafx.h" // MSC用 // 静的アサート static_assert(sizeof(unsigned short int) == 2, "ushort must have size 2."); // ヌルポインタ void *p = nullptr; // 自動型付け auto a = 0.5f; decltype(a) b = a; auto auto_func(in…
だいぶ前からOS内部は完全にUnicode化されている。 OSの内部コードはUTF-816リトルエンディアンらしい(https://ja.wikipedia.org/wiki/UTF-16) 表面的にはシフトJISも使われている。ユーザーからはシフトJISが見えている。 Unicode文字をワイド文字と呼ぶ…