MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / LowerString

Function LowerString

core/pdcodegen/plugin/strutil.h:144–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142// ----------------------------------------------------------------------
143
144inline void LowerString(string* s) {
145 string::iterator end = s->end();
146 for (string::iterator i = s->begin(); i != end; ++i) {
147 // tolower() changes based on locale. We don't want this!
148 if ('A' <= *i && *i <= 'Z') *i += 'a' - 'A';
149 }
150}
151
152inline void UpperString(string* s) {
153 string::iterator end = s->end();

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected