C++
Adesk::UInt32 length() const;
Description
Gets the logical length of the current string; that is, the number of chars in the string.
Returns
The number of characters in the string. Zero if it's empty.
Remarks
Null terminator is not counted in logical length.
Double-byte chars as well as M+nxxyy and U+xxxx strings count as a single character.
Note: If called during getBuffer mode, returns original unmodified length.
Links
Previous Declaration
AutoCAD 2024 and earlier
ACBASE_PORT unsigned length() const;
History
AutoCAD 2025
Function now returns Adesk::UInt32 instead of unsigned.