feat(ctype): classification and case-mapping tables

This commit is contained in:
2026-09-03 20:03:07 -04:00
parent 858fc1762c
commit 20f514d91c
5 changed files with 691 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <ctype.h>
/*
* Clear every bit above the low 7 of c. Pure bit arithmetic: defined for
* every int value, EOF included (toascii(-1) is 0x7f).
*/
int
toascii(int c)
{
return c & 0x7f;
}