Dela via


CSimpleStringT::GetLength

Returns the number of characters in the CSimpleStringT object.

int GetLength( ) const throw( );

Return Value

A count of the characters in the string.

Remarks

Call this method to return the number of characters in the object. The count does not include a null terminator.

For multibyte character sets (MBCS), GetLength counts each 8-bit character; that is, a lead and trail byte in one multibyte character are counted as two bytes. See FreeExtra for an example of calling this function.

Requirements

Header: atlsimpstr.h

See Also

Reference

CSimpleStringT Class

CSimpleStringT::IsEmpty

Other Resources

CSimpleStringT Members