summaryrefslogtreecommitdiff
path: root/pango/pango-language.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-language.c')
-rw-r--r--pango/pango-language.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/pango/pango-language.c b/pango/pango-language.c
index 89e8f224..bd14b295 100644
--- a/pango/pango-language.c
+++ b/pango/pango-language.c
@@ -258,6 +258,21 @@ pango_language_from_string (const char *language)
}
/**
+ * pango_language_to_string:
+ * @language: a language tag.
+ *
+ * Gets the RFC-3066 format string representing the given language tag.
+ *
+ * Returns: a string representing the language tag. This is owned by
+ * Pango and should not be freed.
+ */
+G_CONST_RETURN char *
+(pango_language_to_string) (PangoLanguage *language)
+{
+ return pango_language_to_string (language);
+}
+
+/**
* pango_language_matches:
* @language: a language tag (see pango_language_from_string()),
* %NULL is allowed and matches nothing but '*'