summaryrefslogtreecommitdiffstats
path: root/libcxx/src/regex.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-07-27 17:24:17 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-07-27 17:24:17 +0000
commit6afe8b0a23365e692c68273198f81110cf315d8d (patch)
tree9a621c36b8135e73e5780cc10e0c64066d57bf86 /libcxx/src/regex.cpp
parent7639967e6c3c37b61c3f2f4c40bbe7207d1bf20a (diff)
downloadbcm5719-llvm-6afe8b0a23365e692c68273198f81110cf315d8d.tar.gz
bcm5719-llvm-6afe8b0a23365e692c68273198f81110cf315d8d.zip
continued regex development...
llvm-svn: 109512
Diffstat (limited to 'libcxx/src/regex.cpp')
-rw-r--r--libcxx/src/regex.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/src/regex.cpp b/libcxx/src/regex.cpp
index 59591e03723..c84d43e5039 100644
--- a/libcxx/src/regex.cpp
+++ b/libcxx/src/regex.cpp
@@ -50,6 +50,10 @@ make_error_type_string(regex_constants::error_type ecode)
case regex_constants::error_stack:
return "There was insufficient memory to determine whether the regular "
"expression could match the specified character sequence.";
+ case regex_constants::__re_err_grammar:
+ return "An invalid regex grammar has been requested.";
+ case regex_constants::__re_err_empty:
+ return "An empty regex is not allowed in the POSIX grammar.";
default:
break;
}
OpenPOWER on IntegriCloud