UnicodeLength (Unicode function): Difference between revisions
Jump to navigation
Jump to search
m (syntax terms, tags, links) |
mNo edit summary |
||
Line 14: | Line 14: | ||
==Usage notes== | ==Usage notes== | ||
<ul><li>The <var>UnicodeLength</var> method is analogous to the <var>String</var> intrinsic <var>[[Length (String function)|Length]]</var> method. | <ul><li>The <var>UnicodeLength</var> method is analogous to the <var>String</var> intrinsic <var>[[Length (String function)|Length]]</var> method. | ||
<li><var>UnicodeLength</var> is available as of <var class="product">[[Sirius Mods | <li><var>UnicodeLength</var> is available as of <var class="product">[[Sirius Mods]]</var> Version 7.5.</ul> | ||
==Examples== | ==Examples== | ||
<ol><li>The following fragment prints a <var>Unicode</var> string, then its length: | <ol><li>The following fragment prints a <var>Unicode</var> string, then its length: | ||
<p class="code">%u unicode initial ('&#x40;xyz':U) | <p class="code">%u unicode initial ('&#x40;xyz':[[U (String function)|U]]) | ||
print %u | print %u | ||
print %u:unicodelength | print %u:unicodelength |
Revision as of 21:21, 25 February 2011
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
- The UnicodeLength method is analogous to the String intrinsic Length method.
- 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