Function is_zalgo

Source
pub fn is_zalgo(ch: char) -> bool
Expand description

Determines whether a given char is a Zalgo char. This is checked by checking if a combination of the defined Zalgo chars contains the given char.

§Examples

A basic check:

assert!(zalgo::is_zalgo('҉'));

// The following is simply a latin letter, and is not zalgo:
assert!(!zalgo::is_zalgo('a'));
Examples found in repository?
examples/is_zalgo.rs (line 5)
4fn main() {
5    let _: bool = zalgo::is_zalgo( '҉');
6
7    // The following is simply a latin letter, and would return `false` as it is
8    // not zalgo.
9    let _: bool = zalgo::is_zalgo('a');
10}