MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / tolower

Function tolower

benchmarks/dlib/string/string.h:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 typename alloc
64 >
65 const std::basic_string<char,traits,alloc> tolower (
66 const std::basic_string<char,traits,alloc>& str
67 )
68 {
69 std::basic_string<char,traits,alloc> temp;
70
71 temp.resize(str.size());
72
73 for (typename std::basic_string<char,traits,alloc>::size_type i = 0; i < str.size(); ++i)
74 temp[i] = (char)std::tolower(str[i]);
75
76 return temp;
77 }
78
79// ----------------------------------------------------------------------------------------
80

Callers 4

mainFunction · 0.85
isvowelFunction · 0.85
castMethod · 0.85

Calls 2

resizeMethod · 0.45
sizeMethod · 0.45

Tested by 1

mainFunction · 0.68