Share

AcString::insert

C++

AcString& insert(
    Adesk::Int32 nIndex, 
    wchar_t ch
);

Description

Inserts a single character at the given index within the string.

Parameters

Parameters Description
nIndex Input the index of the character before which the insertion will take place
ch Input the character 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, wchar_t ch);

History

AutoCAD 2025

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

Was this information helpful?