MCPcopy Create free account
hub / github.com/DFHack/dfhack / toupper

Function toupper

plugins/tiletypes.cpp:494–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void toupper(std::string &str)
495{
496 //std::transform(str.begin(), str.end(), str.begin(), std::bind2nd(std::ptr_fun(&std::toupper<char>), std::locale("")));
497 for(char *c=(char *)str.c_str(); *c; ++c)
498 {
499 *c = toupper(*c);
500 }
501}
502
503int toint(const std::string &str, int failValue = 0)
504{

Callers 11

capitalizeMethod · 0.85
b_str2intFunction · 0.85
str_upperFunction · 0.85
lua_number2strxFunction · 0.85
processTileTypeFunction · 0.85
save_generated_rawFunction · 0.85
filltrafficFunction · 0.85
alltrafficFunction · 0.85
operator ()Method · 0.85
matches_filterFunction · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected