mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add stringOps::inplaceRemoveSpace()
Style changes: - use std algorithm for some stringOps internals - pass SubStrings iterators by const reference ENH: special nullptr handling for ISstream getLine - pass through to istream::ignore to support read and discard
This commit is contained in:
@ -118,12 +118,12 @@ void Foam::Function1Types::CSV<Type>::read()
|
||||
const label maxEntry =
|
||||
max(refColumn_, componentColumns_[findMax(componentColumns_)]);
|
||||
|
||||
string line;
|
||||
label lineNo = 0;
|
||||
|
||||
// Skip header
|
||||
for (label i = 0; i < nHeaderLine_; ++i)
|
||||
{
|
||||
string line;
|
||||
is.getLine(line);
|
||||
++lineNo;
|
||||
}
|
||||
@ -133,7 +133,6 @@ void Foam::Function1Types::CSV<Type>::read()
|
||||
|
||||
while (is.good())
|
||||
{
|
||||
string line;
|
||||
is.getLine(line);
|
||||
++lineNo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user