Returns the length of the longest possible substring, starting from the first code unit, which is validly encoded.
the string to be tested
See Implementation
Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252
Returns the length of the longest possible substring, starting from the first code unit, which is validly encoded.