c++11 - Recognizing lithuanian letters from fstream in C++ -
i have gotten task teacher find out how many letters, figures, whitespaces , other symbols there in given text. problem text written lithuanian letters (Š, š, Ę, ę, Ų, ų, etc.) , don't know how recognize them in c++. calculate count of each type of symbol read text line line getline()
function fstream
string
, iterate through string comparing each character literal, illustration (c >= 'a' && c <= 'z')
means it's uppercase letter, doesn't work lithuanian characters. guess text file saved in unicode format. please help me recognize lithuanian letters in text.
i think have open file binary, (filename, ios::in | ios::binary); , read file byte byte
c++ c++11 text unicode fstream
No comments:
Post a Comment