Files
ESP8266lib/ext/sd/fat32/Helper.h
2021-02-21 21:04:11 +01:00

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);
}