Difference between revisions of "Is Surrogate (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Created page with "<languages></languages> <translate> <!--T:1--> {{Infobox Logix Node | Name = Is Surrogate | Image = noframe | 128px | 'Is Surrogate' LogiX node ...")
 
(Marked this version for translation)
Line 15: Line 15:
 
This node takes a character input and outputs a boolean.
 
This node takes a character input and outputs a boolean.
  
 +
<!--T:6-->
 
If the character falls between the range <code>U+D800</code> to <code>U+DFFF</code>, this node will output <code>true</code>. Otherwise, it will output <code>false</code>
 
If the character falls between the range <code>U+D800</code> to <code>U+DFFF</code>, this node will output <code>true</code>. Otherwise, it will output <code>false</code>
  
Line 20: Line 21:
 
In the following image, the decimal number <code>55387</code> is being converted to a UTF16 character (<code>U+D85B</code>). This falls within the specified range, so it outputs <code>true</code>. "G" Falls outside this range and outputs <code>false</code>.
 
In the following image, the decimal number <code>55387</code> is being converted to a UTF16 character (<code>U+D85B</code>). This falls within the specified range, so it outputs <code>true</code>. "G" Falls outside this range and outputs <code>false</code>.
  
 +
<!--T:7-->
 
[[File:Logix Example IsSurrogate.png|500px]]
 
[[File:Logix Example IsSurrogate.png|500px]]
  

Revision as of 17:41, 11 September 2022

Other languages:
English • ‎日本語
Is Surrogate
'Is Surrogate' LogiX node
Inputs
  Char Character
Outputs
  Bool *

The Is Surrogate nodetakes 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.

Logix Example IsSurrogate.png

Node Menu

Characters
Back + From UTF16 From UTF32 Get Character Is Control Is Digit
Is Letter Is Letter Or Digit Is Lower Is Number Is Punctuation Is Separator Is Surrogate
Is Symbol Is Upper Is White Space String To UTF32 Surrogate Pair To UTF32 To Lower To Upper
To UTF16