Improve interface for string operations

Trim incoming string before converting to number
Remove use of std::strtod and std::stoi
Use std::string_view instead of std::string when possible
This commit is contained in:
Magne Sjaastad committed 2024-07-25 21:21:53 +02:00
1 parent 33ffa10ec9
commit 6fb74654a1
9 files changed
+108 -46

No files matched your search

@@ -228,7 +228,8 @@ bool RifEclipseUserDataParserTools::hasOnlyValidDoubleValues( const std::vector<
}
else
{
double doubleVal = RiaStdStringTools::toDouble( word );
double doubleVal = 0.0;
RiaStdStringTools::toDouble( word, doubleVal );
doubleValues->push_back( doubleVal );
}
}