cmText.h/c: Added cmTextIsNotEmpty()
This commit is contained in:
parent
bdfc4f6c8d
commit
c144c71349
4
cmText.c
4
cmText.c
@ -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);
|
||||
|
3
cmText.h
3
cmText.h
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user