lib: use ascii ctype utils

Use the new ascii ctype utils.
This commit is contained in:
Dirk-Jan C. Binnema
2026-07-21 13:23:38 +03:00
committed by Seth Ladygo
parent f2960a197e
commit 502c9cd67b
8 changed files with 23 additions and 20 deletions

View File

@ -49,7 +49,8 @@ cook(const std::string& fname, const std::vector<char>& forbidden)
clean.reserve(fname.length());
for (auto& c: basename(fname))
if (seq_some(forbidden,[&](char fc){return ::iscntrl(c) || c == fc;}))
if (seq_some(forbidden,[&](char fc){
return is_ascii_cntrl(c) || c == fc;}))
clean += '-';
else
clean += c;