Share

AcString::findLastNoneOf

C++

Adesk::Int32 findLastNoneOf(
    const ACHAR * pwsz, 
    Adesk::Int32 nEndPos = -1
) const;

Description

Finds the last character in this string which does not match any in a group of input characters.

Parameters

Parameters Description
pwsz Input group of characters to search for
nEndPos Input first character position to look at

Returns

Position of the "not found" character, else -1 if all were found.

Remarks

If pwsz is nullptr, then we search for not whitespace.

Links

AcString

Previous Declaration

AutoCAD 2020 through 2024

ACBASE_PORT int findLastNoneOf(const ACHAR *psz, int nEndPos = -1) const;

History

AutoCAD 2025

Function now returns Adesk::Int32 instead of int, and the nEndPos argument now takes an Adesk::Int32 value instead of int.

Was this information helpful?