Returns the number of characters in a string.
A string whose number of characters 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.
Number of characters in a string.
The structure of this output matches the structure of the string. For example, if you wire an array of strings to string, this output returns an array of integers. Likewise, if you wire a cluster of strings to string, this output returns a cluster of integers.
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