ProtoFlux:Is Symbol: Difference between revisions

From Resonite Wiki
Create a page for the Is Symbol node.
 
m fixup
Line 12: Line 12:
|}}
|}}


The <code>Is Symbol</code> node takes in a character literal and returns if that character is a symbol. Symbol characters are specially defined characters in the Microsoft documentation as <code>MathSymbol</code>, <code>CurrencySymbol</code>, <code>ModifierSymbol</code> and <code>OtherSymbol</code>. This is why the '$' character is a valid symbol when using this node, for example.
The <code>Is Symbol</code> node takes in a character literal and returns if that character is a symbol as defined by Unicode.


== Inputs ==
== Inputs ==


=== Character ([[Type:char|char]]) ===  
=== Character ([[Type:char|char]]) ===
 
The character literal to check.
The character literal to check.


Line 23: Line 22:


=== * ([[Type:bool|bool]]) ===
=== * ([[Type:bool|bool]]) ===
 
Returns <code>true</code> if <code>Character</code> is a symbol, <code>false</code> otherwise. Symbol characters recognized by this node are given the unicode delegation [https://www.compart.com/en/unicode/category/Sm <code>Sm</code>], [https://www.compart.com/en/unicode/category/Sc <code>Sc</code>], [https://www.compart.com/en/unicode/category/Sk <code>Sk</code>], or [https://www.compart.com/en/unicode/category/So <code>So</code>].
Returns if this is a symbol.


== See Also ==
== See Also ==
 
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.issymbol Microsoft Documentation about the <code>Char.IsSymbol</code> method].
Microsoft Documentation about the Char.IsSymbol method. [https://learn.microsoft.com/en-us/dotnet/api/system.char.issymbol?view=net-8.0]


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

Revision as of 22:31, 28 April 2024

Is Symbol
Character
*
Characters

The Is Symbol node takes in a character literal and returns if that character is a symbol as defined by Unicode.

Inputs

Character (char)

The character literal to check.

Outputs

* (bool)

Returns true if Character is a symbol, false otherwise. Symbol characters recognized by this node are given the unicode delegation Sm, Sc, Sk, or So.

See Also