ProtoFlux:String To UTF32

From Resonite Wiki
Revision as of 18:10, 17 April 2024 by PJB (talk | contribs) (Created page with "{{#Invoke:ProtoFlux|GenerateUI |Name=String To UTF32 |Category=Characters |Inputs= [ {"Name": "String", "Type": "String"}, {"Name": "Index", "Type": "int"} ] |Outputs= [ {"Name": "*", "Type": "int"} ] |}} <code>String To UTF32</code> returns the code point (UTF-32 value) of a character or surrogate pair in a Type:string. == Inputs == === String (String) === The string to retrieve the character or surrogate pair from. === Index (Type:Int|int...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
String To UTF32
String
*
Index
Characters

String To UTF32 returns the code point (UTF-32 value) of a character or surrogate pair in a string.

Inputs

String (String)

The string to retrieve the character or surrogate pair from.

Index (int)

The 0-indexed character to retrieve from Str.

Outputs

* (int)

The code point (UTF-32 value) of a character or surrogate pair at the position in the string.

If String is null or the Index is outside the string, the value 0 is returned instead.