This file is indexed.

/usr/share/doc/fweb/html-info/Strings-and-quotes.html is in fweb-doc 1.62-12build1.

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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.0, http://www.gnu.org/software/texinfo/ -->
<head>
<title>FWEB: Strings and quotes</title>

<meta name="description" content="FWEB: Strings and quotes">
<meta name="keywords" content="FWEB: Strings and quotes">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Concept-index.html#Concept-index" rel="index" title="Concept index">
<link href="Parameter-index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Built_002din-functions.html#Built_002din-functions" rel="up" title="Built-in functions">
<link href="Protection.html#Protection" rel="next" title="Protection">
<link href="Built_002din-functions.html#Built_002din-functions" rel="prev" title="Built-in functions">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space: nowrap}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: serif; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<a name="Strings-and-quotes"></a>
<div class="header">
<p>
Next: <a href="Protection.html#Protection" accesskey="n" rel="next">Protection</a>, Previous: <a href="Built_002din-functions.html#Built_002din-functions" accesskey="p" rel="prev">Built-in functions</a>, Up: <a href="Built_002din-functions.html#Built_002din-functions" accesskey="u" rel="up">Built-in functions</a> &nbsp; [<a href="Parameter-index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-index.html#Concept-index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>

<a name="Strings-and-quotes-1"></a>
<h4 class="subsubsection">7.2.3.1 Strings and quotes</h4>

<a name="index-String_002c-definition-of"></a>
<a name="index-String_002c-quoted"></a>
<a name="index-String_002c-unquoted"></a>

<p>Several of the built-in functions expect or return a string argument.
Examples include <code>$STRING</code> (see <a href="_0024STRING.html#g_t_0024STRING">$STRING</a>), <code>$UNQUOTE</code>
(see <a href="_0024UNQUOTE.html#g_t_0024UNQUOTE">$UNQUOTE</a>), and <code>$UNSTRING</code> (see <a href="_0024UNSTRING.html#g_t_0024UNSTRING">$UNSTRING</a>). 
In understanding the operation of those functions, it is important to
understand just what a string means in the <small>FWEB</small> context.  As usual,
it is a vector of characters.  However, <em>those need not be
delimited by quotes</em>, although they may be.  Internally, a string is
represented by the construction <i>sqc...cqs</i>, where <i>s</i> is a special
string delimiter never seen by the user, <i>q</i> is an optional quote
character (either single or double quote depending on the language), and
<i>c</i> is an ordinary character.  Whether or not the quotes are present,
the string delimiters inhibit macro expansion.
</p>
<p>The difference between <code>$UNQUOTE</code> and <code>$UNSTRING</code> can now be
stated as follows.  Given a quoted string such as <code>&quot;abc&quot;</code> (in C),
</p>
<ul>
<li> &lsquo;<samp>$UNQUOTE</samp>&rsquo; removes the quote characters <i>q</i>, leaving <i>sabcs</i> (still a
string).

</li><li> &lsquo;<samp>$UNSTRING</samp>&rsquo; removes both the quote characters <i>q</i> and the string
delimiters <i>s</i>, leaving <i>abc</i> (a collection of three characters).  This
collection is <em>not</em> tokenized; it does <em>not</em> represent the
single identifier name <code>abc</code> (and therefore is not very useful).
<code>$UNSTRING</code> is primarily used internally.  

</li></ul>

<p>The built-ins <code>$P</code> (see <a href="_0024P.html#g_t_0024P">$P</a>) and <code>$PP</code> (see <a href="_0024PP.html#g_t_0024PP">$PP</a>), which
both generate the preprocessor character &lsquo;<samp>#</samp>&rsquo;, provide a good
illustration of the differences between <code>$UNQUOTE</code> and
<code>$UNSTRING</code>.  Consider <small>FORTRAN</small> as an example.  Essentially,
<code>$P</code> is defined as &lsquo;<samp>$UNQUOTE('#')</samp>&rsquo;, which is internally
<i>s<tt>#</tt>s</i>.  When this single-character string is sent to the output, it is
treated like any other expression and therefore would appear in column 7
or greater even if the construction appeared at the very beginning of
the line.  On the other hand, <code>$PP</code> is (essentially) defined as
&lsquo;<samp>$UNSTRING('#')</samp>&rsquo;, which is internally the single character <tt>#</tt>.
Because this character is not a string, the <small>FORTRAN</small> output driver
treats it as a special control character, defined in this case to force
the character into the first column.
</p>
<hr>
<div class="header">
<p>
Next: <a href="Protection.html#Protection" accesskey="n" rel="next">Protection</a>, Previous: <a href="Built_002din-functions.html#Built_002din-functions" accesskey="p" rel="prev">Built-in functions</a>, Up: <a href="Built_002din-functions.html#Built_002din-functions" accesskey="u" rel="up">Built-in functions</a> &nbsp; [<a href="Parameter-index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-index.html#Concept-index" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>