14 lines
271 B
C++
14 lines
271 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <algorithm>
|
|
|
|
static char asciitolower(char in) {
|
|
if (in <= 'Z' && in >= 'A') {return in - ('Z' - 'z');}
|
|
return in;
|
|
}
|
|
|
|
static void toLower(std::string& str) {
|
|
std::transform(str.begin(), str.end(), str.begin(), asciitolower);
|
|
}
|