CARMA C++
stringUtils.h
1 #ifndef CARMA_CONTROL_STRING_UTILS_H
2 #define CARMA_CONTROL_STRING_UTILS_H
3 
4 #include <string>
5 
6 namespace carma {
7 namespace control {
8 
15 ::std::string escapeAndQuoteStringAsNeeded( const ::std::string & s );
16 
17 //@TODO should write a containsChar(string & s) in util::StringUtils
23 bool containsDot(const ::std::string & s);
24 
30 bool containsAsterisk(const ::std::string & s);
31 
37 bool containsQuote(const ::std::string & s );
38 
45 bool containsReserveWords(const ::std::string & s);
46 
50 ::std::string listReserveWords();
51 
60 } // namespace carma::control
61 } // namespace carma
62 
63 
64 
65 
66 #endif
bool containsDot(const ::std::string &s)
::std::string listReserveWords()
bool containsReserveWords(const ::std::string &s)
bool containsAsterisk(const ::std::string &s)
bool containsQuote(const ::std::string &s)
::std::string escapeAndQuoteStringAsNeeded(const ::std::string &s)
Adds escape-quote " to input string if it contains space or comma.