aboutsummaryrefslogtreecommitdiff
path: root/include/_ctype.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-10-13 20:43:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-10-13 20:43:49 +0000
commitf5dde0166d6658309344f309845075707f207509 (patch)
tree60bcb837e37411501444484bb02600e974770e25 /include/_ctype.h
parent7cefd8ca2a915e8fe9d5565dcc9a562e67c07970 (diff)
downloadsrc-f5dde0166d6658309344f309845075707f207509.tar.gz
src-f5dde0166d6658309344f309845075707f207509.zip
Commit log from Dragonfly:
FreeBSD extended ctypes to include numbers (e.g. isnumber()) but never actually implemented it. The isnumber() function was equivalent to the isdigit() function in every case. Now that DragonFly's ctype source files have number definitions, the number ctype can finally be implemented. It's given a new flag _CTYPE_N. The isalnum() and iswalnum() functions have been changed to use this flag rather than the _CTYPE_D digit flag. While isalnum(), isnumber(), and their wide equivalents now return different values in locale cases, the ishexnumber() and iswhexnumber() functions are unchanged. They are still aliases for isxdigit() and iswxdigit(). Also change ctype.h for isdigit and isxdigit to use sbistype like the other functions. Obtained from: dragonfly
Notes
Notes: svn path=/projects/collation/; revision=289263
Diffstat (limited to 'include/_ctype.h')
-rw-r--r--include/_ctype.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/_ctype.h b/include/_ctype.h
index 2bef5870d905..8a43409e0aa0 100644
--- a/include/_ctype.h
+++ b/include/_ctype.h
@@ -59,6 +59,7 @@
#define _CTYPE_I 0x00080000L /* Ideogram */
#define _CTYPE_T 0x00100000L /* Special */
#define _CTYPE_Q 0x00200000L /* Phonogram */
+#define _CTYPE_N 0x00400000L /* Number (superset of digit) */
#define _CTYPE_SW0 0x20000000L /* 0 width character */
#define _CTYPE_SW1 0x40000000L /* 1 width character */
#define _CTYPE_SW2 0x80000000L /* 2 width character */