"insert" (string::insert)
Inserts the string s at the given index pos.
Synopsis
int string.insert(int pos, string s);
Parameters
| Parameter | Description | 
|---|---|
| pos | Position on which s should be inserted. | 
| s | String to be inserted. | 
Description
Inserts the string s at the given index pos.
If pos is negative or larger than length(), the return value is -1, else always 0.
Assignment
String
