MCPcopy Create free account
hub / github.com/Tencent/libpag / ToUpperCase

Function ToUpperCase

exporter/src/utils/StringHelper.cpp:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::string ToUpperCase(const std::string& text) {
93 std::string result(text);
94 std::transform(result.begin(), result.end(), result.begin(),
95 [](unsigned char c) { return std::toupper(c); });
96 return result;
97}
98
99std::string ReplaceAll(const std::string& text, const std::string& from, const std::string& to) {
100 if (from.empty()) {

Callers

nothing calls this directly

Calls 1

transformFunction · 0.85

Tested by

no test coverage detected