matches


Description:

[ Version ( since = "5.0.0" ) ]
public Bool matches (Language specific)

Check whether a second language tag is the same or a more specific version of the provided language tag.

For example, "fa_IR.utf8" is a more specific tag for "fa" or for "fa_IR".

Parameters:

specific

Another Language

language

The Language to work on

Returns:

`true` if languages match, `false` otherwise.