REPLACE – Replace substring

Block SymbolLicensing group: STANDARD
PIC

Function Description
The REPLACE block replaces a substring from su1 by the string su2 and puts the result in sy. The parameters l and p specify position and length of the string being replaced in UTF-8 characters. The parameter p is one-based.

Inputs

su1

String input value

String

su2

String input value

String

l

Length of origin text

Long (I32)

p

Position of origin text (one-based)  0.00E+00

Long(I32)

Parameter

nmax

Allocated size of string [bytes]   0  65520

Long (I32)

Output

sy

String output value

String

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