summaryrefslogtreecommitdiff
path: root/pango/pango-language.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-06-09 19:53:20 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-06-09 19:53:20 +0000
commit239022bc8313ee472e773fcfb2868a67efb4c686 (patch)
tree07ee27e6e9429aa553c88ae73b8a24e00fd7996e /pango/pango-language.c
parent3eb2b0d3d21c74408bea4427950cc2addc529b3c (diff)
downloadpango-239022bc8313ee472e773fcfb2868a67efb4c686.tar.gz
Bug 537258 – Add a pango_language_to_string() function
2008-06-09 Behdad Esfahbod <behdad@gnome.org> Bug 537258 – Add a pango_language_to_string() function * docs/tmpl/text-attributes.sgml: * pango/pango-language.c (pango_language_to_string): * pango/pango-language.h: * pango/pango.def: Add a function implementation of pango_language_to_string(). The macro is still available. To be removed in a cycle or two from now. (bug #537466) svn path=/trunk/; revision=2651
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 '*'