From 806a0ed81a0586d29c152e370f670ed90cfc6328 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 24 Dec 2011 17:31:27 +0000 Subject: [PATCH] Fix typos. Refs #6003. [SVN r76138] --- doc/history.qbk | 2 +- include/boost/regex/v4/basic_regex_parser.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/history.qbk b/doc/history.qbk index 8b7dd63e..168fdf2a 100644 --- a/doc/history.qbk +++ b/doc/history.qbk @@ -126,7 +126,7 @@ and * 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. * 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] diff --git a/include/boost/regex/v4/basic_regex_parser.hpp b/include/boost/regex/v4/basic_regex_parser.hpp index 87ff6e20..f524673d 100644 --- a/include/boost/regex/v4/basic_regex_parser.hpp +++ b/include/boost/regex/v4/basic_regex_parser.hpp @@ -200,9 +200,9 @@ void basic_regex_parser::fail(regex_constants::error_type error_c if(error_code != regex_constants::error_empty) { 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 - message += " The error occured while parsing the regular expression: '"; + message += " The error occurred while parsing the regular expression: '"; if(start_pos != end_pos) { message += std::string(m_base + start_pos, m_base + position);