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

Function isupper

src/libutil/pystring.cpp:607–618  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

605 ///
606 ///
607 bool isupper( const std::string & str )
608 {
609 std::string::size_type len = str.size(), i;
610 if ( len == 0 ) return false;
611 if( len == 1 ) return ::isupper( str[0] );
612
613 for ( i = 0; i < len; ++i )
614 {
615 if ( !::isupper( str[i] ) ) return false;
616 }
617 return true;
618 }
619
620 //////////////////////////////////////////////////////////////////////////////////////////////
621 ///

Callers 6

istitleFunction · 0.85
capitalizeFunction · 0.85
lowerFunction · 0.85
swapcaseFunction · 0.85
titleFunction · 0.85
pystring.hFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected