- Timestamp:
- 03/27/13 16:22:23 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/tools.cc
r14981 r15167 15 15 16 16 #include <boost/tokenizer.hpp> 17 #include <boost/algorithm/string.hpp> 17 18 18 19 using namespace std; … … 277 278 } 278 279 280 vector<string> Tools::Split(const string &str, const string &delim) 281 { 282 vector<string> rc; 283 boost::split(rc, str, boost::is_any_of(delim)); 284 return rc; 285 } 286 279 287 // -------------------------------------------------------------------------- 280 288 // -
trunk/FACT++/src/tools.h
r14219 r15167 4 4 #include <map> 5 5 #include <string> 6 #include <vector> 6 7 7 8 namespace Tools … … 15 16 16 17 std::map<std::string,std::string> Split(std::string &, bool = false); 18 std::vector<std::string> Split(const std::string &, const std::string &); 17 19 std::string Uncomment(const std::string &opt); 18 20 }
Note:
See TracChangeset
for help on using the changeset viewer.