substring¶
Extract part of a string given a position range.
Parameters:
No. | Type | Comments |
---|---|---|
1 | string | Main string |
2 | int | Start index |
3 | int | End index - this parameter may be omitted |
Returns:
string
- Main string with the old value substringd with the new value.
Usages:
substring( original : string, start : int, end : int) : string