UnicodeLength (Unicode function): Difference between revisions
Jump to navigation
Jump to search
m (→Usage Notes) |
mNo edit summary |
||
Line 2: | Line 2: | ||
[[Category:Intrinsic Unicode methods|UnicodeLength function]] | [[Category:Intrinsic Unicode methods|UnicodeLength function]] | ||
[[Category:Intrinsic methods]] | [[Category:Intrinsic methods]] | ||
<!--DPL?? Category:Intrinsic Unicode methods|UnicodeLength function: Number of characters in string--> | <!--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:Intrinsic methods|UnicodeLength (Unicode function): Number of characters in string--> |
Revision as of 20:08, 31 December 2010
Number of characters in string
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
%len = 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