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

@ -437,7 +437,7 @@ process(const std::string& expr)
/* all control chars become SPC */
std::string str{expr};
for (auto& c: str)
c = ::iscntrl(c) ? ' ' : c;
c = is_ascii_cntrl(c) ? ' ' : c;
while(!str.empty()) {
auto&& element = next_element(str, offset)