Share

AcString::tcharLength

C++

Adesk::UInt32 tcharLength() const;

Description

Deprecated. 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

In an ANSI build, this function calls lengthA() to returning the number of bytes. In a Unicode build, it calls lengthW() to return number of widechars.

Note: If called during getBuffer mode, returns original unmodified length.

Links

AcString

Previous Declaration

AutoCAD 2024 and earlier

unsigned tcharLength() const;

Use Instead

Adesk::UInt32 length() const;

History

AutoCAD 2025

Function now returns Adesk::UInt32 instead of unsigned.

Was this information helpful?