Difference between revisions of "LlOrd"
Jump to navigation
Jump to search
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...") |
Rider Linden (talk | contribs) |
||
Line 9: | Line 9: | ||
|p2_hover=Index of character ordinal to retrieve. | |p2_hover=Index of character ordinal to retrieve. | ||
|return_text= | |return_text= | ||
|func_footnote=The returned value is the UTF- | |func_footnote=The returned value is the UTF-32 value of the character at the specified index. | ||
|spec | |spec | ||
|caveats | |caveats | ||
Line 17: | Line 17: | ||
{{LSL DefineRow|[[llChar]]|Convert an ordinal into a character}} | {{LSL DefineRow|[[llChar]]|Convert an ordinal into a character}} | ||
{{LSL DefineRow|[[llHash]]|Calculate a 32bit hash for a string}} | {{LSL DefineRow|[[llHash]]|Calculate a 32bit hash for a string}} | ||
|also_articles={{LSL DefineRow||{{wikipedia|UTF- | |also_articles={{LSL DefineRow||{{wikipedia|UTF-32}}|}} | ||
|notes | |notes | ||
|cat1 | |cat1 | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 12:53, 5 May 2021
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llOrd( string val, integer index );? | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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.