More checks for printable asciis

This commit is contained in:
2025-11-03 20:46:12 +01:00
parent d0de7b8f3b
commit 70f7289c8c
3 changed files with 27 additions and 8 deletions

View File

@@ -238,3 +238,16 @@ std::string utils::catv(std::string_view view)
}
return result;
}
bool utils::is_printable_ascii(std::string view)
{
for(char c : view)
{
if( !(c >= ' ' && c <= '~'))
{
return false;
}
}
return true;
}