UnicodeLength (Unicode function)

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Length of this string (Unicode class)

UnicodeLength returns the number of characters in the method object string.

Syntax

%number = unicode:UnicodeLength

Syntax terms

%number A numeric variable to receive the result of the UnicodeLength method.
unicode A Unicode string.

Usage notes

  • UnicodeLength is available as of Sirius Mods Version 7.5.

Examples

The following fragment prints a Unicode string, then its length:

%u unicode initial ('@xyz':U) print %u print %u:unicodelength

The result is:

@xyz 4

See also

  • The UnicodeLength method is analogous to the String intrinsic Length method.