Synopsis
- Usage:
substring(i,n,s)
substring(s,i,n)
substring((i,n),s)
- Inputs:
- Outputs:
- the substring of the string s starting at position i with length n
Synopsis
- Usage:
substring(i,s)
substring(s,i)
- Inputs:
- Outputs:
- the substring of the string s starting at position i and continuing to the end of the string
Positions are numbered starting at 0.
If the starting position i is negative, it means to start at a position obtained by counting backward from the end of the string.
Requests for character positions out of bounds are silently ignored.