C++
Adesk::Int32 find( const ACHAR * pwsz, Adesk::Int32 nStartPos = 0 ) const;
Description
Finds a substring in the string.
Parameters
Parameters | Description |
---|---|
pwsz | Input string to search for |
nStartPos | Input zero-based first character position to look at |
Returns
Position in which the substring was found, else -1 if not found.
Remarks
Invalid nStartPos will return -1.
Note: Passing in nullptr or empty string will return string length.
Links
Previous Declaration
AutoCAD 2020 through AutoCAD 2024
ACBASE_PORT int find(const ACHAR *psz, int nStartPos = 0) const;
int find(ACHAR ch) const;
History
AutoCAD 2025
Function now returns Adesk::Int32 instead of int, and the nStartPos argument now takes an Adesk::Int32 value instead of int.