#utf-8 #ascii

is_printable

Determine whether a given text-based value is printable

11 releases

0.0.11 Aug 11, 2024
0.0.10 Aug 11, 2024

#1600 in Text processing

27 downloads per month

MIT/Apache

7KB
84 lines

Determines whether a given text-based value is printable.

Printable example:

    let hello = "hello";
    let is_printable = hello.is_printable();
    assert_eq!(is_printable, true);

Unprintable example:

    let bell = '\u{7}'
    let is_printable = bell.is_printable();
    assert_eq!(is_printable, false);

Dependencies

~0–10MB
~43K SLoC