// test filterBasic() for preserving the case of matching tags for // the language range '*', with no duplicates in the matching tags
testFilter("*", List.of("de-CH", "hi-in", "En-GB", "ja-Latn-JP", "JA-JP", "en-GB"),
List.of("de-CH", "hi-in", "En-GB", "ja-Latn-JP", "JA-JP"),
FilteringMode.AUTOSELECT_FILTERING);
// test filterBasic() for preserving the case of matching tags for // basic ranges other than *, with no duplicates in the matching tags
testFilter("mtm-RU, en-GB", List.of("En-Gb", "mTm-RU", "en-US", "en-latn", "en-GB"),
List.of("mTm-RU", "En-Gb"), FilteringMode.AUTOSELECT_FILTERING);
// test filterExtended() for preserving the case of matching tags for // the language range '*', with no duplicates in the matching tags
testFilter("*", List.of("de-CH", "hi-in", "En-GB", "hi-IN", "ja-Latn-JP", "JA-JP"),
List.of("de-CH", "hi-in", "En-GB", "ja-Latn-JP", "JA-JP"),
FilteringMode.EXTENDED_FILTERING);
// test filterExtended() for preserving the case of matching tags for // extended ranges other than *, with no duplicates in the matching tags
testFilter("*-ch;q=0.5, *-Latn;q=0.4", List.of("fr-CH", "de-Ch", "en-latn", "en-US", "en-Latn"),
List.of("fr-CH", "de-Ch", "en-latn"),
FilteringMode.EXTENDED_FILTERING);
// test lookupTag() for preserving the case of matching tag
testLookup("*-ch;q=0.5", List.of("en", "fR-cH"), "fR-cH");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.