This file is indexed.

/usr/share/doc/pyxplot/html/sect0033.html is in pyxplot-doc 0.8.4-3.

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
<!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" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>PyXPlot Users' Guide: String Manipulation Functions</title>

<link href="sect0034.html" title="Conditionals" rel="next" />
<link href="sect0032.html" title="Regular Expressions" rel="prev" />
<link href="sec-stringvars.html" title="String Variables" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>

<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0032.html" title="Regular Expressions"><img alt="Previous: Regular Expressions" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="sec-stringvars.html" title="String Variables"><img alt="Up: String Variables" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sect0034.html" title="Conditionals"><img alt="Next: Conditionals" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>

<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>

<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<div class="breadcrumbs">
<span>
<span>
<a href="index.html">PyXPlot Users' Guide</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sect0001.html">Introduction to PyXPlot</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sect0031.html">Programming and Flow Control</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sec-stringvars.html">String Variables</a> <b>:</b>
</span>

</span><span>

<span>
<b class="current">String Manipulation Functions</b>
</span>
</span>
<hr />
</div>

<div><h2 id="a0000000034">6.1.3 String Manipulation Functions</h2>
<p>The following functions are provided for performing simple manipulations upon strings: </p><ul class="itemize">
<li><p><tt class="tt">strcmp(s1,s2)</tt><a name="a0000000576" id="a0000000576"></a> returns zero if the strings <tt class="tt">s1</tt> and <tt class="tt">s2</tt> are the same, one if <tt class="tt">s1</tt> should be placed after <tt class="tt">s2</tt> in alphabetical sequence, minus one if <tt class="tt">s1</tt> should be placed before <tt class="tt">s2</tt> in alphabetical sequence. </p></li><li><p><tt class="tt">strlen(s)</tt><a name="a0000000577" id="a0000000577"></a> returns the integer length of the string variable <tt class="tt">s</tt>. An error is returned if <tt class="tt">s</tt> is not a string variable. </p></li><li><p><tt class="tt">strlower(s)</tt><a name="a0000000578" id="a0000000578"></a> returns a version of the string <tt class="tt">s</tt> in which all uppercase alphabetical characters are converted to lowercase characters. </p></li><li><p><tt class="tt">strrange(s,i,j)</tt><a name="a0000000579" id="a0000000579"></a> returns a slice of the string <img src="images/img-0293.png" alt="$s$" style="vertical-align:0px; 
                                     width:7px; 
                                     height:8px" class="math gen" />, containing only the <img src="images/img-0214.png" alt="$i$" style="vertical-align:0px; 
                                     width:6px; 
                                     height:12px" class="math gen" />th through until the <img src="images/img-0294.png" alt="$j$" style="vertical-align:-4px; 
                                     width:9px; 
                                     height:16px" class="math gen" />th characters of the string. If either <img src="images/img-0214.png" alt="$i$" style="vertical-align:0px; 
                                     width:6px; 
                                     height:12px" class="math gen" /> or <img src="images/img-0294.png" alt="$j$" style="vertical-align:-4px; 
                                     width:9px; 
                                     height:16px" class="math gen" /> are negative, they are counted from the end of the string; for example, <img src="images/img-0155.png" alt="$-1$" style="vertical-align:0px; 
                                     width:21px; 
                                     height:12px" class="math gen" /> refers to the last character of the string. </p></li><li><p><tt class="tt">strupper(s)</tt><a name="a0000000580" id="a0000000580"></a> returns a version of the string <tt class="tt">s</tt> in which all lowercase alphabetical characters are converted to uppercase characters. </p></li>
</ul><p>The following simple examples demonstrate the use of these functions: </p><p> <tt class="tt">pyxplot&gt; <b class="bf">x="It was the best of times, it was the worst of times"</b></tt><br /><tt class="tt">pyxplot&gt; <b class="bf">print strlen(x)</b></tt><br /><tt class="tt">51</tt><br /><tt class="tt">pyxplot&gt; <b class="bf">print strrange(x,0,24)</b></tt><br /><tt class="tt">It was the best of times</tt><br /><tt class="tt">pyxplot&gt; <b class="bf">print strrange(x,-25,0)</b></tt><br /><tt class="tt">it was the worst of times</tt><br /><tt class="tt">pyxplot&gt; <b class="bf">print strupper(x)</b></tt><br /><tt class="tt">IT WAS THE BEST OF TIMES, IT WAS THE WORST OF TIMES</tt>  </p></div>





<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0032.html" title="Regular Expressions"><img alt="Previous: Regular Expressions" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="sec-stringvars.html" title="String Variables"><img alt="Up: String Variables" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sect0034.html" title="Conditionals"><img alt="Next: Conditionals" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>

<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>

<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>

</body>
</html>