OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utilities.hpp
Go to the documentation of this file.
1 #ifndef __OPENTREP_BAS_UTILITIES_HPP
2 #define __OPENTREP_BAS_UTILITIES_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 #include <vector>
10 // OpenTrep
12 
13 namespace OPENTREP {
14 
18  void tokeniseStringIntoWordList (const std::string& iPhrase, WordList_T&);
19 
30  std::string createStringFromWordList (const WordList_T&,
31  const unsigned short iSplitIdx = 0,
32  const bool iFromBeginningFlag = true);
33 
34 }
35 #endif // __OPENTREP_BAS_UTILITIES_HPP
std::vector< std::string > WordList_T
std::string createStringFromWordList(const WordList_T &iWordList, const unsigned short iSplitIdx, const bool iFromBeginningFlag)
Definition: Utilities.cpp:38
void tokeniseStringIntoWordList(const std::string &iPhrase, WordList_T &ioWordList)
Definition: Utilities.cpp:16