MCPcopy Create free account
hub / github.com/apache/brpc / StringToUpperASCII

Function StringToUpperASCII

src/butil/strings/string_util.h:307–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305// Converts the elements of the given string. This version uses a pointer to
306// clearly differentiate it from the non-pointer variant.
307template <class str> inline void StringToUpperASCII(str* s) {
308 for (typename str::iterator i = s->begin(); i != s->end(); ++i)
309 *i = butil::ToUpperASCII(*i);
310}
311
312template <class str> inline str StringToUpperASCII(const str& s) {
313 // for std::string and std::wstring

Callers 2

TESTFunction · 0.85
GetVarMethod · 0.85

Calls 3

ToUpperASCIIFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.68