television_utils::strings

Constant PRINTABLE_ASCII_THRESHOLD

Source
pub const PRINTABLE_ASCII_THRESHOLD: f32 = 0.7;
Expand description

The threshold for considering a buffer to be printable ASCII.

This is used to determine whether a file is likely to be a text file based on a sample of its contents.