forked from boostorg/regex
Added tests for deprecated and POSIX functions.
[SVN r22805]
This commit is contained in:
1 parent
bb264b055f
commit
03694d72ae
14 files changed
+466
-136
No files matched your search
@@ -74,7 +74,10 @@ BOOST_REGEX_DECL int BOOST_REGEX_CCALL regcompW(regex_tW* expression, const wcha
|
||||
}
|
||||
|
||||
if(f & REG_NOSUB)
|
||||
{
|
||||
expression->eflags |= match_any;
|
||||
flags |= wregex::nosubs;
|
||||
}
|
||||
|
||||
if(f & REG_NOSPEC)
|
||||
flags |= wregex::literal;
|
||||
@@ -100,7 +103,12 @@ BOOST_REGEX_DECL int BOOST_REGEX_CCALL regcompW(regex_tW* expression, const wcha
|
||||
expression->re_nsub = static_cast<wregex*>(expression->guts)->mark_count() - 1;
|
||||
result = static_cast<wregex*>(expression->guts)->error_code();
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
} catch(...)
|
||||
}
|
||||
catch(const boost::bad_expression& be)
|
||||
{
|
||||
result = be.errorno();
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
result = REG_E_UNKNOWN;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user