Start remote storage work. (Unbuild. Untested.)

This commit is contained in:
J-D-K
2025-03-06 13:19:01 -05:00
parent 11672043c3
commit 6b2283d45b
53 changed files with 1566 additions and 277 deletions

View File

@@ -36,6 +36,15 @@ void stringutil::replace_in_string(std::string &target, std::string_view find, s
}
}
void stringutil::strip_character(char c, std::string &target)
{
size_t charPosition = 0;
while ((charPosition = target.find_first_of(c, charPosition)) != target.npos)
{
target.erase(target.begin() + charPosition);
}
}
bool stringutil::sanitize_string_for_path(const char *stringIn, char *stringOut, size_t stringOutSize)
{
uint32_t codepoint = 0;