Initial Commit.

Nothing works here.
This commit is contained in:
2023-01-25 21:00:25 -05:00
commit 0a7fa301ed
46 changed files with 3454 additions and 0 deletions

27
lib/Tools/Tools.h Normal file
View File

@ -0,0 +1,27 @@
#ifndef TOOLS_h
#define TOOLS_h
/** Convert String to slug by making lowercase and
* and replacing spaces with `_`.
*/
String slugify(String input) {
input.toLowerCase();
input.replace(" ", "_");
return input;
}
/** Convert char array to slug by making lowercase and
* and replacing spaces with `_`.
char* slugify(char* input) {
char* output;
strcpy(output, input);
strlwr(output);
for (uint8_t i=0; i<strlen(output); i++)
if (output[i] == ' ') output[i] = '_';
return output;
}
*/
#endif