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

Function StringToLowerASCII

src/butil/strings/string_util.h:293–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291// Converts the elements of the given string. This version uses a pointer to
292// clearly differentiate it from the non-pointer variant.
293template <class str> inline void StringToLowerASCII(str* s) {
294 for (typename str::iterator i = s->begin(); i != s->end(); ++i)
295 *i = butil::ToLowerASCII(*i);
296}
297
298template <class str> inline str StringToLowerASCII(const str& s) {
299 // for std::string and std::wstring

Callers 2

AddCommandHandlerMethod · 0.85
GetVarMethod · 0.85

Calls 3

ToLowerASCIIFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected