printable_char library

Test if a character code represents a printable character.

Functions

isGraphic(int rune) bool
IsGraphic reports whether the rune is defined as a Graphic by Unicode. [...]
isPrintable(int rune) bool
isPrintable reports whether the rune is defined as a Graphic by Unicode, except that the only spacing character is ASCII space, U+0020. Such characters include letters, marks, numbers, punctuation, and symbols from categories L, M, N, P, S.