Created page with "{{#Invoke:ProtoFlux|GenerateUI |Name=Is Surrogate |Category=Characters |Inputs= [ {"Name":"Character", "Type":"char"} ] |Outputs= [ {"Name":"*", "Type":"bool"} ] |}} The <code>Is Surrogate</code> node takes in a Type:char and returns whether that char 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 P..." |
style, doc, formatting |
||
(2 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
|}} | |}} | ||
The | 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 18: | Line 18: | ||
== Inputs == | == Inputs == | ||
=== Character ([[Type:char|char]]) === | === Character ([[Type:char|char]]) === | ||
The character to check. | The character to check. | ||
Line 25: | Line 24: | ||
=== * ([[Type:bool|bool]]) === | === * ([[Type:bool|bool]]) === | ||
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>. | |||
Returns if | |||
== See Also == | == See Also == | ||
* [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
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
.