Table Of Contents

Replace Substring (G Dataflow)

Last Modified: March 15, 2017

Deletes a specified length of characters in a string and replaces the deleted portion with another string.

connector_pane_image
datatype_icon

string

The string in which you want to replace characters.

datatype_icon

substring

Substring that replaces a specified length of bytes in the input string.

Default: Empty string

datatype_icon

offset

The number of bytes into the string at which the node places the substring.

spd-note-note
Note  

Strings are encoded in UTF-8. For strings containing characters in the U+0000 through U+007F range, the number of bytes in a string is equivalent to the number of characters. However, for strings containing the characters U+0080 through U+7FFFFFFF, the number of bytes is greater than the number of characters.

Default: 0

datatype_icon

length

The number of bytes the substring will replace in the input string.

If the substring is empty, the specified length of bytes is deleted starting at the offset.

spd-note-note
Note  

Strings are encoded in UTF-8. For strings containing characters in the U+0000 through U+007F range, the number of bytes in a string is equivalent to the number of characters. However, for strings containing the characters U+0080 through U+7FFFFFFF, the number of bytes is greater than the number of characters.

Default: 0

datatype_icon

result string

The edited string that includes the replaced characters.

datatype_icon

replaced substring

Characters that were replaced in the string.

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices


Recently Viewed Topics