Base regex code on char_class_type.
authorDan Albert <danalbert@google.com>
Tue, 29 Jul 2014 19:23:39 +0000 (19:23 +0000)
committerDan Albert <danalbert@google.com>
Tue, 29 Jul 2014 19:23:39 +0000 (19:23 +0000)
commit15c010a37e28f28b85fc08a3fa5c3b8090217500
tree99d13a684a6a5a943f50f8b453ef8baa58f7f38c
parent924e9e0226662e0673545d97ea6f3394a81388ad
Base regex code on char_class_type.

__get_classname() and __bracket_expression were assuming that
char_class_type was ctype_base::mask rather than using
regex_traits<_CharT>::char_class_type.

This change allows char_class_type to be defined to something other than
ctype_base::mask so that the implementation will still work for
platforms with an 8-bit ctype mask (such as Android and OpenBSD).

llvm-svn: 214201
libcxx/include/regex
libcxx/src/regex.cpp
libcxx/test/re/re.traits/lookup_classname.pass.cpp