ICU-2578 regexp, fix assertion failure / internal error on the not-yet-implemented possessive quatifiers
X-SVN-Rev: 10681
This commit is contained in:
parent
904ea6decc
commit
4dec8e4a60
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user