#![deny(missing_docs)]
pub fn strip_modifiers(s: &str) -> String {
s.chars().filter(|c| !is_modifier(*c)).collect()
}
pub fn strip_all_emoji(s: &str) -> String {
s.chars()
.filter(|c| !is_modifier(*c) && !is_emoji(*c))
.collect()
}
pub fn is_emoji(c: char) -> bool {
matches!(c as u32,
0x1F300..=0x1F5FF | 0x1F600..=0x1F64F | 0x1F680..=0x1F6FF | 0x1F700..=0x1F77F | 0x1F780..=0x1F7FF | 0x1F800..=0x1F8FF | 0x1F900..=0x1F9FF | 0x1FA00..=0x1FA6F | 0x1FA70..=0x1FAFF | 0x2600..=0x26FF | 0x2700..=0x27BF )
}
fn is_modifier(c: char) -> bool {
matches!(c as u32,
0x200D | 0xFE00..=0xFE0F | 0x1F3FB..=0x1F3FF )
}