MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / toUpper

Function toUpper

src/openpose/utilities/string.cpp:105–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 std::string toUpper(const std::string& string)
106 {
107 try
108 {
109 std::string result = string;
110 std::transform(string.begin(), string.end(), result.begin(),
111 [](unsigned char c) { return (unsigned char)std::toupper(c); });
112 return result;
113 }
114 catch (const std::exception& e)
115 {
116 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
117 return "";
118 }
119 }
120
121 std::string remove0sFromString(const std::string& string)
122 {

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.70

Tested by

no test coverage detected