]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Corrected bug that prevented parsing of one_string expressions
authorluca <luca@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 19 May 2005 16:53:37 +0000 (16:53 +0000)
committerluca <luca@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 19 May 2005 16:53:37 +0000 (16:53 +0000)
when there was no space between delimiter and next expression.

git-svn-id: https://svn.dealii.org/trunk@10691 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/function_parser.cc

index e2e70a912712aa0bfec7e88590a9003cbb9771d7..3852cd0f2ca63523a5d5930d973be0714c5594a5 100644 (file)
@@ -45,7 +45,7 @@ unsigned int SplitString(const std::string& input,
       Assert(iPos <= input.size(), ExcInternalError());
       results.push_back(input.substr(iPos, newPos-iPos));
       // Update the current position with the correct offset.
-      iPos = newPos+sizeS2+1;
+      iPos = newPos+sizeS2;
     }
   // At least we found one string and no delimiters.
   Assert(numFound > 0, ExcInternalError());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.