Returns the length of "str" without null terminator.
input string (may or may not be null terminated)
the length of the string of this segment
See Implementation
Returns the length of "str" without null terminator.