llOrd

From Second Life Wiki
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-32 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-32

Deep Notes

Search JIRA for related Issues

Signature

function integer llOrd( string val, integer index );