plaso.helpers package

Subpackages

Submodules

plaso.helpers.language_tags module

Language tags helper.

For a list of language tags see:

https://datatracker.ietf.org/doc/html/rfc5646

class plaso.helpers.language_tags.LanguageTagHelper[source]

Bases: object

Language tags helper.

classmethod GetLanguages()[source]

Retrieveve the language tags with their description.

Returns:

lanugage tag and description.

Return type:

tuple[str, str]

classmethod IsLanguageTag(string)[source]

Detemines if a string contains a valid language tag.

Parameters:

string (str) – a string.

Returns:

True if the string contains a language tag.

Return type:

bool

Module contents