Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 56137fc01613c3216d40d3968a193ec8 > files > 161

soprano-apidocs-2.9.4-2.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Soprano: Soprano::LanguageTag Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Soprano
   &#160;<span id="projectnumber">2.9.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceSoprano.html">Soprano</a></li><li class="navelem"><a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classSoprano_1_1LanguageTag-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Soprano::LanguageTag Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> represents a language according to RFC 3066 and RFC 4646.  
 <a href="classSoprano_1_1LanguageTag.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="languagetag_8h_source.html">Soprano/LanguageTag</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a4377c0c2e9e66fa866ac61a3aef7bc7f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a> { <a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a> = 0, 
<a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7fab54d2235f49801dd112ed49b6ea76ca7">MatchFilterExtended</a> = 1
 }</td></tr>
<tr class="separator:a4377c0c2e9e66fa866ac61a3aef7bc7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71b32f74e4aaf912ef15ec3fabfc6a4d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a71b32f74e4aaf912ef15ec3fabfc6a4d">LookupFlag</a> { <a class="el" href="classSoprano_1_1LanguageTag.html#a71b32f74e4aaf912ef15ec3fabfc6a4daad408cf64b3a2e3cf6a34bed56f6b856">LookupFlagNone</a> = 0, 
<a class="el" href="classSoprano_1_1LanguageTag.html#a71b32f74e4aaf912ef15ec3fabfc6a4da93c5afa00b97db26eb14a6e085a80f4c">LookupFlagNoFallback</a> = 1
 }</td></tr>
