Salome HOME
Fix SketcherSetEqual.test_length_equality
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Tools.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:    ExchangePlugin_Tools.cpp
4 // Created: May 15, 2015
5 // Author:  Sergey POKHODENKO
6
7 #include <ExchangePlugin_Tools.h>
8
9 #include <sstream>
10
11 std::list<std::string> ExchangePlugin_Tools::split(const std::string& theString, char theDelimiter)
12 {
13   std::list<std::string> theResult;
14   std::istringstream aStream(theString);
15   std::string aSection;
16   while (std::getline(aStream, aSection, theDelimiter))
17     theResult.push_back(aSection);
18   return theResult;
19 }