Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pangoLanguageFromString

pangoLanguageFromString


Description

Take a RFC-3066 format language tag as a string and convert it to a PangoLanguage pointer that can be efficiently copied (copy the pointer) and compared with other language tags (compare the pointer.)

Usage

pangoLanguageFromString(language)

Arguments

language

[char] a string representing a language tag, or NULL

Details

This function first canonicalizes the string by converting it to lowercase, mapping '_' to '-', and stripping all characters other than letters and '-'.

Use pangoLanguageGetDefault if you want to get the PangoLanguage for the current locale of the process.

Value

[PangoLanguage] an opaque pointer to a PangoLanguage structure, or NULL if language was NULL. The returned pointer will be valid forever after, and should not be freed.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.