Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 5b6c31d6428e1f6ea754ea6f7b1aed6e > files > 152

soprano-apidocs-2.6.0-2.fc14.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"/>
<title>Soprano: Soprano::LanguageTag Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div id="top">
<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.6.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <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>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>Soprano::LanguageTag Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Soprano::LanguageTag" -->
<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="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="languagetag_8h_source.html">Soprano/LanguageTag</a>&gt;</code></p>

<p><a href="classSoprano_1_1LanguageTag-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><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><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><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<tr><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><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><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><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" href="qlatin1string.html">QLatin1String</a> &amp;tag)</td></tr>
<tr><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" href="qstring.html">QString</a> &amp;tag)</td></tr>
<tr><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" href="qlocale.html">QLocale</a> &amp;locale)</td></tr>
<tr><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><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><td colspan="2"><div class="groupHeader">Operators</div></td></tr>
<tr><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><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><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><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><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><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><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><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=MatchFilterBasic) const </td></tr>
<tr><td colspan="2"><div class="groupHeader">Information</div></td></tr>
<tr><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><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><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="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><td colspan="2"><div class="groupHeader">Conversion</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="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><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="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><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="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><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><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><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" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &gt; &amp;choices, const <a class="elRef" href="qlist.html">QList</a>&lt; <a class="el" href="classSoprano_1_1LanguageTag.html">LanguageTag</a> &gt; &amp;priority, LookupFlags flags=LookupFlagNone, <a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a> scheme=MatchFilterBasic)</td></tr>
<tr><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" href="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=LookupFlagNone, <a class="el" href="classSoprano_1_1LanguageTag.html#a4377c0c2e9e66fa866ac61a3aef7bc7f">MatchFilter</a> scheme=MatchFilterBasic)</td></tr>
</table>
<hr/><a name="_details"></a><h2>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="author"><dt><b>Author:</b></dt><dd>Greg Beauchesne &lt;<a href="mailto:greg_b@vision-play.com">greg_b@vision-play.com</a>&gt;</dd></dl>
<dl class="since"><dt><b>Since:</b></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><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a4377c0c2e9e66fa866ac61a3aef7bc7f"></a><!-- doxytag: member="Soprano::LanguageTag::MatchFilter" ref="a4377c0c2e9e66fa866ac61a3aef7bc7f" args="" -->
<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">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e"></a><!-- doxytag: member="MatchFilterBasic" ref="a4377c0c2e9e66fa866ac61a3aef7bc7faeaaf7a366ad54e5aa9e661ab70875c2e" args="" -->MatchFilterBasic</em>&nbsp;</td><td>
<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 valign="top"><em><a class="anchor" id="a4377c0c2e9e66fa866ac61a3aef7bc7fab54d2235f49801dd112ed49b6ea76ca7"></a><!-- doxytag: member="MatchFilterExtended" ref="a4377c0c2e9e66fa866ac61a3aef7bc7fab54d2235f49801dd112ed49b6ea76ca7" args="" -->MatchFilterExtended</em>&nbsp;</td><td>
<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>
</dd>
</dl>

<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><!-- doxytag: member="Soprano::LanguageTag::LookupFlag" ref="a71b32f74e4aaf912ef15ec3fabfc6a4d" args="" -->
<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="see"><dt><b>See also:</b></dt><dd><a class="el" href="classSoprano_1_1LanguageTag.html#a8e77196e95e5a07e3013828c88f27636">lookup()</a> </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a71b32f74e4aaf912ef15ec3fabfc6a4daad408cf64b3a2e3cf6a34bed56f6b856"></a><!-- doxytag: member="LookupFlagNone" ref="a71b32f74e4aaf912ef15ec3fabfc6a4daad408cf64b3a2e3cf6a34bed56f6b856" args="" -->LookupFlagNone</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a71b32f74e4aaf912ef15ec3fabfc6a4da93c5afa00b97db26eb14a6e085a80f4c"></a><!-- doxytag: member="LookupFlagNoFallback" ref="a71b32f74e4aaf912ef15ec3fabfc6a4da93c5afa00b97db26eb14a6e085a80f4c" args="" -->LookupFlagNoFallback</em>&nbsp;</td><td>
<p>Disables fallback behavior for lookup ranges. </p>
</td></tr>
</table>
</dd>
</dl>

