ProtoFlux:Is Surrogate: Difference between revisions

From Resonite Wiki
m fixup
style
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 ==

Revision as of 19:40, 3 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