worked on FAT stuff and tests
This commit is contained in:
13
ext/sd/fat32/Helper.h
Normal file
13
ext/sd/fat32/Helper.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user