MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / transform_string

Function transform_string

src/include/migraphx/stringutils.hpp:112–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111template <class F>
112inline std::string transform_string(std::string s, F f)
113{
114 std::transform(s.begin(), s.end(), s.begin(), f);
115 return s;
116}
117
118inline std::string to_upper(std::string s) { return transform_string(std::move(s), ::toupper); }
119

Callers 3

to_upperFunction · 0.85
to_lowerFunction · 0.85
to_c_idFunction · 0.85

Calls 3

transformFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected