MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / lower

Function lower

src/libutil/pystring.cpp:644–655  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

642 ///
643 ///
644 std::string lower( const std::string & str )
645 {
646 std::string s( str );
647 std::string::size_type len = s.size(), i;
648
649 for ( i = 0; i < len; ++i )
650 {
651 if ( ::isupper( s[i] ) ) s[i] = ::tolower( s[i] );
652 }
653
654 return s;
655 }
656
657 //////////////////////////////////////////////////////////////////////////////////////////////
658 ///

Callers 1

pystring.hFile · 0.85

Calls 2

isupperFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected