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

Function isalpha

src/libutil/pystring.cpp:499–510  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

497 ///
498 ///
499 bool isalpha( const std::string & str )
500 {
501 std::string::size_type len = str.size(), i;
502 if ( len == 0 ) return false;
503 if( len == 1 ) return ::isalpha( (int) str[0] );
504
505 for ( i = 0; i < len; ++i )
506 {
507 if ( !::isalpha( (int) str[i] ) ) return false;
508 }
509 return true;
510 }
511
512 //////////////////////////////////////////////////////////////////////////////////////////////
513 ///

Callers 5

getMethod · 0.85
initializeMethod · 0.85
parseMethod · 0.85
path_is_absoluteMethod · 0.85
pystring.hFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected