Table Of Contents

String Subset (G Dataflow)

Last Modified: January 9, 2017

Returns a portion, or substring, of a string.

connector_pane_image
datatype_icon

string

The string from which you want to obtain a subset.

datatype_icon

offset

The number of bytes into the input string at which this node begins its operation.

The offset of the first byte in the input string is 0. If offset is beyond the end of the input string, this node returns an empty string.

spd-note-note
Note  

Strings are encoded in UTF-8. In most cases, 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 you want to include in the substring.

If length is negative or 0, this node returns an empty string.

spd-note-note
Note  

Strings are encoded in UTF-8. In most cases, 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: The entire length of string minus offset.

datatype_icon

substring

The portion of string beginning at offset that is length bytes long.

spd-note-note
Note  

Strings are encoded in UTF-8. In most cases, 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.

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices (only within an Optimized FPGA VI)


Recently Viewed Topics