strindexkStrings:Manipulationstrindexkstrindexk
Return the position of the first occurence of a string in another string
Description
Return the position of the first occurence of S2 in S1, or -1 if not
found. If S2 is empty, 0 is returned. strindexk runs both at init and
performance time.
Syntaxkpos strindexk S1, S2Examples
Here is an example of the strindexk opcode. It uses the file strindexk.csd.
Example of the strindexk opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoString Manipulation OpcodesCreditsAuthor: Istvan Varga2006New in version 5.02