From fa48c94e7c6b933b6549d71a64fe8a0b80f4ab6b Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Thu, 27 Nov 2014 09:04:08 +0000 Subject: [PATCH] utf8 dammit --- rudict/rudict/noun.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rudict/rudict/noun.cpp b/rudict/rudict/noun.cpp index faadf75..f764f74 100644 --- a/rudict/rudict/noun.cpp +++ b/rudict/rudict/noun.cpp @@ -202,7 +202,10 @@ std::cout <<"$$" << UTF16to8(nounNominative.c_str()) << std::endl; std::cout << "count" << frequentWordSet.count(nounNominative) << std::endl; -std::wstring huy = *(frequentWordSet.find(L"баран")); +std::wstring huy = L"баран"; + +std::cout <<"h" << (int)huy[0] << " " << (int)huy[1] << " " << (int)huy[2] << " " << (int)huy[3] << " " << (int)huy[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) {