matches


Description:

public bool matches (string range_list)

Checks if a language tag matches one of the elements in a list of language ranges.

A language tag is considered to match a range in the list if the range is '*', the range is exactly the tag, or the range is a prefix of the tag, and the character after it in the tag is '-'.

Parameters:

this

a language tag (see [[email protected]_string]), null is allowed and matches nothing but '*'

range_list

a list of language ranges, separated by ';', ':', ',', or space characters. Each element must either be '*', or a RFC 3066 language range canonicalized as by [[email protected]_string]

Returns:

true if a match was found




2022 vala-language.org