xtd 0.2.0
Loading...
Searching...
No Matches

◆ insert()

ustring xtd::ustring::insert ( size_t  start_index,
const ustring value 
) const
noexcept

Inserts a specified instance of string at a specified index position in this instance.

Parameters
start_indexThe index position of the insertion.
valueThe string to insert.
Returns
A new string equivalent to this instance but with value inserted at position start_index.
Remarks
If start_index is equal to the length of this instance, value is appended to the end of this instance.
For example, the return value of "abc".Insert(2, "XYZ") is "abXYZc".