from_string


Description:

[ Version ( since = "0.9.2" ) ]
public static unowned Language from_string (uint8[] str)

Converts str representing a BCP 47 language tag to the corresponding Language .

Parameters:

str

a string representing a BCP 47 language tag

len

length of the str, or -1 if it is `NULL`-terminated.

Returns:

The Language corresponding to the BCP 47 language tag.