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

@ -105,8 +105,7 @@ struct MessageFlagInfo {
* @return lower-case shortcut
*/
constexpr char shortcut_lower() const {
return shortcut >= 'A' && shortcut <= 'Z' ?
shortcut + ('a' - 'A') : shortcut;
return to_ascii_lower(shortcut);
}
};