Share

AcString::compare

C++

Adesk::Int32 compare(
    wchar_t wch
) const;

Description

Compares the string to a single Unicode character.

Parameters

Parameters Description
wch Input character to compare to

Returns

0 if this string equals wch, a value < 0 if this string is less than wch and a value > 0 if this string is greater than wch.

Links

AcString

Previous Declaration

AutoCAD 2024 and earlier

int compare(wchar_t wch) const;

inline int AcString::compare(wchar_t wch) const;

History

AutoCAD 2025

Function now returns Adesk::Int32 instead of int.

Was this information helpful?