<tr class="separator:a71b32f74e4aaf912ef15ec3fabfc6a4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<tr class="memitem:a8a2b3bca753359d25ea24a76fea3d3ea"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a8a2b3bca753359d25ea24a76fea3d3ea">LanguageTag</a> ()</td></tr>
<tr class="separator:a8a2b3bca753359d25ea24a76fea3d3ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2563e75b0855b8bc05a90b878798bf5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#ae2563e75b0855b8bc05a90b878798bf5">LanguageTag</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;other)</td></tr>
<tr class="separator:ae2563e75b0855b8bc05a90b878798bf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3563e6ffab7514b87b8ba9e1860328ad"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a3563e6ffab7514b87b8ba9e1860328ad">LanguageTag</a> (const char *tag)</td></tr>
<tr class="separator:a3563e6ffab7514b87b8ba9e1860328ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2671d2ba1dd60f8343d8620df3a5ce69"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a2671d2ba1dd60f8343d8620df3a5ce69">LanguageTag</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlatin1string.html">QLatin1String</a> &amp;tag)</td></tr>
<tr class="separator:a2671d2ba1dd60f8343d8620df3a5ce69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a933c90536969f6153c7170ae4f81d723"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a933c90536969f6153c7170ae4f81d723">LanguageTag</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;tag)</td></tr>
<tr class="separator:a933c90536969f6153c7170ae4f81d723"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7629ee48c6a4d870dd2ca8c838260f9d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a7629ee48c6a4d870dd2ca8c838260f9d">LanguageTag</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlocale.html">QLocale</a> &amp;locale)</td></tr>
<tr class="separator:a7629ee48c6a4d870dd2ca8c838260f9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a586443aa110e4c272ede50dd06c2db7b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a586443aa110e4c272ede50dd06c2db7b">LanguageTag</a> (QLocale::Language lang, QLocale::Country country=QLocale::AnyCountry)</td></tr>
<tr class="separator:a586443aa110e4c272ede50dd06c2db7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39267634830742fc58a85f118571e669"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a39267634830742fc58a85f118571e669">~LanguageTag</a> ()</td></tr>
<tr class="separator:a39267634830742fc58a85f118571e669"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Operators</div></td></tr>
<tr class="memitem:a677476e5e30feb7a584bd2a9dc627165"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a677476e5e30feb7a584bd2a9dc627165">operator=</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;other)</td></tr>
<tr class="separator:a677476e5e30feb7a584bd2a9dc627165"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8522a53852d2cd1f49c11d16d9335a58"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a8522a53852d2cd1f49c11d16d9335a58">operator==</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;other) const </td></tr>
<tr class="separator:a8522a53852d2cd1f49c11d16d9335a58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95497ab5a81ba75e82b3cdfb453a7a0d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a95497ab5a81ba75e82b3cdfb453a7a0d">operator!=</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;other) const </td></tr>
<tr class="separator:a95497ab5a81ba75e82b3cdfb453a7a0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46feb88d231ce9b2fe7129242c063b21"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a46feb88d231ce9b2fe7129242c063b21">operator&lt;</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;other) const </td></tr>
<tr class="separator:a46feb88d231ce9b2fe7129242c063b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa25cc92524909e3ce512c528c4e0137a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#aa25cc92524909e3ce512c528c4e0137a">operator&lt;=</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;other) const </td></tr>
<tr class="separator:aa25cc92524909e3ce512c528c4e0137a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d1f3b509b4cfd4b3aa14dda3ce274f6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a9d1f3b509b4cfd4b3aa14dda3ce274f6">operator&gt;</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;other) const </td></tr>
<tr class="separator:a9d1f3b509b4cfd4b3aa14dda3ce274f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dd3c510751fa6b29ff15d0625b6c9c1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a6dd3c510751fa6b29ff15d0625b6c9c1">operator&gt;=</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;other) const </td></tr>
<tr class="separator:a6dd3c510751fa6b29ff15d0625b6c9c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49def3c717321d896c15839163978250"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a49def3c717321d896c15839163978250">matches</a> (const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;range, <a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a> scheme=<a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a>) const </td></tr>
<tr class="separator:a49def3c717321d896c15839163978250"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Information</div></td></tr>
<tr class="memitem:ae3d5cc915f11c2c44a00d28aa1158036"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#ae3d5cc915f11c2c44a00d28aa1158036">isEmpty</a> () const </td></tr>
<tr class="separator:ae3d5cc915f11c2c44a00d28aa1158036"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b14fef98cfc591b00eed4cecc440e3a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a7b14fef98cfc591b00eed4cecc440e3a">isValid</a> () const </td></tr>
<tr class="separator:a7b14fef98cfc591b00eed4cecc440e3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5ef011bae0ab1b8fc242f87cc43f48b"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstringlist.html">QStringList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#af5ef011bae0ab1b8fc242f87cc43f48b">subTags</a> () const </td></tr>
<tr class="separator:af5ef011bae0ab1b8fc242f87cc43f48b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Conversion</div></td></tr>
<tr class="memitem:a83085fba13a9cfd901df62bef0dd54d4"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a83085fba13a9cfd901df62bef0dd54d4">toString</a> () const </td></tr>
<tr class="separator:a83085fba13a9cfd901df62bef0dd54d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a001e416e1e1cd4070a206e88c851ed32"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a001e416e1e1cd4070a206e88c851ed32">toPrettyString</a> () const </td></tr>
<tr class="separator:a001e416e1e1cd4070a206e88c851ed32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ba090fe4df9598d194002070ad4fec3"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlocale.html">QLocale</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a0ba090fe4df9598d194002070ad4fec3">toLocale</a> () const </td></tr>
<tr class="separator:a0ba090fe4df9598d194002070ad4fec3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dfebb028dcbb1f04d0db6d4e347ee6e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a2dfebb028dcbb1f04d0db6d4e347ee6e">operator QString</a> () const </td></tr>
<tr class="separator:a2dfebb028dcbb1f04d0db6d4e347ee6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a8e77196e95e5a07e3013828c88f27636"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a8e77196e95e5a07e3013828c88f27636">lookup</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &gt; &amp;choices, const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &gt; &amp;priority, LookupFlags flags=<a class="el" href="classSoprano_1_1LanguageTag.html#a71b32f74e4aaf912ef15ec3fabfc6a4daad408cf64b3a2e3cf6a34bed56f6b856">LookupFlagNone</a>, <a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a> scheme=<a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a>)</td></tr>
<tr class="separator:a8e77196e95e5a07e3013828c88f27636"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a009bfb880fbb96e26359381da2ed2807"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1LanguageTag.html#a009bfb880fbb96e26359381da2ed2807">lookup</a> (const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &gt; &amp;choices, const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;priority, LookupFlags flags=<a class="el" href="classSoprano_1_1LanguageTag.html#a71b32f74e4aaf912ef15ec3fabfc6a4daad408cf64b3a2e3cf6a34bed56f6b856">LookupFlagNone</a>, <a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a> scheme=<a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a>)</td></tr>
<tr class="separator:a009bfb880fbb96e26359381da2ed2807"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> represents a language according to RFC 3066 and RFC 4646. </p>
<dl class="section author"><dt>Author</dt><dd>Greg Beauchesne <a href="#" onclick="location.href='mai'+'lto:'+'gre'+'g_'+'b@v'+'is'+'ion'+'-p'+'lay'+'.c'+'om'; return false;">greg_<span style="display: none;">.nosp@m.</span>b@vi<span style="display: none;">.nosp@m.</span>sion-<span style="display: none;">.nosp@m.</span>play<span style="display: none;">.nosp@m.</span>.com</a></dd></dl>
<dl class="section since"><dt>Since</dt><dd>2.3 </dd></dl>

