company logo

String :: length - Gets the number of code points in the current String object.

Independent on the coding type of the String object, the functions returns the number of code points (characters) stored in the current String object. Especiallyfor coding type UTF8 length() may differ from the lengthInUnits(), because one code point may occupy up to 4 units.

Return value:  Maximum size of buffer or string ( int32  )

Implementation details

int32 String  :: length (  )