Fix ctype_base::xdigit for Android.
Android's ctype implementation comes from openbsd, which for some reason doesn't consider numbers to be hex digits. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@213785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de2404b16c
commit
2a52a3237f
@ -366,7 +366,12 @@ public:
|
|||||||
static const mask alpha = _CTYPE_A;
|
static const mask alpha = _CTYPE_A;
|
||||||
static const mask digit = _CTYPE_D;
|
static const mask digit = _CTYPE_D;
|
||||||
static const mask punct = _CTYPE_P;
|
static const mask punct = _CTYPE_P;
|
||||||
|
# if defined(__ANDROID__)
|
||||||
|
static const mask xdigit = _CTYPE_X | _CTYPE_D;
|
||||||
|
# else
|
||||||
static const mask xdigit = _CTYPE_X;
|
static const mask xdigit = _CTYPE_X;
|
||||||
|
# endif
|
||||||
|
|
||||||
# if defined(__NetBSD__)
|
# if defined(__NetBSD__)
|
||||||
static const mask blank = _CTYPE_BL;
|
static const mask blank = _CTYPE_BL;
|
||||||
# else
|
# else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user