summaryrefslogtreecommitdiffstats
path: root/libcxx/include/regex
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-05-21 16:29:50 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-05-21 16:29:50 +0000
commit9393b5113ba85474b08be0647eed95572863c251 (patch)
treec64837a1c464939be99cd117c878fff788c6e94b /libcxx/include/regex
parent4aa7340d145db76aac29b3aa28de6988157e62f1 (diff)
downloadbcm5719-llvm-9393b5113ba85474b08be0647eed95572863c251.tar.gz
bcm5719-llvm-9393b5113ba85474b08be0647eed95572863c251.zip
Fix Bug 19678 - libc++ does not correctly handle the regex: '[^\0]*'
llvm-svn: 209307
Diffstat (limited to 'libcxx/include/regex')
-rw-r--r--libcxx/include/regex7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex
index 26ade48baf7..bebbaf09835 100644
--- a/libcxx/include/regex
+++ b/libcxx/include/regex
@@ -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))
{
OpenPOWER on IntegriCloud