Skip to main content

begins_label

Function begins_label 

Source
fn begins_label(host: &str, word: &str) -> bool
Expand description

Whether word begins a label of host, or a part of one between hyphens: “ameli” in ameli.fr and assure.ameli.fr, not in camelia.com; “agricole” in credit-agricole.fr; “ameli.f”, typed on the way to “ameli.fr”, in ameli.fr.