mirror of
https://github.com/boostorg/regex.git
synced 2025-07-17 14:22:08 +02:00
@ -126,7 +126,7 @@ and
|
|||||||
* Added Unicode support; based on ICU.
|
* Added Unicode support; based on ICU.
|
||||||
* Changed newline support to recognise \\f as a line separator (all character types), and \\x85 as a line separator for wide characters / Unicode only.
|
* Changed newline support to recognise \\f as a line separator (all character types), and \\x85 as a line separator for wide characters / Unicode only.
|
||||||
* Added a new format flag format_literal that treats the replace string as a literal, rather than a Perl or Sed style format string.
|
* Added a new format flag format_literal that treats the replace string as a literal, rather than a Perl or Sed style format string.
|
||||||
* Errors are now reported by throwing exceptions of type regex_error. The types used previously - bad_expression and bad_pattern - are now just typedefs for regex_error. Type regex_error has a couple of new members: code() to report an error code rather than a string, and position() to report where in the expression the error occured.
|
* Errors are now reported by throwing exceptions of type regex_error. The types used previously - bad_expression and bad_pattern - are now just typedefs for regex_error. Type regex_error has a couple of new members: code() to report an error code rather than a string, and position() to report where in the expression the error occurred.
|
||||||
|
|
||||||
[h4 Boost 1.32.1]
|
[h4 Boost 1.32.1]
|
||||||
|
|
||||||
|
@ -200,9 +200,9 @@ void basic_regex_parser<charT, traits>::fail(regex_constants::error_type error_c
|
|||||||
if(error_code != regex_constants::error_empty)
|
if(error_code != regex_constants::error_empty)
|
||||||
{
|
{
|
||||||
if((start_pos != 0) || (end_pos != (m_end - m_base)))
|
if((start_pos != 0) || (end_pos != (m_end - m_base)))
|
||||||
message += " The error occured while parsing the regular expression fragment: '";
|
message += " The error occurred while parsing the regular expression fragment: '";
|
||||||
else
|
else
|
||||||
message += " The error occured while parsing the regular expression: '";
|
message += " The error occurred while parsing the regular expression: '";
|
||||||
if(start_pos != end_pos)
|
if(start_pos != end_pos)
|
||||||
{
|
{
|
||||||
message += std::string(m_base + start_pos, m_base + position);
|
message += std::string(m_base + start_pos, m_base + position);
|
||||||
|
Reference in New Issue
Block a user