C++
Adesk::Int32 find( ACHAR ch, Adesk::Int32 nStartPos ) const;
Description
Finds a single character in the string.
Parameters
Parameters | Description |
---|---|
ch | Input character to search for |
nStartPos | Input zero-based first character position to look at |
Returns
Position in which the character was found, else -1 if not found.
Remarks
Invalid nStartPos will return -1.
Links
Previous Declaration
AutoCAD 2020 through AutoCAD 2024
ACBASE_PORT int find(ACHAR ch, int nStartPos) const;
AutoCAD 2017 through AutoCAD 2019
ACBASE_PORT int find(ACHAR ch, int nStartFrom) 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.
AutoCAD 2020
nStartFrom argument was renamed to nStartPos.