Table Of Contents

String Subset (G Dataflow)

Last Modified: January 25, 2019

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 characters into the input string at which this node begins its operation.

The offset of the first character 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  

A character refers to a code point, a numeric unit between 0 and 10FFFF16, defined by the Unicode standard for encoding. For more information about code points, research Unicode.

Default: 0

datatype_icon

length

The number of characters you want to include in the substring.

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

spd-note-note
Note  

A character refers to a code point, a numeric unit between 0 and 10FFFF16 that is subscribed meaning by the Unicode standard for encoding. You can research Unicode for more information about code points and other units of meaning for encoding.

Default: The entire length of string minus offset.

datatype_icon

substring

The portion of the input string that is the specified length beginning at the offset.

spd-note-note
Note  

A character refers to a code point, a numeric unit between 0 and 10FFFF16 that is subscribed meaning by the Unicode standard for encoding. You can research Unicode for more information about code points and other units of meaning for encoding.

Reducing Performance Burden

Characters in UTF-8 can be multiple bytes so string nodes count the number of characters in a string instead of jumping to a point in memory. Since the length and offset parameters are in units of characters, avoid nesting this node with large strings because that can create exponential functions that carry a higher performance burden.

Where This Node Can Run:

Desktop OS: Windows

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

Web Server: Supported in VIs that run in a web application


Recently Viewed Topics