Get character

Web Site  Methods

 
Char::IsNull
 
BOOL IsNull () const

Returns TRUE if the object contains the null character.  Equivalent to the expression (STRCHAR) obj == 0.

 

Important: When using Borland C++ Builder, the Char class is named StrChar to avoid a collision with a standard Borland VCL datatype

 

 
Char::GetChar
Equivalent to: operator STRCHAR
 
STRCHAR GetChar () const
operator const STRCHAR() const

The 'typecast to STRCHAR' operator is equivalent to the GetChar method, and will simply return the character contained in the Char object.

 

 
Char::GetCharA
Char::GetCharW
 
STRACHAR GetCharA () const
STRWCHAR GetCharW () const

These two methods are similar to GetChar, but will return either an ANSI or Unicode representation of the character, regardless of the character mode of Str Library.

 

See also: Char class