ispunct method

bool ispunct(
  1. String c
)

Checks if the character is a punctuation character (printable, not alphanumeric, not space).

Implementation

bool ispunct(String c) => isprint(c) && !isalnum(c) && !isspace(c);