ProtoFlux:Is Punctuation: Difference between revisions

From Resonite Wiki
Created a page for the Is Punctuation node.
 
style, formatting, doc clarification
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
|}}
|}}


The <code>Is Punctuation</code> node takes in a character literal and returns if that character is a punctuation. Punctuation characters are a group of conventional marks or characters used in punctuation.
The '''Is Punctuation''' node takes in a character literal and returns if that character is a punctuation character.


== 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 punctuation character, <code>false</code> otherwise. Punctuation characters recognized by this node are given the Unicode delegation [https://www.compart.com/en/unicode/category/Pc <code>Pc</code>], [https://www.compart.com/en/unicode/category/Pd <code>Pd</code>], [https://www.compart.com/en/unicode/category/Ps <code>Ps</code>], [https://www.compart.com/en/unicode/category/Pe <code>Pe</code>], [https://www.compart.com/en/unicode/category/Pi <code>Pi</code>], [https://www.compart.com/en/unicode/category/Pf <code>Pf</code>], or [https://www.compart.com/en/unicode/category/Po <code>Po</code>].


Returns if this is a punctuation.
== See Also ==
* [https://learn.microsoft.com/en-us/dotnet/api/system.char.ispunctuation#system-char-ispunctuation(system-char) Microsoft documentation of the <code>Char.IsPunctuation(Char)</code> method].


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

Latest revision as of 17:06, 4 June 2024

Is Punctuation
Character
*
Characters

The Is Punctuation node takes in a character literal and returns if that character is a punctuation character.

Inputs

Character (char)

The character literal to check.

Outputs

* (bool)

Returns true if Character is a punctuation character, false otherwise. Punctuation characters recognized by this node are given the Unicode delegation Pc, Pd, Ps, Pe, Pi, Pf, or Po.

See Also