Anonymous user
Word frequency: Difference between revisions
Modify C++ alternative to ignore case differences, as required by the problem specification.
mNo edit summary |
(Modify C++ alternative to ignore case differences, as required by the problem specification.) |
||
Line 1,524:
auto word = match.str();
if (word.size() > 0) {
transform (word.begin(), word.end(), word.begin(), ::tolower);
auto entry = freq.find(word);
if (entry != freq.end()) {
|