From e2632f2f2f9fff6f5b4875c6ba27383235dcd7f9 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 29 Nov 2012 10:28:07 +0000 Subject: [PATCH] Suppress GCC warning and update History log. Regenerate docs. Fixes #7644. [SVN r81620] --- doc/history.qbk | 5 + .../boost_regex/background_information.html | 2 +- .../acknowledgements.html | 2 +- .../background_information/examples.html | 10 +- .../background_information/faq.html | 2 +- .../background_information/futher.html | 2 +- .../background_information/headers.html | 2 +- .../background_information/history.html | 82 ++++++++------ .../background_information/locale.html | 10 +- .../background_information/performance.html | 4 +- .../background_information/redist.html | 2 +- .../background_information/standards.html | 12 +-- .../background_information/thread_safety.html | 2 +- doc/html/boost_regex/captures.html | 10 +- doc/html/boost_regex/configuration.html | 2 +- .../boost_regex/configuration/algorithm.html | 2 +- .../boost_regex/configuration/compiler.html | 2 +- .../boost_regex/configuration/linkage.html | 2 +- .../boost_regex/configuration/locale.html | 2 +- .../boost_regex/configuration/tuning.html | 2 +- doc/html/boost_regex/format.html | 2 +- .../format/boost_format_syntax.html | 10 +- doc/html/boost_regex/format/perl_format.html | 2 +- doc/html/boost_regex/format/sed_format.html | 2 +- doc/html/boost_regex/install.html | 22 ++-- .../introduction_and_overview.html | 2 +- doc/html/boost_regex/partial_matches.html | 4 +- doc/html/boost_regex/ref.html | 2 +- doc/html/boost_regex/ref/bad_expression.html | 6 +- doc/html/boost_regex/ref/basic_regex.html | 8 +- doc/html/boost_regex/ref/concepts.html | 2 +- .../ref/concepts/charT_concept.html | 2 +- .../ref/concepts/iterator_concepts.html | 2 +- .../ref/concepts/traits_concept.html | 6 +- .../ref/deprecated_interfaces.html | 2 +- .../ref/deprecated_interfaces/old_regex.html | 2 +- .../deprecated_interfaces/regex_format.html | 4 +- .../ref/deprecated_interfaces/regex_grep.html | 2 +- .../deprecated_interfaces/regex_split.html | 2 +- doc/html/boost_regex/ref/error_type.html | 6 +- .../boost_regex/ref/internal_details.html | 2 +- .../ref/internal_details/uni_iter.html | 6 +- doc/html/boost_regex/ref/match_flag_type.html | 4 +- doc/html/boost_regex/ref/match_results.html | 12 +-- doc/html/boost_regex/ref/non_std_strings.html | 2 +- .../boost_regex/ref/non_std_strings/icu.html | 2 +- .../ref/non_std_strings/icu/intro.html | 4 +- .../ref/non_std_strings/icu/unicode_algo.html | 8 +- .../ref/non_std_strings/icu/unicode_iter.html | 6 +- .../non_std_strings/icu/unicode_types.html | 2 +- .../ref/non_std_strings/mfc_strings.html | 2 +- .../non_std_strings/mfc_strings/mfc_algo.html | 12 +-- .../mfc_strings/mfc_intro.html | 2 +- .../non_std_strings/mfc_strings/mfc_iter.html | 6 +- .../mfc_strings/mfc_regex_create.html | 2 +- .../mfc_strings/mfc_regex_types.html | 2 +- doc/html/boost_regex/ref/posix.html | 10 +- doc/html/boost_regex/ref/regex_iterator.html | 6 +- doc/html/boost_regex/ref/regex_match.html | 6 +- doc/html/boost_regex/ref/regex_replace.html | 6 +- doc/html/boost_regex/ref/regex_search.html | 6 +- .../boost_regex/ref/regex_token_iterator.html | 6 +- doc/html/boost_regex/ref/regex_traits.html | 8 +- doc/html/boost_regex/ref/sub_match.html | 12 +-- .../boost_regex/ref/syntax_option_type.html | 2 +- .../syntax_option_type_basic.html | 2 +- .../syntax_option_type_extended.html | 2 +- .../syntax_option_type_literal.html | 2 +- .../syntax_option_type_overview.html | 2 +- .../syntax_option_type_perl.html | 2 +- .../syntax_option_type_synopsis.html | 2 +- doc/html/boost_regex/syntax.html | 4 +- .../boost_regex/syntax/basic_extended.html | 72 ++++++------- doc/html/boost_regex/syntax/basic_syntax.html | 48 ++++----- .../boost_regex/syntax/character_classes.html | 2 +- .../optional_char_class_names.html | 2 +- .../character_classes/std_char_clases.html | 2 +- .../boost_regex/syntax/collating_names.html | 2 +- .../syntax/collating_names/digraphs.html | 2 +- .../syntax/collating_names/named_unicode.html | 2 +- .../collating_names/posix_symbolic_names.html | 2 +- .../syntax/leftmost_longest_rule.html | 2 +- doc/html/boost_regex/syntax/perl_syntax.html | 102 +++++++++--------- doc/html/boost_regex/unicode.html | 8 +- doc/html/index.html | 4 +- include/boost/regex/v4/cpp_regex_traits.hpp | 5 +- 86 files changed, 341 insertions(+), 315 deletions(-) diff --git a/doc/history.qbk b/doc/history.qbk index 3be7549f..8de86545 100644 --- a/doc/history.qbk +++ b/doc/history.qbk @@ -15,6 +15,11 @@ Currently open issues can be viewed [@https://svn.boost.org/trac/boost/query?sta All issues including closed ones can be viewed [@https://svn.boost.org/trac/boost/query?status=assigned&status=closed&status=new&status=reopened&component=regex&order=priority&col=id&col=summary&col=status&col=type&col=milestone&col=component here]. +[h4 Boost-1.53] + +Fixed Issues: +[@https://svn.boost.org/trac/boost/ticket/7744 #7744], [@https://svn.boost.org/trac/boost/ticket/7644 #7644]. + [h4 Boost-1.51] Fixed issues: diff --git a/doc/html/boost_regex/background_information.html b/doc/html/boost_regex/background_information.html index 1b0b2063..72f8f389 100644 --- a/doc/html/boost_regex/background_information.html +++ b/doc/html/boost_regex/background_information.html @@ -3,7 +3,7 @@ Background Information - + diff --git a/doc/html/boost_regex/background_information/acknowledgements.html b/doc/html/boost_regex/background_information/acknowledgements.html index a10093fd..629f3ec4 100644 --- a/doc/html/boost_regex/background_information/acknowledgements.html +++ b/doc/html/boost_regex/background_information/acknowledgements.html @@ -3,7 +3,7 @@ Acknowledgements - + diff --git a/doc/html/boost_regex/background_information/examples.html b/doc/html/boost_regex/background_information/examples.html index b566bcd5..d5bb96bb 100644 --- a/doc/html/boost_regex/background_information/examples.html +++ b/doc/html/boost_regex/background_information/examples.html @@ -3,7 +3,7 @@ Test and Example Programs - + @@ -29,7 +29,7 @@
- Test + Test Programs

