Permalink
Browse files

Fix partition again

  • Loading branch information...
mniip committed May 2, 2018
1 parent 2f9cab7 commit 4b92926f0d0b2774c5e928b50d2d5dc24a7f0932
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/common/String.h
@@ -30,13 +30,13 @@ template<typename T> class SplitBase
{
if(posBefore == T::npos)
return reverse ? T() : parent.Substr(posFrom);
return parent.Substr(reverse ? 0 : posFrom, includeSeparator ? posAfter : posBefore);
return parent.Between(reverse ? 0 : posFrom, includeSeparator ? posAfter : posBefore);
}
inline T After(bool includeSeparator = false) const
{
if(posBefore == T::npos)
return reverse ? parent.Substr(0, posFrom) : T();
return parent.Substr(includeSeparator ? posBefore : posAfter, reverse ? posFrom : T::npos);
return parent.Between(includeSeparator ? posBefore : posAfter, reverse ? posFrom : T::npos);
}
inline size_t PositionFrom() const { return posFrom; }

0 comments on commit 4b92926

Please sign in to comment.