TextProcessingToolbox
-
namespace TextProcessingToolbox
Functions
-
inline void StringToUpperCase(std::string &str)
utility function for converting strings to uppercase
- Parameters:
str – - string to be converted
-
inline std::vector<std::string> Split(const std::string &s, char delimiter)
utility function for splitting strings to at delimiter
- Parameters:
s – string to be split
delimiter – delimiter character
-
inline void PrintVectorVector(const VectorVector &vectorIn)
utility function for printing a VectorVector
- Parameters:
vectorIn – VectorVector we want to print
-
inline void PrintMatrix(const Matrix &mat)
-
inline void PrintMatrixToFile(const Matrix &mat, std::string filename, unsigned matsize)
-
inline void PrintVectorToFile(const Vector &vec, std::string filename, unsigned vecsize)
-
inline void PrintCppVectorToFile(const std::vector<float> &vec, std::string filename, unsigned vecsize)
-
inline void PrintVectorVectorToFile(const VectorVector &vecvec, std::string filename, unsigned size_outer, unsigned size_inner)
-
inline int GetTrailingNumber(std::string const &str)
utility function for returning the last number in a string
- Parameters:
str – string to be checked
-
inline bool StringEndsWith(std::string const &value, std::string const &ending)
utility function for checking if a string has a certain ending
- Parameters:
value – string to be checked
ending – string to be checked for
-
inline std::string DoubleToScientificNotation2(double value)
-
inline std::string DoubleToScientificNotation(double value)
-
inline void StringToUpperCase(std::string &str)