mlpack  3.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
src mlpack core util version hpp VERSION_HPP_CONTENTS string(REGEX REPLACE".*#define MLPACK_VERSION_MAJOR ([0-9]+).*""\\1"MLPACK_VERSION_MAJOR"${VERSION_HPP_CONTENTS}") string(REGEX REPLACE".* MLPACK_VERSION_MINOR "$
Definition: CMakeLists.txt:79