string::IsEmpty

Description

Test a string object for the empty condition, check whether the string object contains any characters or not.

Syntax

BOOL IsEmpty( )

Parameters

Return

Return TRUE if the string object has no character; otherwise FALSE.

Examples

EX1

void string_ISEmpty_Ex1()
{
        string str;
        BOOL bRet = str.IsEmpty();
        out_int("", bRet);//1
        
        str = "12345";
        bRet = str.IsEmpty();
        out_int("", bRet);//0
}

Remark

See Also

string::GetLength, string::Empty

header to Include

origin.h