<p>Definition at line <a class="el" href="languagetag_8h_source.html#l00044">44</a> of file <a class="el" href="languagetag_8h_source.html">languagetag.h</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="a4377c0c2e9e66fa866ac61a3aef7bc7f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">Soprano::LanguageTag::MatchFilter</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e"></a>MatchFilterBasic</em>&nbsp;</td><td class="fielddoc">
<p>Represents basic language filtering as described in RFC 3066 section 2.5 (or RFC 4647 section 3.3.1). Basic language filtering checks only that the range string is a prefix of a language tag and that the prefix is followed by "-" or the end of the string. Additionally, the language range "*" matches all tags. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a4377c0c2e9e66fa866ac61a3aef7bc7fab54d2235f49801dd112ed49b6ea76ca7"></a>MatchFilterExtended</em>&nbsp;</td><td class="fielddoc">
<p>Represents extended language filtering as described in RFC 4647 section 3.3.2. Extended language filtering breaks tags up into subtags and is permitted to skip subtags in the language tag in order to match parts of the range string. </p>
</td></tr>
</table>

<p>Definition at line <a class="el" href="languagetag_8h_source.html#l00047">47</a> of file <a class="el" href="languagetag_8h_source.html">languagetag.h</a>.</p>

</div>
</div>
<a class="anchor" id="a71b32f74e4aaf912ef15ec3fabfc6a4d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classSoprano_1_1LanguageTag.html#a71b32f74e4aaf912ef15ec3fabfc6a4d">Soprano::LanguageTag::LookupFlag</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Flags for performing <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> lookups.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoprano_1_1LanguageTag.html#a8e77196e95e5a07e3013828c88f27636">lookup()</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a71b32f74e4aaf912ef15ec3fabfc6a4daad408cf64b3a2e3cf6a34bed56f6b856"></a>LookupFlagNone</em>&nbsp;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a71b32f74e4aaf912ef15ec3fabfc6a4da93c5afa00b97db26eb14a6e085a80f4c"></a>LookupFlagNoFallback</em>&nbsp;</td><td class="fielddoc">
<p>Disables fallback behavior for lookup ranges. </p>
</td></tr>
</table>

<p>Definition at line <a class="el" href="languagetag_8h_source.html#l00070">70</a> of file <a class="el" href="languagetag_8h_source.html">languagetag.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8a2b3bca753359d25ea24a76fea3d3ea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::LanguageTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default constructor. Creates an empty language tag. </p>

