summaryrefslogtreecommitdiffstats
path: root/libcxx/src/regex.cpp
diff options
context:
space:
mode:
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