ICU-2578 regexp, fix assertion failure / internal error on the not-yet-implemented possessive quatifiers

X-SVN-Rev: 10681
This commit is contained in:
Andy Heninger 2002-12-16 00:14:31 +00:00
parent 904ea6decc
commit 4dec8e4a60
2 changed files with 12 additions and 0 deletions

View File

@ -822,6 +822,13 @@ UBool RegexCompile::doParseActions(EParseAction action)
error(U_REGEX_UNIMPLEMENTED);
break;
case doPossesiveStar:
case doPossesivePlus:
case doPossesiveOpt:
// TODO: implement
error(U_REGEX_UNIMPLEMENTED);
break;
case doMatchMode: // (?i) and similar
// TODO: implement
error(U_REGEX_UNIMPLEMENTED);

View File

@ -1237,6 +1237,11 @@ void RegexTest::Errors() {
// {Numeric Quantifiers}
REGEX_ERR("abc{4}", 1, 5, U_REGEX_UNIMPLEMENTED);
// Possessive Quantifiers
REGEX_ERR("abc++d", 1, 5, U_REGEX_UNIMPLEMENTED);
REGEX_ERR("abc*+d", 1, 5, U_REGEX_UNIMPLEMENTED);
REGEX_ERR("abc?+d", 1, 5, U_REGEX_UNIMPLEMENTED);
// Attempt to use non-default flags
{
UParseError pe;