Difference between revisions of "Is Surrogate (LogiX node)"
Jump to navigation
Jump to search
(Marked this version for translation) |
m (typo) |
||
Line 10: | Line 10: | ||
<!--T:2--> | <!--T:2--> | ||
− | The '''Is Surrogate''' | + | The '''Is Surrogate''' node takes a character and outputs <code>true</code> or <code>false</code> depending on if the character is a [https://en.wikipedia.org/wiki/Universal_Character_Set_characters#Surrogates Unicode surrogate] or not. |
== Usage == <!--T:3--> | == Usage == <!--T:3--> |
Revision as of 22:50, 11 September 2022
Is Surrogate | ||
---|---|---|
Inputs | ||
Char | Character | |
Outputs | ||
Bool | * |
The Is Surrogate node takes a character and outputs true
or false
depending on if the character is a Unicode surrogate or not.
Usage
This node takes a character input and outputs a boolean.
If the character falls between the range U+D800
to U+DFFF
, this node will output true
. Otherwise, it will output false
Examples
In the following image, the decimal number 55387
is being converted to a UTF16 character (U+D85B
). This falls within the specified range, so it outputs true
. "G" Falls outside this range and outputs false
.