MCPcopy Create free account
hub / github.com/davisking/dlib / toupper

Function toupper

dlib/string/string.h:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 typename alloc
84 >
85 const std::basic_string<char,traits,alloc> toupper (
86 const std::basic_string<char,traits,alloc>& str
87 )
88 {
89 std::basic_string<char,traits,alloc> temp;
90
91 temp.resize(str.size());
92
93 for (typename std::basic_string<char,traits,alloc>::size_type i = 0; i < str.size(); ++i)
94 temp[i] = (char)std::toupper(str[i]);
95
96 return temp;
97 }
98
99// ----------------------------------------------------------------------------------------
100

Callers 3

strtoupperMethod · 0.85
string_testFunction · 0.85
on_connectMethod · 0.85

Calls 2

resizeMethod · 0.45
sizeMethod · 0.45

Tested by 1

string_testFunction · 0.68