/////////////////////////////////////////////////////////////////////////////////////////
| 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 | /// |
no test coverage detected