<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>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8a2b3bca753359d25ea24a76fea3d3ea"></a><!-- doxytag: member="Soprano::LanguageTag::LanguageTag" ref="a8a2b3bca753359d25ea24a76fea3d3ea" args="()" -->
<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><!-- doxytag: member="Soprano::LanguageTag::LanguageTag" ref="ae2563e75b0855b8bc05a90b878798bf5" args="(const LanguageTag &amp;other)" -->
<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><dt><b>Parameters:</b></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><!-- doxytag: member="Soprano::LanguageTag::LanguageTag" ref="a3563e6ffab7514b87b8ba9e1860328ad" args="(const char *tag)" -->
<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><dt><b>Parameters:</b></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><!-- doxytag: member="Soprano::LanguageTag::LanguageTag" ref="a2671d2ba1dd60f8343d8620df3a5ce69" args="(const QLatin1String &amp;tag)" -->
<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" href="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><dt><b>Parameters:</b></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><!-- doxytag: member="Soprano::LanguageTag::LanguageTag" ref="a933c90536969f6153c7170ae4f81d723" args="(const QString &amp;tag)" -->
<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" href="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><dt><b>Parameters:</b></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><!-- doxytag: member="Soprano::LanguageTag::LanguageTag" ref="a7629ee48c6a4d870dd2ca8c838260f9d" args="(const QLocale &amp;locale)" -->
<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" href="qlocale.html">QLocale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates a language tag from a <a class="elRef" href="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><dt><b>Parameters:</b></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><!-- doxytag: member="Soprano::LanguageTag::LanguageTag" ref="a586443aa110e4c272ede50dd06c2db7b" args="(QLocale::Language lang, QLocale::Country country=QLocale::AnyCountry)" -->
<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><dt><b>Parameters:</b></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><!-- doxytag: member="Soprano::LanguageTag::~LanguageTag" ref="a39267634830742fc58a85f118571e669" args="()" -->
<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>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a677476e5e30feb7a584bd2a9dc627165"></a><!-- doxytag: member="Soprano::LanguageTag::operator=" ref="a677476e5e30feb7a584bd2a9dc627165" args="(const LanguageTag &amp;other)" -->
<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><!-- doxytag: member="Soprano::LanguageTag::operator==" ref="a8522a53852d2cd1f49c11d16d9335a58" args="(const LanguageTag &amp;other) const " -->
<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="return"><dt><b>Returns:</b></dt><dd><code>true</code> if this tag and <code>other</code> are equal. </dd></dl>

</div>
</div>
<a class="anchor" id="a95497ab5a81ba75e82b3cdfb453a7a0d"></a><!-- doxytag: member="Soprano::LanguageTag::operator!=" ref="a95497ab5a81ba75e82b3cdfb453a7a0d" args="(const LanguageTag &amp;other) const " -->
<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="return"><dt><b>Returns:</b></dt><dd><code>true</code> if this tag and <code>other</code> differ. </dd></dl>

