diff --git a/doc/basic_regex.qbk b/doc/basic_regex.qbk index 73816a1d..2ef33014 100644 --- a/doc/basic_regex.qbk +++ b/doc/basic_regex.qbk @@ -447,7 +447,7 @@ The returned iterators are relative to `begin()` and `end()`. [*Requires]: The expression must have been compiled with the [syntax_option_type] save_subexpression_location set. Argument -/n/ must be in within the range `1 <= n < mark_count()`. +/n/ must be in within the range `0 <= n < mark_count()`. [#boost_regex.basic_regex.begin] @@ -487,7 +487,7 @@ otherwise false. size_type mark_count() const; -[*Effects]: Returns the number of marked sub-expressions within the regular expresion. +[*Effects]: Returns the number of marked sub-expressions within the regular expression. [#boost_regex.basic_regex.assign1] diff --git a/doc/character_class_names.qbk b/doc/character_class_names.qbk index e4771aa5..e640e1d4 100644 --- a/doc/character_class_names.qbk +++ b/doc/character_class_names.qbk @@ -8,7 +8,7 @@ [section:character_classes Character Class Names] -[section:std_char_clases Character Classes that are Always Supported] +[section:std_char_classes Character Classes that are Always Supported] The following character class names are always supported by Boost.Regex: diff --git a/doc/concepts.qbk b/doc/concepts.qbk index d6758967..d3f6d837 100644 --- a/doc/concepts.qbk +++ b/doc/concepts.qbk @@ -38,7 +38,7 @@ Note: type charT is not required to support this operation, if the traits class [section:traits_concept Traits Class Requirements] There are two sets of requirements for the `traits` template argument to -[basic_regex]: a mininal interface (which is part of the regex standardization proposal), +[basic_regex]: a minimal interface (which is part of the regex standardization proposal), and an optional Boost-specific enhanced interface. [h4 Minimal requirements.] @@ -77,7 +77,7 @@ an object of type `X::locale_type`. The following additional requirements are strictly optional, however in order for [basic_regex] to take advantage of these additional interfaces, all of the following requirements must be met; [basic_regex] -will detect the presence or absense of the member `boost_extensions_tag` and +will detect the presence or absence of the member `boost_extensions_tag` and configure itself appropriately. @@ -89,8 +89,8 @@ configure itself appropriately. [[v.translate(c, b)][X::char_type][Returns a character d such that: for any character d that is to be considered equivalent to c then `v.translate(c,false)==v.translate(d,false)`. Likewise for all characters C that are to be considered equivalent to c when comparisons are to be performed without regard to case, then `v.translate(c,true)==v.translate(C,true)`.]] [[v.toi(I1, I2, i)][An integer type capable of holding either a charT or an int.][Behaves as follows: if `p == q` or if `*p` is not a digit character then returns -1. Otherwise performs formatted numeric input on the sequence \[p,q) and returns the result as an int. Postcondition: either p == q or *p is a non-digit character.]] [[v.error_string(I)][std::string][Returns a human readable error string for the error condition i, where i is one of the values enumerated by type regex_constants::error_type. If the value /I/ is not recognized then returns the string "Unknown error" or a localized equivalent.]] -[[v.tolower(c)][X::char_type][Converts c to lower case, used for Perl-style \l and \L formating operations.]] -[[v.toupper(c)][X::char_type][Converts c to upper case, used for Perl-style \u and \U formating operations.]] +[[v.tolower(c)][X::char_type][Converts c to lower case, used for Perl-style \l and \L formatting operations.]] +[[v.toupper(c)][X::char_type][Converts c to upper case, used for Perl-style \u and \U formatting operations.]] ] [endsect] diff --git a/doc/configuration.qbk b/doc/configuration.qbk index 411f0722..080adf1c 100644 --- a/doc/configuration.qbk +++ b/doc/configuration.qbk @@ -68,10 +68,10 @@ The following options apply only if BOOST_REGEX_NON_RECURSIVE is set. [table [[macro][description]] [[BOOST_REGEX_BLOCKSIZE][In non-recursive mode, Boost.Regex uses largish blocks of memory to act as a stack for the state machine, the larger the block size then the fewer allocations that will take place. This defaults to 4096 bytes, which is large enough to match the vast majority of regular expressions without further allocations, however, you can choose smaller or larger values depending upon your platforms characteristics.]] -[[BOOST_REGEX_MAX_BLOCKS][Tells Boost.Regex how many blocks of size BOOST_REGEX_BLOCKSIZE it is permitted to use. If this value is exceeded then Boost.Regex will stop trying to find a match and throw a std::runtime_error. Defaults to 1024, don't forget to tweek this value if you alter BOOST_REGEX_BLOCKSIZE by much.]] +[[BOOST_REGEX_MAX_BLOCKS][Tells Boost.Regex how many blocks of size BOOST_REGEX_BLOCKSIZE it is permitted to use. If this value is exceeded then Boost.Regex will stop trying to find a match and throw a std::runtime_error. Defaults to 1024, don't forget to tweak this value if you alter BOOST_REGEX_BLOCKSIZE by much.]] [[BOOST_REGEX_MAX_CACHE_BLOCKS][Tells Boost.Regex how many memory blocks to store in it's internal cache - memory blocks are taken from this cache rather than by calling - ::operator new. Generally speeking this can be an order of magnitude faster than + ::operator new. Generally speaking this can be an order of magnitude faster than calling ::opertator new each time a memory block is required, but has the downside that Boost.Regex can end up caching a large chunk of memory (by default up to 16 blocks each of BOOST_REGEX_BLOCKSIZE size). If memory is tight then try diff --git a/doc/format_sed_syntax.qbk b/doc/format_sed_syntax.qbk index 30706ebe..669b47f7 100644 --- a/doc/format_sed_syntax.qbk +++ b/doc/format_sed_syntax.qbk @@ -13,7 +13,7 @@ Sed-style format strings treat all characters as literals except: [table [[character][description]] [[&][The ampersand character is replaced in the output stream by - the the whole of what matched the regular expression. Use + the whole of what matched the regular expression. Use \\& to output a literal '&' character.]] [[\\][Specifies an escape sequence.]] ] diff --git a/doc/history.qbk b/doc/history.qbk index cd2c09af..e4d819a7 100644 --- a/doc/history.qbk +++ b/doc/history.qbk @@ -15,6 +15,13 @@ 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 Post 1.55] + +* [*Breaking change:] corrected behavior of `basic_regex<>::mark_count()` to match existing documentation, +`basic_regex<>::subexpression(n)` changed to match, see [@https://svn.boost.org/trac/boost/ticket/9227 #9227] +* Fixed issue [@https://svn.boost.org/trac/boost/ticket/8903 #8903]. +* Fixed documentation typos from [@https://svn.boost.org/trac/boost/ticket/9283 #9283]. + [h4 Boost-1.54] Fixed issue [@https://svn.boost.org/trac/boost/ticket/8569 #8569]. @@ -119,9 +126,9 @@ and * Fixed configuration setup to allow building with VC7.1 - STLport-4.6.2 when using /Zc:wchar_t. * Moved declarations class-inline in static_mutex.hpp so that SGI Irix compiler can cope. * Added needed standard library #includes to fileiter.hpp, regex_workaround.hpp and cpp_regex_traits.hpp. -* Fixed a bug where non-greedy repeats could in certain strange curcumstances repeat more times than their maximum value. +* Fixed a bug where non-greedy repeats could in certain strange circumstances repeat more times than their maximum value. * Fixed the value returned by basic_regex<>::empty() from a default constructed object. -* Changed the deffinition of regex_error to make it backwards compatible with Boost-1.32.0. +* Changed the definition of regex_error to make it backwards compatible with Boost-1.32.0. * Disabled external templates for Intel C++ 8.0 and earlier - otherwise unresolved references can occur. * Rewritten extern template code for gcc so that only specific member functions are exported: otherwise strange unresolved references can occur when linking and mixing debug and non-debug code. * Initialise all the data members of the unicode_iterators: this keeps gcc from issuing needless warnings. diff --git a/doc/html/boost_regex/background_information.html b/doc/html/boost_regex/background_information.html index f64afd31..c8a3dbfc 100644 --- a/doc/html/boost_regex/background_information.html +++ b/doc/html/boost_regex/background_information.html @@ -22,7 +22,7 @@
-Fixed issue #8569.
@@ -51,7 +68,7 @@ #7644.
@@ -61,7 +78,7 @@ #6346.
@@ -70,7 +87,7 @@ expression.
@@ -80,7 +97,7 @@ #5736.
@@ -92,7 +109,7 @@ #5504.
@@ -110,7 +127,7 @@ #3890
Tells Boost.Regex how many memory blocks to store in it's internal cache - memory blocks are taken from this cache rather than by - calling ::operator new. Generally speeking this can be an order + calling ::operator new. Generally speaking this can be an order of magnitude faster than calling ::opertator new each time a memory block is required, but has the downside that Boost.Regex can end up caching a large chunk of memory (by default up to 16 blocks diff --git a/doc/html/boost_regex/format.html b/doc/html/boost_regex/format.html index 794b2b08..d3894ded 100644 --- a/doc/html/boost_regex/format.html +++ b/doc/html/boost_regex/format.html @@ -22,7 +22,7 @@
-The ampersand character is replaced in the output stream by the - the whole of what matched the regular expression. Use \& to - output a literal '&' character. + whole of what matched the regular expression. Use \& to output + a literal '&' character.
- For iterating through all occurences of an expression within a text, there
+ For iterating through all occurrences of an expression within a text, there
are two iterator types: regex_iterator
will enumerate over
the match_results
objects found, while regex_token_iterator
will enumerate
diff --git a/doc/html/boost_regex/partial_matches.html b/doc/html/boost_regex/partial_matches.html
index 251bec81..ce372a89 100644
--- a/doc/html/boost_regex/partial_matches.html
+++ b/doc/html/boost_regex/partial_matches.html
@@ -22,7 +22,7 @@
Requires: The expression must have been
compiled with the syntax_option_type
save_subexpression_location
- set. Argument n must be in within the range 1 <= n
+ set. Argument n must be in within the range
0 <= n
< mark_count()
.
const_iterator begin() const; @@ -966,7 +966,7 @@
Effects: Returns the number of marked sub-expressions - within the regular expresion. + within the regular expression.
basic_regex& assign(const basic_regex& that);diff --git a/doc/html/boost_regex/ref/concepts.html b/doc/html/boost_regex/ref/concepts.html index db0b840a..0d186485 100644 --- a/doc/html/boost_regex/ref/concepts.html +++ b/doc/html/boost_regex/ref/concepts.html @@ -22,7 +22,7 @@ -
There are two sets of requirements for the traits
- template argument to basic_regex
: a mininal interface
+ template argument to basic_regex
: a minimal interface
(which is part of the regex standardization proposal), and an optional
Boost-specific enhanced interface.
basic_regex
to take advantage of these additional interfaces, all of the following
requirements must be met; basic_regex
will detect the presence
- or absense of the member boost_extensions_tag
+ or absence of the member boost_extensions_tag
and configure itself appropriately.
- Converts c to lower case, used for Perl-style \l and \L formating + Converts c to lower case, used for Perl-style \l and \L formatting operations. |
@@ -567,7 +567,7 @@
- Converts c to upper case, used for Perl-style \u and \U formating + Converts c to upper case, used for Perl-style \u and \U formatting operations. |
diff --git a/doc/html/boost_regex/ref/deprecated_interfaces.html b/doc/html/boost_regex/ref/deprecated_interfaces.html
index 1dfa7328..717aa073 100644
--- a/doc/html/boost_regex/ref/deprecated_interfaces.html
+++ b/doc/html/boost_regex/ref/deprecated_interfaces.html
@@ -22,7 +22,7 @@
-
- |
@@ -410,7 +411,7 @@
- |
diff --git a/doc/html/boost_regex/ref/regex_replace.html b/doc/html/boost_regex/ref/regex_replace.html
index 2027b93e..d8f14e47 100644
--- a/doc/html/boost_regex/ref/regex_replace.html
+++ b/doc/html/boost_regex/ref/regex_replace.html
@@ -22,7 +22,7 @@
-
- |
diff --git a/doc/html/boost_regex/ref/regex_token_iterator.html b/doc/html/boost_regex/ref/regex_token_iterator.html
index efa66df7..b22a36df 100644
--- a/doc/html/boost_regex/ref/regex_token_iterator.html
+++ b/doc/html/boost_regex/ref/regex_token_iterator.html
@@ -22,7 +22,7 @@
-