</div>
</div>
<a class="anchor" id="ae2563e75b0855b8bc05a90b878798bf5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::LanguageTag </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy constructor.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The language tag from which to copy </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3563e6ffab7514b87b8ba9e1860328ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::LanguageTag </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>tag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates a language tag.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tag</td><td>The language tag string </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2671d2ba1dd60f8343d8620df3a5ce69"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::LanguageTag </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlatin1string.html">QLatin1String</a> &amp;&#160;</td>
          <td class="paramname"><em>tag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates a language tag.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tag</td><td>The language tag string </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a933c90536969f6153c7170ae4f81d723"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::LanguageTag </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>tag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates a language tag.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tag</td><td>The language tag string </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7629ee48c6a4d870dd2ca8c838260f9d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::LanguageTag </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlocale.html">QLocale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Creates a language tag from a <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlocale.html">QLocale</a>. If the language is QLocale::C, then an empty <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> is produced.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a586443aa110e4c272ede50dd06c2db7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::LanguageTag </td>
          <td>(</td>
          <td class="paramtype">QLocale::Language&#160;</td>
          <td class="paramname"><em>lang</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QLocale::Country&#160;</td>
          <td class="paramname"><em>country</em> = <code>QLocale::AnyCountry</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates a language tag from a language and country. If <em>lang</em> is QLocale::C, then an empty <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> is produced.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lang</td><td>the language code </td></tr>
    <tr><td class="paramname">country</td><td>the country code </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a39267634830742fc58a85f118571e669"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::~LanguageTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a677476e5e30feb7a584bd2a9dc627165"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a>&amp; Soprano::LanguageTag::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Assigns <em>other</em> to this tag. </p>

</div>
</div>
<a class="anchor" id="a8522a53852d2cd1f49c11d16d9335a58"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comparison operator. Language tag comparisons are case-insensitive.</p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this tag and <code>other</code> are equal. </dd></dl>

</div>
</div>
<a class="anchor" id="a95497ab5a81ba75e82b3cdfb453a7a0d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comparison operator. Language tag comparisons are case-insensitive. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this tag and <code>other</code> differ. </dd></dl>

</div>
</div>
<a class="anchor" id="a46feb88d231ce9b2fe7129242c063b21"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comparison operator. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this tag is lexically less than <code>other</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="aa25cc92524909e3ce512c528c4e0137a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::operator&lt;= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comparison operator. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this tag is lexically less than or equal to <code>other</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a9d1f3b509b4cfd4b3aa14dda3ce274f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::operator&gt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comparison operator. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this tag is lexically greater than <code>other</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a6dd3c510751fa6b29ff15d0625b6c9c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::operator&gt;= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Comparison operator. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this tag is lexically greater than or equal to <code>other</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a49def3c717321d896c15839163978250"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::matches </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a>&#160;</td>
          <td class="paramname"><em>scheme</em> = <code><a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Match this language tag against <em>range</em> using the specified filtering scheme.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">range</td><td>the range against which to match </td></tr>
    <tr><td class="paramname">scheme</td><td>the filtering scheme to use</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this tag matches <em>pattern</em>, <code>false</code> if not. </dd></dl>

</div>
</div>
<a class="anchor" id="ae3d5cc915f11c2c44a00d28aa1158036"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this language tag is empty. </dd></dl>

</div>
</div>
<a class="anchor" id="a7b14fef98cfc591b00eed4cecc440e3a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Soprano::LanguageTag::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determines if this language tag is valid. A valid language tag is divided into subtags that are divided by "-". The tag must adhere the following rules:</p>
<ul>
<li>Each subtag is composed only of characters in the ASCII range [a-zA-Z0-9] (letters and digits), with the exception of the first subtag, which must be composed of letters only</li>
<li>No subtags are empty</li>
<li>No subtags are longer than 8 characters</li>
<li>Single-character subtags cannot end the tag unless after a private use ("x") subtag (e.g. "en-x-i" and "en-x-abcd-i" are legal; "en-x", "en-i", and "en-i-abcd-g" are illegal)</li>
</ul>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if this language tag is valid </dd></dl>

</div>
</div>
<a class="anchor" id="af5ef011bae0ab1b8fc242f87cc43f48b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstringlist.html">QStringList</a> Soprano::LanguageTag::subTags </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the subtag parts that make up this language tag </dd></dl>

</div>
</div>
<a class="anchor" id="a83085fba13a9cfd901df62bef0dd54d4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> Soprano::LanguageTag::toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Converts this <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> to a string.</p>
<dl class="section return"><dt>Returns</dt><dd>the string representation of this <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a001e416e1e1cd4070a206e88c851ed32"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> Soprano::LanguageTag::toPrettyString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Converts this <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> to a string formatted according to the case rules in RFC 4647 section 4.4 (page 44).</p>
<dl class="section return"><dt>Returns</dt><dd>the pretty string representation of this <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0ba090fe4df9598d194002070ad4fec3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlocale.html">QLocale</a> Soprano::LanguageTag::toLocale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Converts this <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> to a locale, using the primary language tag and first two-letter language subtag, if any. If the conversion could not be performed, then the "C" <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlocale.html">QLocale</a> is returned.</p>
<dl class="section return"><dt>Returns</dt><dd>the converted locale</dd></dl>
<dl class="section note"><dt>Note</dt><dd><a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlocale.html">QLocale</a> restricts the countries that can be paired with a particular language. If the language-country pair in this tag is not in the <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlocale.html">QLocale</a> database, or if this language tag does not contain country information, then the most appropriate country will be used for the locale. For example, "de-US" (German as spoken in the United States) is not a valid combination, and the country would be changed to Germany. </dd></dl>

</div>
</div>
<a class="anchor" id="a2dfebb028dcbb1f04d0db6d4e347ee6e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::operator <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qstring.html">QString</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>A convenience operator to convert this <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a> to a string.</p>
<dl class="section return"><dt>Returns</dt><dd>the string representation of this <a class="el" href="classSoprano_1_1LanguageTag.html" title="A LanguageTag represents a language according to RFC 3066 and RFC 4646.">LanguageTag</a></dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoprano_1_1LanguageTag.html#a83085fba13a9cfd901df62bef0dd54d4">toString()</a> </dd></dl>

<p>Definition at line <a class="el" href="languagetag_8h_source.html#l00277">277</a> of file <a class="el" href="languagetag_8h_source.html">languagetag.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8e77196e95e5a07e3013828c88f27636"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int Soprano::LanguageTag::lookup </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>choices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LookupFlags&#160;</td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="classSoprano_1_1LanguageTag.html#a71b32f74e4aaf912ef15ec3fabfc6a4daad408cf64b3a2e3cf6a34bed56f6b856">LookupFlagNone</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a>&#160;</td>
          <td class="paramname"><em>scheme</em> = <code><a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Compares a language tag against a list of language tags and selects the most suitable tag according to the rules of RFC 4647 Section 3.4.</p>
<p>The arguments consist of <em>choices</em>, a list of tags from which to select, and <em>priority</em>, a list of acceptable language ranges. Both lists must be sorted in descending order of preference.</p>
<p>The matching algorithm works as follows: </p>
<ol>
<li>
For each item in the <em>priority</em> list, the <em>choices</em> list is scanned for matches. The wildcard value "*" is ignored in lookup operations, as it would match any tag. If a match occurs, the lookup is complete and the matching <em>choices</em> list index is returned. </li>
<li>
If no match has been found, the last subtag on the current <em>priority</em> item is truncated, and the <em>choices</em> list is scanned again. Single-character subtags are also truncated if they are at the end of the tag. This repeats until there are no subtags remaining. This fallback behavior can be skipped by specifying the LookupFlagsNoFallback flag. </li>
<li>
If neither the current <em>priority</em> item nor any of its fallback values matched the <em>choices</em> list, then the next item in the <em>priority</em> list is considered according to the above steps. </li>
<li>
If none of the <em>priority</em> items match the <em>choices</em> list, then a value &lt; 0 is returned. </li>
</ol>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">choices</td><td>the list of available language choices </td></tr>
    <tr><td class="paramname">priority</td><td>the language priority list </td></tr>
    <tr><td class="paramname">flags</td><td>flags for the lookup operation </td></tr>
    <tr><td class="paramname">scheme</td><td>the matching scheme to use. RFC 4647 specifies that basic (<a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a>) processing should be used.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the index of the matching language tag in <em>choices</em>, or &lt; 0 if no tag matched. </dd></dl>

</div>
</div>
<a class="anchor" id="a009bfb880fbb96e26359381da2ed2807"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int Soprano::LanguageTag::lookup </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt4.tag:/usr/share/doc/qt4/html/" href="/usr/share/doc/qt4/html/qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>choices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &amp;&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LookupFlags&#160;</td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="classSoprano_1_1LanguageTag.html#a71b32f74e4aaf912ef15ec3fabfc6a4daad408cf64b3a2e3cf6a34bed56f6b856">LookupFlagNone</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a>&#160;</td>
          <td class="paramname"><em>scheme</em> = <code><a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>A convenience method to select a language tag based on a single search pattern.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">choices</td><td>the list of available language choices </td></tr>
    <tr><td class="paramname">priority</td><td>the language range against which to match </td></tr>
    <tr><td class="paramname">flags</td><td>flags for the lookup operation </td></tr>
    <tr><td class="paramname">scheme</td><td>the matching scheme to use. RFC 4647 specifies that basic (<a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e">MatchFilterBasic</a>) processing should be used.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the index of the matching language tag in <em>choices</em>, or &lt; 0 if no tag matched.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoprano_1_1LanguageTag.html#a8e77196e95e5a07e3013828c88f27636">lookup(const QList&lt;LanguageTag&gt; &amp;, const QList&lt;LanguageTag&gt; &amp;, LookupFlags, MatchFilter)</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/builddir/build/BUILD/soprano-2.9.4/soprano/<a class="el" href="languagetag_8h_source.html">languagetag.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>