mlpack
3.4.2
mlpack-3.4.2
src
mlpack
core
util
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
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
add_to_cli11.hpp:21
mlpack::util::ToLower
void ToLower(const std::string &input, std::string &output)
 * Convert a string to lowercase letters.
Definition:
to_lower.hpp:24
Generated by
1.8.20