ProtoFlux:Is Separator: Difference between revisions

From Resonite Wiki
Mention unicode categories more clearly
m fixup
Line 12: Line 12:
|}}
|}}


The <code>Is Separator</code> node takes in a character literal and returns if that character is a "separator" character, meaning it is in the following [[Unicode]] categories:
The <code>Is Separator</code> node takes in a character literal and returns if that character is a separator character.
 
* '''Line Separator'''. Note that this category does not include traditional "new line" characters such as [[ProtoFlux:New Line]].
* '''Paragraph Separator'''. Note that this category does not include traditional "new line" characters such as [[ProtoFlux:New Line]].
* '''Space Separator'''


== Inputs ==
== Inputs ==


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


Line 27: Line 22:


=== * ([[Type:bool|bool]]) ===
=== * ([[Type:bool|bool]]) ===
 
Returns <code>true</code> if <code>Character</code> is a separator, <code>false</code> otherwise. Separator characters recognized by this node are given the Unicode delegation [https://www.compart.com/en/unicode/category/Zl <code>Zl</code>], [https://www.compart.com/en/unicode/category/Zp <code>Zp</code>], or [https://www.compart.com/en/unicode/category/Zs <code>Zs</code>].
Returns if this is a separator.


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


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

Revision as of 21:22, 28 April 2024

Is Separator
Character
*
Characters

The Is Separator node takes in a character literal and returns if that character is a separator character.

Inputs

Character (char)

The character literal to check.

Outputs

* (bool)

Returns true if Character is a separator, false otherwise. Separator characters recognized by this node are given the Unicode delegation Zl, Zp, or Zs.

See Also