UnicodeLength (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "<span style="font-size:120%; color:black"><b>Number of characters in string</b></span> UnicodeLength function [[Category:Intrinsic methods]...")
 
mNo edit summary
 
(28 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Number of characters in string</b></span>
{{Template:Unicode:UnicodeLength subtitle}}
[[Category:Intrinsic Unicode methods|UnicodeLength function]]
<var>UnicodeLength</var> returns the number of characters in the method object string.
[[Category:Intrinsic methods]]
[[Category:System methods]]
<!--DPL?? Category:Intrinsic Unicode methods|UnicodeLength function: Number of characters in string-->
<!--DPL?? Category:Intrinsic methods|UnicodeLength (Unicode function): Number of characters in string-->
<!--DPL?? Category:System methods|UnicodeLength (Unicode function): Number of characters in string-->


This function returns the number of characters in the method object string.
==Syntax==
{{Template:Unicode:UnicodeLength syntax}}


The UnicodeLength function is available as of version 7.5  of the ''Sirius Mods''.
===Syntax terms===
===Syntax===
<table class="syntaxTable">
  %len = unicode:unicodeLength
<tr><th>%number</th>
====Syntax Terms====
<td>A numeric variable to receive the result of the <var>UnicodeLength</var> method. </td></tr>
<dl>
<dt><i>%len</i>
<dd>A numeric variable to receive the result of the UnicodeLength method.
<dt><i>unicode</i>
<dd>A Unicode string.


</dl>
<tr><th>unicode</th>
===Usage Notes===
<td>A <var>Unicode</var> string.</td></tr>
</table>
 
==Usage notes==
<ul>
<ul>
<li>The UnicodeLength method is analogous to
<li><var>UnicodeLength</var> is available as of <var class="product">Sirius Mods</var> Version 7.5.
the String intrinsic Length method (??[[Length (String function)|Length]]).
</ul>
</ul>
===Examples===


The following fragment prints a Unicode string, then its length:
==Examples==
<pre>
The following fragment prints a <var>Unicode</var> string, then its length:
    %u unicode initial ('&amp;#x40;xyz':U)
<p class="code">%u unicode initial ('&amp;#x40;xyz':[[U (String function)|U]])
    Print %u
print %u
    Print %u:unicodelength
print %u:unicodelength
</pre>
</p>
The result is:
<p class="output">@xyz
4
</p>
 
==See also==
<ul>
<li>The <var>UnicodeLength</var> method is analogous to the <var>String</var> intrinsic <var>[[Length (String function)|Length]]</var> method.
</ul>


The result is:
{{Template:Unicode:UnicodeLength footer}}
<pre>
    @xyz
    4
</pre>

Latest revision as of 17:23, 6 November 2012

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 ('&#x40;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.