strsubStrings:Manipulationstrsubstrsub
Extract a substring
Description
Return a substring of the source string. strsub runs at init time only.
SyntaxSdst strsub Ssrc[, istart[, iend]]Initializationistart
(optional, defaults to 0) -- start position in Ssrc, counting from 0.
A negative value means the end of the string.
iend
(optional, defaults to -1) -- end position in Ssrc, counting from 0.
A negative value means the end of the string. If iend is less than
istart, the output is reversed.
Examples
Here is an example of the strsub opcode. It uses the file strsub.csd.
Example of the strsub opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoString Manipulation OpcodesCreditsAuthor: Istvan Varga2006