UnicodeLength (Unicode function): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:Unicode:UnicodeLength subtitle}} | |||
[[Category:Intrinsic Unicode methods|UnicodeLength function]] | [[Category:Intrinsic Unicode methods|UnicodeLength function]] | ||
[[Category:Intrinsic methods]] | [[Category:Intrinsic methods]] | ||
Line 9: | Line 9: | ||
The UnicodeLength function is available as of version 7.5 of the ''Sirius Mods''. | The UnicodeLength function is available as of version 7.5 of the ''Sirius Mods''. | ||
==Syntax== | |||
{{Template:Unicode:UnicodeLength syntax}} | |||
===Syntax terms=== | |||
<dl> | <dl> | ||
<dt><i>%len</i> | <dt><i>%len</i> | ||
Line 19: | Line 19: | ||
</dl> | </dl> | ||
==Usage notes== | |||
<ul> | <ul> | ||
<li>The UnicodeLength method is analogous to | <li>The UnicodeLength method is analogous to | ||
Line 25: | Line 25: | ||
</ul> | </ul> | ||
==Examples== | |||
The following fragment prints a Unicode string, then its length: | The following fragment prints a Unicode string, then its length: |
Revision as of 04:09, 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 ('@xyz':U) Print %u Print %u:unicodelength
The result is:
@xyz 4