ProtoFlux:Is Surrogate: Difference between revisions

From Resonite Wiki
m fixup
style, doc, formatting
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
|}}
|}}


The <code>Is Surrogate</code> node takes in a [[Type:char|char]] and returns whether that character is a surrogate.
The '''Is Surrogate''' node takes in a [[Type:char|char]] and returns whether that character is a surrogate.


Surrogates are special values in [[UTF-16]] that, in pairs, allows representing characters outside the [https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane Basic Multilingual Plane].
Surrogates are special values in [[UTF-16]] that, in pairs, allows representing characters outside the [https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane Basic Multilingual Plane].
Line 24: Line 24:


=== * ([[Type:bool|bool]]) ===
=== * ([[Type:bool|bool]]) ===
Returns true if <code>Character</code> is a surrogate, <code>false</code> otherwise. Surrogate characters recognized by this node are all characters between <code>0xD800</code> and <code>0xDFFF</code>.
Returns <code>true</code> if <code>Character</code> is a surrogate, <code>false</code> otherwise. Surrogate characters recognized by this node are all characters between <code>U+D800</code> and <code>U+DFFF</code>.


== See Also ==
== See Also ==
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.issurrogate Microsoft Documentation about the <code>Char.IsSurrogate</code> method].
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.issurrogate#system-char-issurrogate(system-char) Microsoft Documentation about the <code>Char.IsSurrogate(Char)</code> method].


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

Latest revision as of 17:09, 4 June 2024

Is Surrogate
Character
*
Characters

The Is Surrogate node takes in a char and returns whether that character is a surrogate.

Surrogates are special values in UTF-16 that, in pairs, allows representing characters outside the Basic Multilingual Plane.

Inputs

Character (char)

The character to check.

Outputs

* (bool)

Returns true if Character is a surrogate, false otherwise. Surrogate characters recognized by this node are all characters between U+D800 and U+DFFF.

See Also