ProtoFlux:From UTF32: Difference between revisions

From Resonite Wiki
m who was the moron that said the output was a char and not a string (it's me, I'm the moron)
m cleanup
Line 12: Line 12:
|}}
|}}


From UTF32 is a ProtoFlux node that transforms a number in its respective UTF32 character, which can reside anywhere within [https://en.wikipedia.org/wiki/Unicode#Codespace_and_code_points valid Unicode codepoints].
From UTF32 is a ProtoFlux node that transforms a UTF32 codepoint into its respective UTF32 character.


== Inputs ==
== Inputs ==


=== UTF32 ([[Type:Int|int]]) ===
=== UTF32 ([[Type:int|int]]) ===


The Unicode codepoint, as decimal, to convert.
The Unicode codepoint, as decimal, to convert.
Line 22: Line 22:
== Outputs ==
== Outputs ==


=== * ([[Type:String|string]]) ===
=== * ([[Type:string|string]]) ===


The resulting converted character. If the input does not reside within valid Unicode codepoints, a null string will be outputted. Note that the output of this will not always containe one singular <code>char</code>, specifically when the input extends past the [https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane Basic Multilingual Plane]
The resulting converted character. If the input does not reside within [https://en.wikipedia.org/wiki/Unicode#Codespace_and_code_points valid Unicode codepoints], a null string will be outputted.
 
Note that the output of this will not always containe one singular <code>char</code>. Specifically, when the input extends past the [https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane Basic Multilingual Plane], two surrogate <code>char</code>s will be present.


== Examples ==
== Examples ==

Revision as of 18:50, 28 April 2024

From UTF32
UTF32
*
Characters

From UTF32 is a ProtoFlux node that transforms a UTF32 codepoint into its respective UTF32 character.

Inputs

UTF32 (int)

The Unicode codepoint, as decimal, to convert.

Outputs

* (string)

The resulting converted character. If the input does not reside within valid Unicode codepoints, a null string will be outputted.

Note that the output of this will not always containe one singular char. Specifically, when the input extends past the Basic Multilingual Plane, two surrogate chars will be present.

Examples