Method ReplaceTagWithCharacter
ReplaceTagWithCharacter(int[], int, int, char)
Replace a given number of characters (tag) in the array with a new character and shift subsequent characters in the array.
Declaration
protected void ReplaceTagWithCharacter(int[] chars, int insertionIndex, int tagLength, char c)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | chars | Array which contains the text. |
| int | insertionIndex | The index of where the new character will be inserted |
| int | tagLength | Length of the tag being replaced. |
| char | c | The replacement character. |