我想知道这样做安全吗?
wchar_t wide = /* something */; assert(wide >= 0 && wide < 256 &&); char myChar = static_cast<char>(wide);
如果我非常确定宽字符将落在ASCII范围内。
https://stackoverflow.com/questions/3019977
相似问题