@@ -45,7 +45,7 @@

Files:

-
- Character + Character Properties

@@ -1003,7 +1003,7 @@

- Word + Word Boundaries

@@ -1023,7 +1023,7 @@

- Buffer + Buffer boundaries

@@ -1051,7 +1051,7 @@

- Continuation + Continuation Escape

@@ -1063,7 +1063,7 @@

- Quoting + Quoting escape

@@ -1077,7 +1077,7 @@

- Unicode + Unicode escapes

@@ -1088,7 +1088,7 @@

- Matching Line + Matching Line Endings

@@ -1097,7 +1097,7 @@

- Keeping back + Keeping back some text

@@ -1112,7 +1112,7 @@

- Any + Any other escape

@@ -1121,7 +1121,7 @@

- Perl Extended + Perl Extended Patterns

@@ -1130,7 +1130,7 @@

- Named + Named Subexpressions

@@ -1152,14 +1152,14 @@

- Comments + Comments

(?# ... ) is treated as a comment, it's contents are ignored.

- Modifiers + Modifiers

(?imsx-imsx ... ) alters which of the perl modifiers are @@ -1173,7 +1173,7 @@

- Non-marking + Non-marking groups

@@ -1182,7 +1182,7 @@

- Branch + Branch reset

@@ -1205,7 +1205,7 @@

- Lookahead + Lookahead

(?=pattern) consumes zero characters, only if pattern @@ -1228,7 +1228,7 @@

- Lookbehind + Lookbehind

(?<=pattern) consumes zero characters, only if pattern @@ -1242,7 +1242,7 @@

- Independent + Independent sub-expressions

@@ -1255,7 +1255,7 @@

- Recursive + Recursive Expressions

@@ -1282,7 +1282,7 @@

- Conditional + Conditional Expressions

@@ -1304,7 +1304,7 @@

Here is a summary of the possible predicates:

-

- What + What gets matched

@@ -1565,7 +1565,7 @@

- Variations + Variations

The options @@ -1574,7 +1574,7 @@

- Options + Options

There are a variety @@ -1586,7 +1586,7 @@

- Pattern + Pattern Modifiers

@@ -1598,7 +1598,7 @@

- References + References

Perl 5.8. diff --git a/doc/html/boost_regex/unicode.html b/doc/html/boost_regex/unicode.html index b8af3f00..43f1c7ec 100644 --- a/doc/html/boost_regex/unicode.html +++ b/doc/html/boost_regex/unicode.html @@ -3,7 +3,7 @@ Unicode and Boost.Regex - + @@ -31,7 +31,7 @@

- Rely + Rely on wchar_t

@@ -41,7 +41,7 @@ std::iswlower etc), then you can use boost::wregex to process Unicode. However, there are several disadvantages to this approach:

-
- +

Last revised: March 28, 2012 at 11:56:40 GMT

Last revised: November 29, 2012 at 10:11:43 GMT


diff --git a/include/boost/regex/v4/cpp_regex_traits.hpp b/include/boost/regex/v4/cpp_regex_traits.hpp index bcae455a..d60942f0 100644 --- a/include/boost/regex/v4/cpp_regex_traits.hpp +++ b/include/boost/regex/v4/cpp_regex_traits.hpp @@ -20,6 +20,7 @@ #define BOOST_CPP_REGEX_TRAITS_HPP_INCLUDED #include +#include #ifndef BOOST_NO_STD_LOCALE @@ -107,12 +108,14 @@ template typename parser_buf::pos_type parser_buf::seekoff(off_type off, ::std::ios_base::seekdir way, ::std::ios_base::openmode which) { + typedef typename boost::int_t::least cast_type; + if(which & ::std::ios_base::out) return pos_type(off_type(-1)); std::ptrdiff_t size = this->egptr() - this->eback(); std::ptrdiff_t pos = this->gptr() - this->eback(); charT* g = this->eback(); - switch(way) + switch(static_cast(way)) { case ::std::ios_base::beg: if((off < 0) || (off > size))