MCPcopy Create free account
hub / github.com/TurningWheel/Barony / lowercaseString

Function lowercaseString

src/mod_tools.cpp:863–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861
862#ifdef EDITOR
863void lowercaseString(std::string& str)
864{
865 if ( str.size() < 1 ) { return; }
866 for ( auto& letter : str )
867 {
868 if ( letter >= 'A' && letter <= 'Z' )
869 {
870 letter = tolower(letter);
871 }
872 }
873}
874#endif
875
876void hashSpellProp(Uint32& hash, Uint32& hashShift, int& toSet)

Callers 2

readItemsFromFileMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected