UnicodeLength (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
{{Template:Unicode:UnicodeLength subtitle}}
{{Template:Unicode:UnicodeLength subtitle}}
[[Category:Unicode methods|UnicodeLength function]]
[[Category:Intrinsic methods]]
<!--DPL?? Category:<var>Unicode</var> methods|<var>UnicodeLength</var> function: Number of characters in string-->
<!--DPL?? Category:Intrinsic methods|<var>UnicodeLength</var> (<var>Unicode</var> function): Number of characters in string-->
<!--DPL?? Category:<var>System</var> methods|<var>UnicodeLength</var> (<var>Unicode</var> function): Number of characters in string-->


This function returns the number of characters in the method object string.
This function returns the number of characters in the method object string.
Line 36: Line 31:
4
4
</p>
</p>
==See also==
{{Template:Unicode:UnicodeLength footer}}

Revision as of 19:12, 26 January 2011

Length of this string (Unicode class)


This function returns the number of characters in the method object string.

The UnicodeLength function is available as of version 7.5 of the Sirius Mods.

Syntax

%number = unicode:UnicodeLength

Syntax terms

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

Usage notes

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

Examples

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

%u unicode initial ('&#x40;xyz':U) Print %u Print %u:unicodelength

The result is:

@xyz 4

See also