Share

AcString::insert

C++

AcString& insert(
    Adesk::Int32 nIndex, 
    const wchar_t* pwsz
);

Description

Inserts a substring at the given index within the string.

Parameters

Parameters Description
nIndex Input the index of the character before which the insertion will take place
pwsz Input pointer to the substring to be inserted

Returns

A reference to this string object.

Remarks

Using 0 will insert at the beginning of string.

Links

AcString

Previous Declaration

AutoCAD 2017 through AutoCAD 2024

ACBASE_PORT AcString& insert(int nIndex, const wchar_t* pwsz);

History

AutoCAD 2025

nIndex argument now expects an Adesk::Int32 instead of int.

Was this information helpful?