void setupLocale() { std::locale rus(""); std::locale glob = std::locale::global(std::locale()); std::locale loc(glob, rus, std::locale::ctype); std::locale::global(loc); }
void IqHelpViewerMainWindow::rusificateFindString() { if (m_rusLocaleButton->isChecked()) { m_findStringLineEdit->setText(rus(m_findStringLineEdit->text())); } else { m_findStringLineEdit->setText(lat(m_findStringLineEdit->text())); } }
void main(void) { unsigned char ch; int i = 0; while ((ch = getchar()) != (unsigned char)EOF) { if (ch == '\n' || ch == '\t' || ch == ' ') continue; else { if (rus(ch)) word[i++] = ch; else printf(Rus("\n Не русская буква %d \n"), ch); } } printf("%s \n %d \n", word, i); system("pause"); }