worked on FAT stuff and tests

This commit is contained in:
2021-02-21 21:04:11 +01:00
parent 4ac72c678f
commit 2e281f6d26
12 changed files with 758 additions and 396 deletions

13
ext/sd/fat32/Helper.h Normal file
View 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);
}