API Reference > Other Classes > OdAnsiString Class > OdAnsiString Methods > insert Method > OdAnsiString::insert Method (int, char*)
OdAnsiString::insert Method (int, char*)
Syntax
C++
int insert(int insertIndex, const char* insertString);
Parameters 
Description 
int insertIndex 
[in] Insertion index.  
const char* insertString 
[in] String to insert. 

Returns the new length of this String object.

Inserts the specified string into this String object. 

 

If insertIndex exceeds the length of this String object, this String object is lengthened as necessary to accommodate the insertion.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.