mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2066 Observed Data : Split string by delimiter
This commit is contained in:
@@ -67,3 +67,15 @@ double RiaStdStringTools::toDouble(const std::string& s)
|
||||
|
||||
return doubleValue;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<std::string> RiaStdStringTools::splitStringBySpace(const std::string& s)
|
||||
{
|
||||
std::vector<std::string> words;
|
||||
|
||||
splitByDelimiter(s, words);
|
||||
|
||||
return words;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user