MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / lowercase

Function lowercase

TactilityCore/Include/Tactility/StringUtils.h:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 */
70template <typename T>
71std::basic_string<T> lowercase(const std::basic_string<T>& input) {
72 std::basic_string<T> output = input;
73 std::transform(
74 output.begin(),
75 output.end(),
76 output.begin(),
77 [](const T character) { return static_cast<T>(std::tolower(character)); }
78 );
79 return std::move(output);
80}
81
82/** @return true when input only has hex characters: [a-z], [A-Z], [0-9] */
83bool isAsciiHexString(const std::string& input);

Callers 4

isSupportedImageFileFunction · 0.85
isSupportedTextFileFunction · 0.85
readTimeZonesMethod · 0.85
updateListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected