Merge pull request #947 from jokva/heuristic-short-circuit-strip

Short circuit when line terminator is found first
This commit is contained in:
Joakim Hove
2016-10-21 08:50:32 +02:00
committed by GitHub

View File

@@ -68,7 +68,7 @@ inline Itr find_terminator( Itr begin, Itr end, Term terminator ) {
auto pos = terminator( begin, end );
if( pos == end ) return end;
if( pos == begin || pos == end) return pos;
auto qbegin = std::find_if( begin, end, RawConsts::is_quote() );