</div>
</div>
<a class="anchor" id="a46feb88d231ce9b2fe7129242c063b21"></a><!-- doxytag: member="Soprano::LanguageTag::operator&lt;" ref="a46feb88d231ce9b2fe7129242c063b21" args="(const LanguageTag &amp;other) const " -->
<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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Soprano::LanguageTag::operator&lt;=" ref="aa25cc92524909e3ce512c528c4e0137a" args="(const LanguageTag &amp;other) const " -->
<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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Soprano::LanguageTag::operator&gt;" ref="a9d1f3b509b4cfd4b3aa14dda3ce274f6" args="(const LanguageTag &amp;other) const " -->
<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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Soprano::LanguageTag::operator&gt;=" ref="a6dd3c510751fa6b29ff15d0625b6c9c1" args="(const LanguageTag &amp;other) const " -->
<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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Soprano::LanguageTag::matches" ref="a49def3c717321d896c15839163978250" args="(const LanguageTag &amp;range, MatchFilter scheme=MatchFilterBasic) const " -->
<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>MatchFilterBasic</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><dt><b>Parameters:</b></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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Soprano::LanguageTag::isEmpty" ref="ae3d5cc915f11c2c44a00d28aa1158036" args="() const " -->
<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="return"><dt><b>Returns:</b></dt><dd><code>true</code> if this language tag is empty. </dd></dl>

</div>
</div>
<a class="anchor" id="a7b14fef98cfc591b00eed4cecc440e3a"></a><!-- doxytag: member="Soprano::LanguageTag::isValid" ref="a7b14fef98cfc591b00eed4cecc440e3a" args="() const " -->
<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="return"><dt><b>Returns:</b></dt><dd><code>true</code> if this language tag is valid </dd></dl>

</div>
</div>
<a class="anchor" id="af5ef011bae0ab1b8fc242f87cc43f48b"></a><!-- doxytag: member="Soprano::LanguageTag::subTags" ref="af5ef011bae0ab1b8fc242f87cc43f48b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="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="return"><dt><b>Returns:</b></dt><dd>the subtag parts that make up this language tag </dd></dl>

</div>
</div>
<a class="anchor" id="a83085fba13a9cfd901df62bef0dd54d4"></a><!-- doxytag: member="Soprano::LanguageTag::toString" ref="a83085fba13a9cfd901df62bef0dd54d4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Soprano::LanguageTag::toPrettyString" ref="a001e416e1e1cd4070a206e88c851ed32" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Soprano::LanguageTag::toLocale" ref="a0ba090fe4df9598d194002070ad4fec3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="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" href="qlocale.html">QLocale</a> is returned.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the converted locale</dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd><a class="elRef" href="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" href="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><!-- doxytag: member="Soprano::LanguageTag::operator QString" ref="a2dfebb028dcbb1f04d0db6d4e347ee6e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::LanguageTag::operator <a class="elRef" href="qstring.html">QString</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></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="return"><dt><b>Returns:</b></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="see"><dt><b>See also:</b></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><!-- doxytag: member="Soprano::LanguageTag::lookup" ref="a8e77196e95e5a07e3013828c88f27636" args="(const QList&lt; LanguageTag &gt; &amp;choices, const QList&lt; LanguageTag &gt; &amp;priority, LookupFlags flags=LookupFlagNone, MatchFilter scheme=MatchFilterBasic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int Soprano::LanguageTag::lookup </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="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" href="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>LookupFlagNone</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>MatchFilterBasic</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></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><dt><b>Parameters:</b></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="return"><dt><b>Returns:</b></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><!-- doxytag: member="Soprano::LanguageTag::lookup" ref="a009bfb880fbb96e26359381da2ed2807" args="(const QList&lt; LanguageTag &gt; &amp;choices, const LanguageTag &amp;priority, LookupFlags flags=LookupFlagNone, MatchFilter scheme=MatchFilterBasic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int Soprano::LanguageTag::lookup </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="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>LookupFlagNone</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>MatchFilterBasic</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A convenience method to select a language tag based on a single search pattern.</p>
<dl><dt><b>Parameters:</b></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="return"><dt><b>Returns:</b></dt><dd>the index of the matching language tag in <em>choices</em>, or &lt; 0 if no tag matched.</dd></dl>
<dl class="see"><dt><b>See also:</b></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.6.0/soprano/<a class="el" href="languagetag_8h_source.html">languagetag.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Mar 11 2011 for Soprano by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>