Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61835 - in sandbox/SOC/2010/stringalgos: . boost/algorithm/string boost/algorithm/string/detail libs/algorithm/string/doc
From: mstefanro_at_[hidden]
Date: 2010-05-07 10:47:10


Author: mstefanro
Date: 2010-05-07 10:47:09 EDT (Fri, 07 May 2010)
New Revision: 61835
URL: http://svn.boost.org/trac/boost/changeset/61835

Log:
[GSoC2010][StringAlgos] Fixed a few documentation typos
Properties modified:
   sandbox/SOC/2010/stringalgos/ (props changed)
   sandbox/SOC/2010/stringalgos/boost/algorithm/string/ (props changed)
Text files modified:
   sandbox/SOC/2010/stringalgos/boost/algorithm/string/detail/trim.hpp | 7 +++++--
   sandbox/SOC/2010/stringalgos/libs/algorithm/string/doc/design.xml | 4 ++--
   sandbox/SOC/2010/stringalgos/libs/algorithm/string/doc/quickref.xml | 2 +-
   3 files changed, 8 insertions(+), 5 deletions(-)

Modified: sandbox/SOC/2010/stringalgos/boost/algorithm/string/detail/trim.hpp
==============================================================================
--- sandbox/SOC/2010/stringalgos/boost/algorithm/string/detail/trim.hpp (original)
+++ sandbox/SOC/2010/stringalgos/boost/algorithm/string/detail/trim.hpp 2010-05-07 10:47:09 EDT (Fri, 07 May 2010)
@@ -63,12 +63,15 @@
                 ForwardIteratorT InEnd,
                 PredicateT IsSpace )
             {
- ForwardIteratorT It=InBegin;
+ /*ForwardIteratorT It=InBegin;
                 for(; It!=InEnd; ++It )
                 {
                     if (!IsSpace(*It))
                         return It;
- }
+ }*/
+ ForwardIteratorT It = InBegin;
+ for (; It != InEnd && IsSpace(*It); ++It)
+ ;
 
                 return It;
             }

Modified: sandbox/SOC/2010/stringalgos/libs/algorithm/string/doc/design.xml
==============================================================================
--- sandbox/SOC/2010/stringalgos/libs/algorithm/string/doc/design.xml (original)
+++ sandbox/SOC/2010/stringalgos/libs/algorithm/string/doc/design.xml 2010-05-07 10:47:09 EDT (Fri, 07 May 2010)
@@ -29,10 +29,10 @@
             ordered fashion. Character is any value type with "cheap" copying and assignment.
         </para>
         <para>
- First requirement of string-type is that it must accessible using
+ First requirement of string-type is that it must be accessible using
             <ulink url="../../libs/range/index.html">Boost.Range</ulink>. This facility allows to access
             the elements inside the string in a uniform iterator-based fashion.
- This is sufficient for our library
+ This is sufficient for our library.
         </para>
         <para>
             Second requirement defines the way in which the characters are stored in the string. Algorithms in

Modified: sandbox/SOC/2010/stringalgos/libs/algorithm/string/doc/quickref.xml
==============================================================================
--- sandbox/SOC/2010/stringalgos/libs/algorithm/string/doc/quickref.xml (original)
+++ sandbox/SOC/2010/stringalgos/libs/algorithm/string/doc/quickref.xml 2010-05-07 10:47:09 EDT (Fri, 07 May 2010)
@@ -151,7 +151,7 @@
                     </row>
                     <row>
                         <entry><code>lexicographical_compare</code></entry>
- <entry>Check if a string is lexicographically less then another one</entry>
+ <entry>Check if a string is lexicographically less than another one</entry>
                         <entry>
                             <functionname>lexicographical_compare()</functionname>
                             <sbr/>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk