]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/token_functions.hpp
How about if we write a script to do some of this and stop doing it
[lyx.git] / boost / boost / token_functions.hpp
index 867525fb1a0e67cc777753b2c3630104ec7ac729..ef7ba7306676c0e25ac0d77773e04cc761feaac2 100644 (file)
@@ -9,7 +9,7 @@
 // See http://www.boost.org/libs/tokenizer/ for documentation.
 
 // Revision History:
-// 01 Oct 2004   Joaquín M López Muñoz
+// 01 Oct 2004   Joaquin M Lopez Munoz
 //      Workaround for a problem with string::assign in msvc-stlport
 // 06 Apr 2004   John Bandela
 //      Fixed a bug involving using char_delimiter with a true input iterator
@@ -335,13 +335,14 @@ namespace boost{
       if (next == end)
         return false;
 
-      if (current_offset_ == offsets_.size()) {
+      if (current_offset_ == offsets_.size())
+      {
         if (wrap_offsets_)
           current_offset_=0;
         else
           return false;
       }
-
+      
       int c = offsets_[current_offset_];
       int i = 0;
       for (; i < c; ++i) {
@@ -449,15 +450,18 @@ namespace boost{
       else { // m_empty_tokens == keep_empty_tokens
         
         // Handle empty token at the end
-        if (next == end) {
-          if (m_output_done == false) {
+        if (next == end)
+        {
+          if (m_output_done == false) 
+          {
             m_output_done = true;
             assigner::assign(start,next,tok);
             return true;
-          } else
+          } 
+          else
             return false;
         }
-
+        
         if (is_kept(*next)) {
           if (m_output_done == false)
             m_output_done = true;