to_lower.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_CORE_UTIL_LOWER_STRING_HPP
13 #define MLPACK_CORE_UTIL_LOWER_STRING_HPP
14 
15 namespace mlpack {
16 namespace util {
17 
24 inline void ToLower(const std::string& input, std::string& output)
25 {
26  std::transform(input.begin(), input.end(), output.begin(),
27  [](unsigned char c){ return std::tolower(c); });
28 }
29 
30 } // namespace util
31 } // namespace mlpack
32 
33 #endif
void ToLower(const std::string &input, std::string &output)
 * Convert a string to lowercase letters.
Definition: to_lower.hpp:24
Linear algebra utility functions, generally performed on matrices or vectors.