UnicodeLength (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 12: Line 12:
{{Template:Unicode:UnicodeLength syntax}}
{{Template:Unicode:UnicodeLength syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt><i>%len</i>
<tr><th><i>%len</i> </th>
<dd>A numeric variable to receive the result of the UnicodeLength method.
<td>A numeric variable to receive the result of the UnicodeLength method. </td></tr>
<dt><i>unicode</i>
<tr><th><i>unicode</i> </th>
<dd>A Unicode string.
<td>A Unicode string.</td></tr>
 
</table>
</dl>
==Usage notes==
==Usage notes==
<ul>
<ul>

Revision as of 04:34, 19 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