ProtoFlux:Surrogate Pair To UTF32: Difference between revisions

From Resonite Wiki
create page yay!!!
 
add microsoft doc
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
|}}
|}}


The <code>Surrogate Pair To UTF32</code> node returns the codepoint ([[UTF-32]] value) generated from the two surrogate characters.
The '''Surrogate Pair To UTF32''' node returns the codepoint ([[UTF-32]] value) generated from the two surrogate characters.


== Inputs ==
== Inputs ==
Line 28: Line 28:
The codepoint generated from the two surrogate characters.
The codepoint generated from the two surrogate characters.


The value <code>0</code> is returned instead if either <code>HighSurrogate</code> is not a high surrogate</code> or <code>LowSurrogate</code> is not a low surrogate.
The value <code>0</code> is returned instead if either <code>HighSurrogate</code> is not a high surrogate or <code>LowSurrogate</code> is not a low surrogate.


== See Also ==
== See Also ==
* [https://en.wikipedia.org/wiki/UTF-16#U+D800_to_U+DFFF_(surrogates) The Wikipedia article on UTF-16], which goes into more depth about how exactly one encodes and decodes a UTF-32 codepoint to and from a surrogate pair.
* [https://en.wikipedia.org/wiki/UTF-16#U+D800_to_U+DFFF_(surrogates) The Wikipedia article on UTF-16], which goes into more depth about how exactly one encodes and decodes a UTF-32 codepoint to and from a surrogate pair.
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.converttoutf32#system-char-converttoutf32(system-char-system-char) Microsoft documentation for the <code>Char.ConvertToUtf32(Char, Char)</code> method.]


[[Category:ProtoFlux:Strings:Characters]]
[[Category:ProtoFlux:Strings:Characters]]

Latest revision as of 17:20, 4 June 2024

Surrogate Pair To UTF32
HighSurrogate
*
LowSurrogate
Characters

The Surrogate Pair To UTF32 node returns the codepoint (UTF-32 value) generated from the two surrogate characters.

Inputs

HighSurrogate (char)

The high surrogate of the surrogate pair.

LowSurrogate (char)

The low surrogate of the surrogate pair.

Outputs

* (int)

The codepoint generated from the two surrogate characters.

The value 0 is returned instead if either HighSurrogate is not a high surrogate or LowSurrogate is not a low surrogate.

See Also