Function in ascii coil-stdlib

is_print

fn is_print(byte c) -> bool
Import
use ascii::{is_print};
Source: src/ascii.hy

True for an ASCII printable byte (space through tilde).

Parameters#

NameType
cbyte

Returns#

bool

See also#

  • is_space: True for ASCII space, tab, line feed, or carriage return.
  • is_digit: True for an ASCII decimal digit (0 through 9).
  • is_hex: True for an ASCII hex digit (0-9, a-f, A-F).
  • is_alpha: True for an ASCII letter (A through Z or a through z).
  • is_alnum: True for an ASCII alphanumeric byte.
  • is_ctrl: True for an ASCII control byte (below space, excluding DEL).
  • to_lower: ASCII lower-case for A..=Z; other bytes unchanged.
  • to_upper: ASCII upper-case for a..=z; other bytes unchanged.
↑ ↓ navigate ↵ open