<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Pango::Language class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>Pango::Language Class Reference</h1>A Pango::Language is used to represent a language. <a href="#_details">More...</a> <p> <a href="classPango_1_1Language-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a0">Language</a> (PangoLanguage* gobject, bool make_a_copy=true)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a1">Language</a> (const Language& other)</td></tr> <tr><td nowrap align=right valign=top>Language& </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a2">operator=</a> (const Language& other)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a3">~Language</a> ()</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a4">swap</a> (Language& other)</td></tr> <tr><td nowrap align=right valign=top>PangoLanguage* </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a5">gobj</a> ()</td></tr> <tr><td nowrap align=right valign=top>const PangoLanguage* </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a6">gobj</a> () const</td></tr> <tr><td nowrap align=right valign=top>PangoLanguage* </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a7">gobj_copy</a> () const</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a8">Language</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Constructs an empty language tag.</em> <a href="#a8"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a9">Language</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& language)</td></tr> <tr><td> </td><td><font size=-1><em>Constructs a Pango::Language object from a RFC-3066 format language tag.</em> <a href="#a9"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a10">get_string</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Gets a RFC-3066 format string representing the given language tag.</em> <a href="#a10"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#a11">matches</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& range_list) const</td></tr> <tr><td> </td><td><font size=-1><em>Checks if a language tag matches one of the elements in a list of language ranges.</em> <a href="#a11"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>PangoLanguage* </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#n0">gobject_</a></td></tr> <tr><td colspan=2><br><h2>Related Functions</h2></td></tr> <tr><td colspan=2>(Note that these are not member functions.)<br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#k0">swap</a> (Language& lhs, Language& rhs)</td></tr> <tr><td nowrap align=right valign=top>Pango::Language </td><td valign=bottom><a class="el" href="classPango_1_1Language.html#k1">wrap</a> (PangoLanguage* object, bool take_copy=false)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A Pango::Language is used to represent a language. <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Pango::Language::Language"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Pango::Language::Language </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">PangoLanguage* </td> <td class="mdname" nowrap> <em>gobject</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>make_a_copy</em> = true</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [explicit]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a1" doxytag="Pango::Language::Language"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Pango::Language::Language </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const Language& </td> <td class="mdname1" valign="top" nowrap> <em>other</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="Pango::Language::~Language"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Pango::Language::~Language </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a8" doxytag="Pango::Language::Language"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Pango::Language::Language </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Constructs an empty language tag. <p> </td> </tr> </table> <a name="a9" doxytag="Pango::Language::Language"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Pango::Language::Language </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="mdname1" valign="top" nowrap> <em>language</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Constructs a Pango::Language object from a RFC-3066 format language tag. <p> This function first canonicalizes the string by converting it to lowercase, mapping '_' to '-', and stripping all characters other than letters and '-'. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a10" doxytag="Pango::Language::get_string"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Pango::Language::get_string </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets a RFC-3066 format string representing the given language tag. <p> <dl compact><dt><b>Returns:</b></dt><dd>A string representing the language tag. An empty string is returned if the language tag is empty. </dd></dl> </td> </tr> </table> <a name="a6" doxytag="Pango::Language::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const PangoLanguage* Pango::Language::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a5" doxytag="Pango::Language::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PangoLanguage* Pango::Language::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a7" doxytag="Pango::Language::gobj_copy"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PangoLanguage* Pango::Language::gobj_copy </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a11" doxytag="Pango::Language::matches"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Pango::Language::matches </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="mdname1" valign="top" nowrap> <em>range_list</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Checks if a language tag matches one of the elements in a list of language ranges. <p> 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 the tag is '-'. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>range_list</em> </td><td>A list of language ranges, separated by ';' characters. each element must either be '*', or a RFC 3066 language range canonicalized as by pango_language_from_string(). </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if a match was found. </dd></dl> </td> </tr> </table> <a name="a2" doxytag="Pango::Language::operator="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Language& Pango::Language::operator= </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const Language& </td> <td class="mdname1" valign="top" nowrap> <em>other</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a4" doxytag="Pango::Language::swap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Pango::Language::swap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">Language& </td> <td class="mdname1" valign="top" nowrap> <em>other</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="k0" doxytag="Pango::Language::swap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void swap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">Language& </td> <td class="mdname" nowrap> <em>lhs</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>Language& </td> <td class="mdname" nowrap> <em>rhs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="k1" doxytag="Pango::Language::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Pango::Language wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">PangoLanguage* </td> <td class="mdname" nowrap> <em>object</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="n0" doxytag="Pango::Language::gobject_"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PangoLanguage* Pango::Language::gobject_<code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="language_8h.html">language.h</a></ul> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>