Table Of Contents

String Length (G Dataflow)

Last Modified: January 9, 2017

Returns the number of bytes in a 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.

connector_pane_image
datatype_icon

string

A string whose number of bytes you want to compute.

This input also supports any data type that includes only strings, such as an array of strings or a cluster of strings.

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.

datatype_icon

length

Number of bytes in string.

The structure of this output matches the structure of string. For example, if you wire an array of strings tostring, this parameter returns an array of integers. Likewise, if you wire a cluster of strings to string, this parameter returns a cluster of integers.

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