Upstream Bionic definitions of ctype_base/regex.
authorDan Albert <danalbert@google.com>
Mon, 6 Apr 2020 20:34:27 +0000 (13:34 -0700)
committerDan Albert <danalbert@google.com>
Mon, 6 Apr 2020 20:38:16 +0000 (13:38 -0700)
commitcbf1904a3e054357806163b12547e1bed1641d5c
tree9f8706aea1c54d04a8e9fc4a8b75f8bb3336d6e2
parent6f9ea26002914cd3bcc27f09e65a151c81682352
Upstream Bionic definitions of ctype_base/regex.

Summary:
This is a patch that Android has been carrying in its tree for several
years. This patch upstreams the existing ABI.

There's some historical cruft here. __regex_word used to be a part of
regex_traits rather than ctype_base. Bionic also used to use its own
ctype implementation because the libc++ builtin one wasn't available
yet. Bionic's ctype masks were 8 bits wide and already saturated, so a
wider type needed to be used for the regex mask, and the existing
value was already used so Android needed to specify its own.

Since then Android has migrated to the builtin ctype implementation
and this patch probably should have been dropped then. Unfortunately
that was not noticed at the time, so now we need to keep this to
maintain the current ABI.

Reviewers: EricWF, #libc, ldionne

Reviewed By: #libc, ldionne

Subscribers: dexonsmith, ldionne, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D76171
libcxx/include/__locale
libcxx/include/regex