Share

AcString::match

C++

Adesk::Int32 match(
    const char * psz, 
    Encoding encoding
) const;

Description

Returns the number of characters that match a string of narrow characters.

Parameters

Parameters Description
psz Input pointer to the string of narrow characters
encoding Input Encoding type

Returns

Number of characters that match psz.

Remarks

Currently, only Utf8 encoding is supported.

Links

AcString

Previous Declaration

AutoCAD 2017 through AutoCAD 2024

ACBASE_PORT int match(const char *psz, Encoding encoding) const;

AutoCAD 2016 and earlier

ACBASE_PORT int matchNoCase(const char * psz) const;

History

AutoCAD 2025

Function now returns Adesk::Int32 instead of int.

AutoCAD 2017

encoding argument was added.

Was this information helpful?