FIND – Find a Substring

Block SymbolLicensing group: STANDARD
PIC

Function Description
The FIND block searches for the string su2 in the string su1 and returns a one-based index into su1 if a su2 is found or zero otherwise. Both su1 and su2 are truncated to nmax.

Inputs

su1

String input value

String

su2

String input value

String

Parameter

nmax

Allocated size of string [bytes]   0  65520

Long (I32)

Output

pos

Position of substring

Long (I32)

2022 © REX Controls s.r.o., www.rexygen.com