Share

AcString::compare

C++

Adesk::Int32 compare(
    const CStringW & csw
) const;

Description

Compares this string to a CStringW object.

Parameters

Parameters Description
csw Input reference to the CStringW object

Returns

0 if this string equal csw, a value < 0 if this string is less than csw, a value > 0 if this string is greater than csw.

Links

AcString

Previous Declaration

AutoCAD 2024 and earlier

int compare(const CStringW & csw) const;

inline int AcString::compare(const CStringW & csw) const;

History

AutoCAD 2025

Function now returns Adesk::Int32 instead of int.

Was this information helpful?