neic-glass3  1.4.6
stringutil.h
Go to the documentation of this file.
1 /*****************************************
2  * This file is documented for Doxygen.
3  * If you modify this file please update
4  * the comments so that Doxygen will still
5  * be able to work.
6  ****************************************/
15 #ifndef STRINGUTIL_H
16 #define STRINGUTIL_H
17 
18 #include <string>
19 #include <vector>
20 
21 namespace glass3 {
22 namespace util {
33 std::vector<std::string> split(const std::string &sInput, char cDelimiter);
34 
47 std::string& removeChars(std::string& sInput, const std::string& sRemoveChars); // NOLINT
48 
60 std::string to_string_with_precision(const double doubleVal,
61  const int precisionVal = 2);
62 } // namespace util
63 } // namespace glass3
64 #endif // STRINGUTIL_H
std::string & removeChars(std::string &sInput, const std::string &sRemoveChars)
remove all instances of characters from a string
Definition: stringutil.cpp:36
The neic-glass3 project namespace containing all the classes and functions that make up neic-glass3...
std::vector< std::string > split(const std::string &sInput, char cDelimiter)
split a string into substrings
Definition: stringutil.cpp:15
std::string to_string_with_precision(const double doubleVal, const int precisionVal=2)
convert provided double to a string with desired precision
Definition: stringutil.cpp:66