pub fn intersection_ordered_with_quality(
    raw_languages: &str,
    supported_languages: &[&str]
) -> Vec<(String, f32)>
Expand description

Similar to intersection_with_quality. The supported languages MUST be in alphabetical order, to find the common languages that could be presented to a user. Executes roughly 25% faster.

Example

use accept_language::intersection_ordered_with_quality;

let common_languages = intersection_ordered_with_quality("en-US, en-GB;q=0.5", &["de", "en-GB", "en-US"]);
assert_eq!(common_languages,vec![(String::from("en-US"), 1.0), (String::from("en-GB"), 0.5)])