llOrd

From Second Life Wiki
Revision as of 10:38, 5 May 2021 by Rider Linden (talk | contribs) (Created page with "{{LSL Function |func_sleep=0.0|func_energy=10.0 |func=llOrd|sort=Ord |func_desc=Calculate the ordinal value for a character in a string. |return_type=integer |p1_type=string|p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

Function: integer llOrd( string val, integer index );

Calculate the ordinal value for a character in a string.
Returns an integer

• string val Source string for character ordinal.
• integer index Index of character ordinal to retrieve.

The returned value is the UTF-16 value of the character at the specified index.

Examples

See Also

Functions

• llChar Convert an ordinal into a character
• llHash Calculate a 32bit hash for a string

Articles

•  "Wikipedia logo"UTF-16

Deep Notes

Search JIRA for related Issues

Signature

function integer llOrd( string val, integer index );