utf8 dammit

This commit is contained in:
Vladislav Khorev 2014-11-27 09:14:29 +00:00
parent fa48c94e7c
commit b1878507f9

View File

@ -202,9 +202,11 @@ std::cout <<"$$" << UTF16to8(nounNominative.c_str()) << std::endl;
std::cout << "count" << frequentWordSet.count(nounNominative) << std::endl; std::cout << "count" << frequentWordSet.count(nounNominative) << std::endl;
std::wstring huy = L"баран"; std::wstring huy = *(frequentWordSet.begin());
std::cout <<"h" << (int)huy[0] << " " << (int)huy[1] << " " << (int)huy[2] << " " << (int)huy[3] << " " << (int)huy[4] << std::endl; std::cout << "sizeof"<< sizeof(wchar_t) << std::endl;
std::cout <<"h" << (int)huy[0] << std::endl;
std::cout << "n" << (int)nounNominative[0] << " " << (int)nounNominative[1] << " " << (int)nounNominative[2] << " " << (int)nounNominative[3] << " " << (int)nounNominative[4] << std::endl; std::cout << "n" << (int)nounNominative[0] << " " << (int)nounNominative[1] << " " << (int)nounNominative[2] << " " << (int)nounNominative[3] << " " << (int)nounNominative[4] << std::endl;
if (nounNominative == huy) if (nounNominative == huy)