cmText.h/c: Added cmTextIsNotEmpty()

Este commit está contenido en:
kevin 2013-04-11 00:26:33 -07:00
padre bdfc4f6c8d
commit c144c71349
Se han modificado 2 ficheros con 6 adiciones y 1 borrados

Ver fichero

@ -611,6 +611,10 @@ bool cmTextIsEmpty( const cmChar_t* s )
return true;
}
bool cmTextIsNotEmpty( const cmChar_t* s )
{ return !cmTextIsEmpty(s); }
cmChar_t* cmTextLine( cmChar_t* s, unsigned line )
{
assert( line>0);

Ver fichero

@ -192,8 +192,9 @@ extern "C" {
// Append 'n' copies of 'c' to the end of s[].
cmChar_t* cmTextAppendChar( cmChar_t* s, cmChar_t c, unsigned n );
// Returns true if the string is all spaces.
// Returns true if the string is NULL or all spaces.
bool cmTextIsEmpty( const cmChar_t* s );
bool cmTextIsNotEmpty( const cmChar_t* s );
// Returns NULL if string contains fewer than lineIdx lines.
// Note: first line == 1.