Fix Bug 19678 - libc++ does not correctly handle the regex: '[^\0]*'
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@209307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4541,6 +4541,13 @@ basic_regex<_CharT, _Traits>::__parse_character_escape(_ForwardIterator __first,
|
||||
__push_char(_CharT(__sum));
|
||||
++__first;
|
||||
break;
|
||||
case '0':
|
||||
if (__str)
|
||||
*__str = _CharT(0);
|
||||
else
|
||||
__push_char(_CharT(0));
|
||||
++__first;
|
||||
break;
|
||||
default:
|
||||
if (*__first != '_' && !__traits_.isctype(*__first, ctype_base::alnum))
|
||||
{
|
||||
|
Reference in New Issue
Block a user