PgLanguage

The #PangoLanguage structure is used to represent a language.

#PangoLanguage pointers can be efficiently copied and compared with each other.

Constructors

this
this(PangoLanguage* pangoLanguage, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getPgLanguageStruct
PangoLanguage* getPgLanguageStruct()

Get the main Gtk struct

getSampleString
string getSampleString()

Get a string that is representative of the characters needed to render a particular language.

getScripts
PangoScript[] getScripts()

Determines the scripts used to to write @language. If nothing is known about the language tag @language, or if @language is %NULL, then %NULL is returned. The list of scripts returned starts with the script that the language uses most and continues to the one it uses least.

getStruct
void* getStruct()

the main Gtk struct as a void*

includesScript
bool includesScript(PangoScript script)

Determines if @script is one of the scripts used to write @language. The returned value is conservative; if nothing is known about the language tag @language, %TRUE will be returned, since, as far as Pango knows, @script might be used to write @language.

matches
bool matches(string rangeList)

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 '-'.

toString
string toString()

Gets the RFC-3066 format string representing the given language tag.

Static functions

fromString
PgLanguage fromString(string language)

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.)

getDefault
PgLanguage getDefault()

Returns the #PangoLanguage for the current locale of the process. Note that this can change over the life of an application.

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
pangoLanguage
PangoLanguage* pangoLanguage;

the main Gtk struct

Meta