API Reference > Other Classes > OdString Class > OdString Methods > insert Method > OdString::insert Method (int, OdChar)
OdString::insert Method (int, OdChar)
Syntax
C++
int insert(int insertIndex, OdChar insertChar);
Parameters 
Description 
int insertIndex 
[in] Insertion index.  
OdChar insertChar 
[in] Character to insert. 

Returns the new length of this String object.

Inserts the specified character 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.