This file is indexed.

/usr/share/qt5/doc/qtxmlpatterns/qsourcelocation.html is in qtxmlpatterns5-doc-html 5.3.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qsourcelocation.cpp -->
  <title>QSourceLocation Class | QtXmlPatterns </title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li>Qt 5.3</li>
<li><a href="qtxmlpatterns-index.html">Qt XML Patterns</a></li>
<li><a href="qtxmlpatterns-module.html">C++ Classes</a></li>
<li>QSourceLocation</li>
<li id="buildversion">
Qt 5.3.2 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QSourceLocation Class</h1>
<!-- $$$QSourceLocation-brief -->
<p>The QSourceLocation class identifies a location in a resource by URI, line, and column. <a href="#details">More...</a></p>
<!-- @@@QSourceLocation -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include &lt;QSourceLocation&gt;</span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += xmlpatterns</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.4</td></tr></table><p><b>Note:</b> All functions in this class are reentrant.</p>
<ul>
<li><a href="qsourcelocation-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#QSourceLocation">QSourceLocation</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#QSourceLocation-2">QSourceLocation</a></b>(const QSourceLocation &amp;<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#QSourceLocation-3">QSourceLocation</a></b>(const QUrl &amp;<i> u</i>, int<i> l</i> = -1, int<i> c</i> = -1)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#dtor.QSourceLocation">~QSourceLocation</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#column">column</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#isNull">isNull</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#line">line</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#setColumn">setColumn</a></b>(qint64<i> newColumn</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#setLine">setLine</a></b>(qint64<i> newLine</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#setUri">setUri</a></b>(const QUrl &amp;<i> newUri</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#uri">uri</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#operator-not-eq">operator!=</a></b>(const QSourceLocation &amp;<i> other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSourceLocation &amp; </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#operator-eq">operator=</a></b>(const QSourceLocation &amp;<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#operator-eq-eq">operator==</a></b>(const QSourceLocation &amp;<i> other</i>) const</td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#qHash-2">qHash</a></b>(const QSourceLocation &amp;<i> location</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qsourcelocation.html#operator-lt-lt">operator&lt;&lt;</a></b>(QDebug<i> debug</i>, const QSourceLocation &amp;<i> sourceLocation</i>)</td></tr>
</table>
<a name="details"></a>
<!-- $$$QSourceLocation-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QSourceLocation class identifies a location in a resource by URI, line, and column.</p>
<p>QSourceLocation is a simple value based class that has three properties, <a href="qsourcelocation.html#uri">uri</a>(), <a href="qsourcelocation.html#line">line</a>(), and <a href="qsourcelocation.html#column">column</a>(), that, taken together, identify a certain point in a resource, e.g&#x2e;, a file or an in-memory document.</p>
<p><a href="qsourcelocation.html#line">line</a>() and <a href="qsourcelocation.html#column">column</a>() refer to character counts (not byte counts), and they both start from 1, as opposed to 0.</p>
</div>
<!-- @@@QSourceLocation -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QSourceLocation[overload1]$$$QSourceLocation -->
<h3 class="fn"><a name="QSourceLocation"></a>QSourceLocation::<span class="name">QSourceLocation</span>()</h3>
<p>Construct a <a href="qsourcelocation.html">QSourceLocation</a> that doesn't identify anything at all.</p>
<p>For a default constructed QSourceLocation(), <a href="qsourcelocation.html#isNull">isNull</a>() returns <tt>true</tt>.</p>
<!-- @@@QSourceLocation -->
<!-- $$$QSourceLocation$$$QSourceLocationconstQSourceLocation& -->
<h3 class="fn"><a name="QSourceLocation-2"></a>QSourceLocation::<span class="name">QSourceLocation</span>(const <span class="type">QSourceLocation</span> &amp;<i> other</i>)</h3>
<p>Constructs a <a href="qsourcelocation.html">QSourceLocation</a> that is a copy of <i>other</i>.</p>
<!-- @@@QSourceLocation -->
<!-- $$$QSourceLocation$$$QSourceLocationconstQUrl&intint -->
<h3 class="fn"><a name="QSourceLocation-3"></a>QSourceLocation::<span class="name">QSourceLocation</span>(const <span class="type">QUrl</span> &amp;<i> u</i>, <span class="type">int</span><i> l</i> = -1, <span class="type">int</span><i> c</i> = -1)</h3>
<p>Constructs a <a href="qsourcelocation.html">QSourceLocation</a> with URI <i>u</i>, line <i>l</i> and column <i>c</i>.</p>
<!-- @@@QSourceLocation -->
<!-- $$$~QSourceLocation[overload1]$$$~QSourceLocation -->
<h3 class="fn"><a name="dtor.QSourceLocation"></a>QSourceLocation::<span class="name">~QSourceLocation</span>()</h3>
<p>Destructor.</p>
<!-- @@@~QSourceLocation -->
<!-- $$$column[overload1]$$$column -->
<h3 class="fn"><a name="column"></a><span class="type">qint64</span> QSourceLocation::<span class="name">column</span>() const</h3>
<p>Returns the current column number. The column number refers to the count of characters, not bytes. The first column is column 1, not 0. The default value is -1, indicating the column number is unknown.</p>
<p><b>See also </b><a href="qsourcelocation.html#setColumn">setColumn</a>().</p>
<!-- @@@column -->
<!-- $$$isNull[overload1]$$$isNull -->
<h3 class="fn"><a name="isNull"></a><span class="type">bool</span> QSourceLocation::<span class="name">isNull</span>() const</h3>
<p>Returns <tt>true</tt> if this <a href="qsourcelocation.html">QSourceLocation</a> doesn't identify anything.</p>
<p>For a default constructed <a href="qsourcelocation.html">QSourceLocation</a>, this function returns <tt>true</tt>. The same applies for any other <a href="qsourcelocation.html">QSourceLocation</a> whose <a href="qsourcelocation.html#uri">uri</a>() is invalid.</p>
<!-- @@@isNull -->
<!-- $$$line[overload1]$$$line -->
<h3 class="fn"><a name="line"></a><span class="type">qint64</span> QSourceLocation::<span class="name">line</span>() const</h3>
<p>Returns the current line number. The first line number is 1, not 0. The default value is -1, indicating the line number is unknown.</p>
<p><b>See also </b><a href="qsourcelocation.html#setLine">setLine</a>().</p>
<!-- @@@line -->
<!-- $$$setColumn[overload1]$$$setColumnqint64 -->
<h3 class="fn"><a name="setColumn"></a><span class="type">void</span> QSourceLocation::<span class="name">setColumn</span>(<span class="type">qint64</span><i> newColumn</i>)</h3>
<p>Sets the column number to <i>newColumn</i>. 0 is an invalid column number. The first column number is 1.</p>
<p><b>See also </b><a href="qsourcelocation.html#column">column</a>().</p>
<!-- @@@setColumn -->
<!-- $$$setLine[overload1]$$$setLineqint64 -->
<h3 class="fn"><a name="setLine"></a><span class="type">void</span> QSourceLocation::<span class="name">setLine</span>(<span class="type">qint64</span><i> newLine</i>)</h3>
<p>Sets the line number to <i>newLine</i>. 0 is an invalid line number. The first line number is 1.</p>
<p><b>See also </b><a href="qsourcelocation.html#line">line</a>().</p>
<!-- @@@setLine -->
<!-- $$$setUri[overload1]$$$setUriconstQUrl& -->
<h3 class="fn"><a name="setUri"></a><span class="type">void</span> QSourceLocation::<span class="name">setUri</span>(const <span class="type">QUrl</span> &amp;<i> newUri</i>)</h3>
<p>Sets the URI to <i>newUri</i>.</p>
<p><b>See also </b><a href="qsourcelocation.html#uri">uri</a>().</p>
<!-- @@@setUri -->
<!-- $$$uri[overload1]$$$uri -->
<h3 class="fn"><a name="uri"></a><span class="type">QUrl</span> QSourceLocation::<span class="name">uri</span>() const</h3>
<p>Returns the resource that this <a href="qsourcelocation.html">QSourceLocation</a> refers to. For example, the resource could be a file in the local file system, if the URI scheme is <tt>file</tt>.</p>
<p><b>See also </b><a href="qsourcelocation.html#setUri">setUri</a>().</p>
<!-- @@@uri -->
<!-- $$$operator!=[overload1]$$$operator!=constQSourceLocation& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QSourceLocation::<span class="name">operator!=</span>(const <span class="type">QSourceLocation</span> &amp;<i> other</i>) const</h3>
<p>Returns the opposite of applying operator==() for this <a href="qxmlname.html">QXmlName</a> and <i>other</i>.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQSourceLocation& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QSourceLocation</span> &amp; QSourceLocation::<span class="name">operator=</span>(const <span class="type">QSourceLocation</span> &amp;<i> other</i>)</h3>
<p>Assigns this <a href="qsourcelocation.html">QSourceLocation</a> instance to <i>other</i>.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQSourceLocation& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QSourceLocation::<span class="name">operator==</span>(const <span class="type">QSourceLocation</span> &amp;<i> other</i>) const</h3>
<p>Returns true if this <a href="qsourcelocation.html">QSourceLocation</a> is identical to <i>other</i>.</p>
<p>Two <a href="qsourcelocation.html">QSourceLocation</a> instances are equal if their <a href="qsourcelocation.html#uri">uri</a>(), <a href="qsourcelocation.html#line">line</a>() and <a href="qsourcelocation.html#column">column</a>() are equal.</p>
<p><a href="qsourcelocation.html">QSourceLocation</a> instances for which <a href="qsourcelocation.html#isNull">isNull</a>() returns true are considered equal.</p>
<!-- @@@operator== -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$qHash$$$qHashconstQSourceLocation& -->
<h3 class="fn"><a name="qHash-2"></a><span class="type">uint</span> <span class="name">qHash</span>(const <span class="type">QSourceLocation</span> &amp;<i> location</i>)</h3>
<p>Computes a hash key for the <a href="qsourcelocation.html">QSourceLocation</a> <i>location</i>.</p>
<p>This function was introduced in  Qt 4.4.</p>
<!-- @@@qHash -->
<!-- $$$operator<<[overload1]$$$operator<<QDebugconstQSourceLocation& -->
<h3 class="fn"><a name="operator-lt-lt"></a><span class="type">QDebug</span> <span class="name">operator&lt;&lt;</span>(<span class="type">QDebug</span><i> debug</i>, const <span class="type">QSourceLocation</span> &amp;<i> sourceLocation</i>)</h3>
<p>Prints <i>sourceLocation</i> to the debug stream <i>debug</i>.</p>
<p>This function was introduced in  Qt 4.4.</p>
<!-- @@@operator<< -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2014 Digia Plc and/or its
   subsidiaries. Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Digia, Qt and their respective logos are trademarks of Digia Plc     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>