From b1878507f96d0c156e7b7518c35bab22f440d9d3 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Thu, 27 Nov 2014 09:14:29 +0000 Subject: [PATCH] utf8 dammit --- rudict/rudict/noun.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rudict/rudict/noun.cpp b/rudict/rudict/noun.cpp index f764f74..38b2ea6 100644 --- a/rudict/rudict/noun.cpp +++ b/rudict/rudict/noun.cpp @@ -202,9 +202,11 @@ std::cout <<"$$" << UTF16to8(nounNominative.c_str()) << 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; if (nounNominative == huy)