Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > c9cfbd1355daacaf3b34517a6d7b18cc > files > 1327

libdap-doc-3.11.0-2.fc15.i686.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>libdap++: parser-util.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<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">libdap++&#160;<span id="projectnumber">Updated for version 3.8.2</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><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('parser-util_8cc.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<h1>parser-util.cc</h1>  </div>
</div>
<div class="contents">
<a href="parser-util_8cc.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="comment">// -*- mode: c++; c-basic-offset:4 -*-</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="comment">// This file is part of libdap, A C++ implementation of the OPeNDAP Data</span>
<a name="l00005"></a>00005 <span class="comment">// Access Protocol.</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="comment">// Copyright (c) 2002,2003 OPeNDAP, Inc.</span>
<a name="l00008"></a>00008 <span class="comment">// Author: James Gallagher &lt;jgallagher@opendap.org&gt;</span>
<a name="l00009"></a>00009 <span class="comment">//</span>
<a name="l00010"></a>00010 <span class="comment">// This library is free software; you can redistribute it and/or</span>
<a name="l00011"></a>00011 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>
<a name="l00012"></a>00012 <span class="comment">// License as published by the Free Software Foundation; either</span>
<a name="l00013"></a>00013 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00014"></a>00014 <span class="comment">//</span>
<a name="l00015"></a>00015 <span class="comment">// This library is distributed in the hope that it will be useful,</span>
<a name="l00016"></a>00016 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00017"></a>00017 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00018"></a>00018 <span class="comment">// Lesser General Public License for more details.</span>
<a name="l00019"></a>00019 <span class="comment">//</span>
<a name="l00020"></a>00020 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>
<a name="l00021"></a>00021 <span class="comment">// License along with this library; if not, write to the Free Software</span>
<a name="l00022"></a>00022 <span class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00023"></a>00023 <span class="comment">//</span>
<a name="l00024"></a>00024 <span class="comment">// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="comment">// (c) COPYRIGHT URI/MIT 1995-1999</span>
<a name="l00027"></a>00027 <span class="comment">// Please read the full copyright statement in the file COPYRIGHT_URI.</span>
<a name="l00028"></a>00028 <span class="comment">//</span>
<a name="l00029"></a>00029 <span class="comment">// Authors:</span>
<a name="l00030"></a>00030 <span class="comment">//      jhrg,jimg       James Gallagher &lt;jgallagher@gso.uri.edu&gt;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">// These functions are utility functions used by the various DAP parsers (the</span>
<a name="l00033"></a>00033 <span class="comment">// DAS, DDS and constraint expression parsers).</span>
<a name="l00034"></a>00034 <span class="comment">// jhrg 9/7/95</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;<a class="code" href="config_8h.html">config.h</a>&quot;</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">static</span> <span class="keywordtype">char</span> rcsid[] <a class="code" href="config_8h.html#a05e109ec893d0b12023d5b0cf4f718c4">not_used</a> =
<a name="l00039"></a>00039     { <span class="stringliteral">&quot;$Id: parser-util.cc 22703 2010-05-11 18:10:01Z jimg $&quot;</span>
<a name="l00040"></a>00040     };
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;cerrno&gt;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include &lt;cstring&gt;</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;cmath&gt;</span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;cstdlib&gt;</span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="comment">//  We wrap VC++ 6.x strtod() to account for a short comming</span>
<a name="l00052"></a>00052 <span class="comment">//  in that function in regards to &quot;NaN&quot;.</span>
<a name="l00053"></a>00053 <span class="preprocessor">#ifdef WIN32</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#include &lt;limits&gt;</span>
<a name="l00055"></a>00055 <span class="keywordtype">double</span> w32strtod(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">char</span> **);
<a name="l00056"></a>00056 <span class="preprocessor">#endif</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00058"></a>00058 <span class="preprocessor">#include &quot;<a class="code" href="debug_8h.html">debug.h</a>&quot;</span>
<a name="l00059"></a>00059 <span class="preprocessor">#include &quot;<a class="code" href="parser_8h.html">parser.h</a>&quot;</span>             <span class="comment">// defines constants such as ID_MAX</span>
<a name="l00060"></a>00060 <span class="preprocessor">#include &quot;<a class="code" href="dods-limits_8h.html">dods-limits.h</a>&quot;</span>
<a name="l00061"></a>00061 <span class="preprocessor">#include &quot;<a class="code" href="util_8h.html">util.h</a>&quot;</span>               <span class="comment">// Jose Garcia: for append_long_to_string.</span>
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="keyword">using</span> std::cerr;
<a name="l00064"></a>00064 <span class="keyword">using</span> std::endl;
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="preprocessor">#ifdef WIN32</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="comment">//  VC++ 6.x strtod() doesn&#39;t recognize &quot;NaN&quot;.  Account for it</span>
<a name="l00068"></a>00068 <span class="comment">//  by wrapping it around a check for the Nan string.  Use of</span>
<a name="l00069"></a>00069 <span class="comment">//  the product is obsolete as of 1/2007, but it is unknown if</span>
<a name="l00070"></a>00070 <span class="comment">//  the issue is still there in later releases of that product.</span>
<a name="l00071"></a>00071 <span class="comment">//  ROM - 01/2007</span>
<a name="l00072"></a>00072 <span class="keywordtype">double</span> w32strtod(<span class="keyword">const</span> <span class="keywordtype">char</span> *val, <span class="keywordtype">char</span> **ptr)
<a name="l00073"></a>00073 {
<a name="l00074"></a>00074     <span class="comment">//  Convert the two char arrays to compare to strings.</span>
<a name="l00075"></a>00075     <span class="keywordtype">string</span> *sval = <span class="keyword">new</span> string(val);
<a name="l00076"></a>00076     <span class="keywordtype">string</span> *snan = <span class="keyword">new</span> string(<span class="stringliteral">&quot;NaN&quot;</span>);
<a name="l00077"></a>00077 
<a name="l00078"></a>00078     <span class="comment">//  If val doesn&#39;t contain &quot;NaN|Nan|nan|etc&quot;, use strtod as</span>
<a name="l00079"></a>00079     <span class="comment">//  provided.</span>
<a name="l00080"></a>00080     <span class="keywordflow">if</span> (stricmp(sval-&gt;c_str(), snan-&gt;c_str()) != 0)
<a name="l00081"></a>00081         <span class="keywordflow">return</span> (strtod(val, ptr));
<a name="l00082"></a>00082 
<a name="l00083"></a>00083     <span class="comment">//  But if it does, return the bit pattern for Nan and point</span>
<a name="l00084"></a>00084     <span class="comment">//  the parsing ptr arg at the trailing &#39;\0&#39;.</span>
<a name="l00085"></a>00085     *ptr = (<span class="keywordtype">char</span> *) val + strlen(val);
<a name="l00086"></a>00086     <span class="keywordflow">return</span> (std::numeric_limits &lt; double &gt;::quiet_NaN());
<a name="l00087"></a>00087 }
<a name="l00088"></a>00088 <span class="preprocessor">#endif</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
<a name="l00090"></a>00090 <span class="keyword">namespace </span>libdap {
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="comment">// Deprecated, but still used by the HDF4 EOS server code.</span>
<a name="l00093"></a>00093 <span class="keywordtype">void</span>
<a name="l00094"></a><a class="code" href="namespacelibdap.html#abe3f160643e31cc5a43ab97b389a7d6f">00094</a> <a class="code" href="namespacelibdap.html#abe3f160643e31cc5a43ab97b389a7d6f">parse_error</a>(<a class="code" href="structlibdap_1_1parser__arg.html" title="Pass parameters by reference to a parser.">parser_arg</a> * arg, <span class="keyword">const</span> <span class="keywordtype">char</span> *msg, <span class="keyword">const</span> <span class="keywordtype">int</span> line_num,
<a name="l00095"></a>00095             <span class="keyword">const</span> <span class="keywordtype">char</span> *context)
<a name="l00096"></a>00096 {
<a name="l00097"></a>00097     <span class="comment">// Jose Garcia</span>
<a name="l00098"></a>00098     <span class="comment">// This assert(s) is (are) only for developing purposes</span>
<a name="l00099"></a>00099     <span class="comment">// For production servers remove it by compiling with NDEBUG</span>
<a name="l00100"></a>00100     assert(arg);
<a name="l00101"></a>00101     assert(msg);
<a name="l00102"></a>00102 
<a name="l00103"></a>00103     arg-&gt;<a class="code" href="structlibdap_1_1parser__arg.html#af85c0af7b6334cf672679469eb7387a4">set_status</a>(<a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>);
<a name="l00104"></a>00104 
<a name="l00105"></a>00105     <span class="keywordtype">string</span> oss = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00106"></a>00106 
<a name="l00107"></a>00107     <span class="keywordflow">if</span> (line_num != 0) {
<a name="l00108"></a>00108         oss += <span class="stringliteral">&quot;Error parsing the text on line &quot;</span>;
<a name="l00109"></a>00109         <a class="code" href="namespacelibdap.html#a576580781bca7dcd4b5a84cc06892aff">append_long_to_string</a>(line_num, 10, oss);
<a name="l00110"></a>00110     }
<a name="l00111"></a>00111     <span class="keywordflow">else</span> {
<a name="l00112"></a>00112         oss += <span class="stringliteral">&quot;Parse error.&quot;</span>;
<a name="l00113"></a>00113     }
<a name="l00114"></a>00114 
<a name="l00115"></a>00115     <span class="keywordflow">if</span> (context)
<a name="l00116"></a>00116         oss += (string) <span class="stringliteral">&quot; at or near: &quot;</span> + context + (<span class="keywordtype">string</span>) <span class="stringliteral">&quot;\n&quot;</span> + msg
<a name="l00117"></a>00117                + (string) <span class="stringliteral">&quot;\n&quot;</span>;
<a name="l00118"></a>00118     <span class="keywordflow">else</span>
<a name="l00119"></a>00119         oss += (string) <span class="stringliteral">&quot;\n&quot;</span> + msg + (<span class="keywordtype">string</span>) <span class="stringliteral">&quot;\n&quot;</span>;
<a name="l00120"></a>00120 
<a name="l00121"></a>00121     arg-&gt;<a class="code" href="structlibdap_1_1parser__arg.html#a2cb138c323c70e10bc2dd88c620da8fb">set_error</a>(<span class="keyword">new</span> <a class="code" href="classlibdap_1_1Error.html" title="A class for error processing.">Error</a>(<a class="code" href="Error_8h.html#a40b0db75d00d0338a597aa84e71109bf" title="Unknown error.">unknown_error</a>, oss));
<a name="l00122"></a>00122 }
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="keywordtype">void</span>
<a name="l00125"></a><a class="code" href="namespacelibdap.html#a891be0a66df84d19ae4c5c614794a7e5">00125</a> <a class="code" href="namespacelibdap.html#abe3f160643e31cc5a43ab97b389a7d6f">parse_error</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *msg, <span class="keyword">const</span> <span class="keywordtype">int</span> line_num, <span class="keyword">const</span> <span class="keywordtype">char</span> *context)
<a name="l00126"></a>00126 {
<a name="l00127"></a>00127     <span class="comment">// Jose Garcia</span>
<a name="l00128"></a>00128     <span class="comment">// This assert(s) is (are) only for developing purposes</span>
<a name="l00129"></a>00129     <span class="comment">// For production servers remove it by compiling with NDEBUG</span>
<a name="l00130"></a>00130     assert(msg);
<a name="l00131"></a>00131 
<a name="l00132"></a>00132     <span class="keywordtype">string</span> oss = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00133"></a>00133 
<a name="l00134"></a>00134     <span class="keywordflow">if</span> (line_num != 0) {
<a name="l00135"></a>00135         oss += <span class="stringliteral">&quot;Error parsing the text on line &quot;</span>;
<a name="l00136"></a>00136         <a class="code" href="namespacelibdap.html#a576580781bca7dcd4b5a84cc06892aff">append_long_to_string</a>(line_num, 10, oss);
<a name="l00137"></a>00137     }
<a name="l00138"></a>00138     <span class="keywordflow">else</span> {
<a name="l00139"></a>00139         oss += <span class="stringliteral">&quot;Parse error.&quot;</span>;
<a name="l00140"></a>00140     }
<a name="l00141"></a>00141 
<a name="l00142"></a>00142     <span class="keywordflow">if</span> (context)
<a name="l00143"></a>00143         oss += (string) <span class="stringliteral">&quot; at or near: &quot;</span> + context + (<span class="keywordtype">string</span>) <span class="stringliteral">&quot;\n&quot;</span> + msg
<a name="l00144"></a>00144                + (string) <span class="stringliteral">&quot;\n&quot;</span>;
<a name="l00145"></a>00145     <span class="keywordflow">else</span>
<a name="l00146"></a>00146         oss += (string) <span class="stringliteral">&quot;\n&quot;</span> + msg + (<span class="keywordtype">string</span>) <span class="stringliteral">&quot;\n&quot;</span>;
<a name="l00147"></a>00147 
<a name="l00148"></a>00148     <span class="keywordflow">throw</span> <a class="code" href="classlibdap_1_1Error.html" title="A class for error processing.">Error</a>(oss);
<a name="l00149"></a>00149 }
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="comment">// context comes from the parser and will always be a char * unless the</span>
<a name="l00152"></a>00152 <span class="comment">// parsers change dramatically.</span>
<a name="l00153"></a>00153 <span class="keywordtype">void</span>
<a name="l00154"></a><a class="code" href="namespacelibdap.html#a01787175503c9d6d90968046efe46e19">00154</a> <a class="code" href="namespacelibdap.html#abe3f160643e31cc5a43ab97b389a7d6f">parse_error</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> &amp; msg, <span class="keyword">const</span> <span class="keywordtype">int</span> line_num, <span class="keyword">const</span> <span class="keywordtype">char</span> *context)
<a name="l00155"></a>00155 {
<a name="l00156"></a>00156     <a class="code" href="namespacelibdap.html#abe3f160643e31cc5a43ab97b389a7d6f">parse_error</a>(msg.c_str(), line_num, context);
<a name="l00157"></a>00157 }
<a name="l00158"></a>00158 
<a name="l00159"></a><a class="code" href="namespacelibdap.html#a88b0cc055e14caf84865c2d5730d4fb3">00159</a> <span class="keywordtype">void</span> <a class="code" href="namespacelibdap.html#a88b0cc055e14caf84865c2d5730d4fb3" title="Save a string to a temporary variable during the parse.">save_str</a>(<span class="keywordtype">char</span> *dst, <span class="keyword">const</span> <span class="keywordtype">char</span> *src, <span class="keyword">const</span> <span class="keywordtype">int</span> line_num)
<a name="l00160"></a>00160 {
<a name="l00161"></a>00161     <span class="keywordflow">if</span> (strlen(src) &gt;= <a class="code" href="gse__parser_8h.html#abbd59523961c68f6a95e165f82aeed6e">ID_MAX</a>)
<a name="l00162"></a>00162         <a class="code" href="namespacelibdap.html#abe3f160643e31cc5a43ab97b389a7d6f">parse_error</a>(<span class="keywordtype">string</span>(<span class="stringliteral">&quot;The word `&quot;</span>) + <span class="keywordtype">string</span>(src)
<a name="l00163"></a>00163                     + <span class="keywordtype">string</span>(<span class="stringliteral">&quot;&#39; is too long (it should be no longer than &quot;</span>)
<a name="l00164"></a>00164                     + <a class="code" href="namespacelibdap.html#a317edea830aab50d2137a5bd313cc86a">long_to_string</a>(<a class="code" href="gse__parser_8h.html#abbd59523961c68f6a95e165f82aeed6e">ID_MAX</a>) + <span class="keywordtype">string</span>(<span class="stringliteral">&quot;).&quot;</span>), line_num);
<a name="l00165"></a>00165 
<a name="l00166"></a>00166     strncpy(dst, src, <a class="code" href="gse__parser_8h.html#abbd59523961c68f6a95e165f82aeed6e">ID_MAX</a>);
<a name="l00167"></a>00167     dst[<a class="code" href="gse__parser_8h.html#abbd59523961c68f6a95e165f82aeed6e">ID_MAX</a> - 1] = <span class="charliteral">&#39;\0&#39;</span>;     <span class="comment">/* in case ... */</span>
<a name="l00168"></a>00168 }
<a name="l00169"></a>00169 
<a name="l00170"></a><a class="code" href="namespacelibdap.html#a859f196112f4facae9307314c18be6f1">00170</a> <span class="keywordtype">void</span> <a class="code" href="namespacelibdap.html#a88b0cc055e14caf84865c2d5730d4fb3" title="Save a string to a temporary variable during the parse.">save_str</a>(<span class="keywordtype">string</span> &amp; dst, <span class="keyword">const</span> <span class="keywordtype">char</span> *src, <span class="keyword">const</span> <span class="keywordtype">int</span>)
<a name="l00171"></a>00171 {
<a name="l00172"></a>00172     dst = src;
<a name="l00173"></a>00173 }
<a name="l00174"></a>00174 
<a name="l00175"></a><a class="code" href="namespacelibdap.html#af6521dec3b141314aab525bccfaa7bbe">00175</a> <span class="keywordtype">bool</span> <a class="code" href="namespacelibdap.html#af6521dec3b141314aab525bccfaa7bbe">is_keyword</a>(<span class="keywordtype">string</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">string</span> &amp; keyword)
<a name="l00176"></a>00176 {
<a name="l00177"></a>00177     <a class="code" href="namespacelibdap.html#a7edce266869606fc7bb46124f8d63809">downcase</a>(<span class="keywordtype">id</span>);
<a name="l00178"></a>00178     <span class="keywordtype">id</span> = <a class="code" href="namespacelibdap.html#a4b1fc86f3e9e75f967ad66f07962d406">prune_spaces</a>(<span class="keywordtype">id</span>);
<a name="l00179"></a>00179     <a class="code" href="debug_8h.html#a32adf79142f0a426b5e782fb7cd4cad3">DBG</a>(cerr &lt;&lt; <span class="stringliteral">&quot;is_keyword: &quot;</span> &lt;&lt; keyword &lt;&lt; <span class="stringliteral">&quot; = &quot;</span> &lt;&lt; <span class="keywordtype">id</span> &lt;&lt; endl);
<a name="l00180"></a>00180     <span class="keywordflow">return</span> <span class="keywordtype">id</span> == keyword;
<a name="l00181"></a>00181 }
<a name="l00182"></a>00182 
<a name="l00183"></a><a class="code" href="namespacelibdap.html#a6159f969729b3625cfb42b97b76a29b6">00183</a> <span class="keywordtype">int</span> <a class="code" href="namespacelibdap.html#a6159f969729b3625cfb42b97b76a29b6" title="Is the value a valid byte?">check_byte</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *val)
<a name="l00184"></a>00184 {
<a name="l00185"></a>00185     <span class="keywordtype">char</span> *ptr;
<a name="l00186"></a>00186     <span class="keywordtype">long</span> v = strtol(val, &amp;ptr, 0);
<a name="l00187"></a>00187 
<a name="l00188"></a>00188     <span class="keywordflow">if</span> ((v == 0 &amp;&amp; val == ptr) || *ptr != <span class="charliteral">&#39;\0&#39;</span>) {
<a name="l00189"></a>00189         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00190"></a>00190     }
<a name="l00191"></a>00191 
<a name="l00192"></a>00192     <a class="code" href="debug_8h.html#a32adf79142f0a426b5e782fb7cd4cad3">DBG</a>(cerr &lt;&lt; <span class="stringliteral">&quot;v: &quot;</span> &lt;&lt; v &lt;&lt; endl);
<a name="l00193"></a>00193 
<a name="l00194"></a>00194     <span class="comment">// We&#39;re very liberal here with values. Anything that can fit into 8 bits</span>
<a name="l00195"></a>00195     <span class="comment">// is allowed through. Clients will have to deal with the fact that the</span>
<a name="l00196"></a>00196     <span class="comment">// ASCII representation for the value might need to be tweaked. This is</span>
<a name="l00197"></a>00197     <span class="comment">// especially the case for Java clients where Byte datatypes are</span>
<a name="l00198"></a>00198     <span class="comment">// signed. 3/20/2000 jhrg</span>
<a name="l00199"></a>00199     <span class="keywordflow">if</span> ((v &lt; 0 &amp;&amp; v &lt; <a class="code" href="dods-limits_8h.html#a48b48d4f791ea49f793420110867ee75">DODS_SCHAR_MIN</a>)
<a name="l00200"></a>00200         || (v &gt; 0 &amp;&amp; static_cast &lt; unsigned long &gt;(v) &gt; <a class="code" href="dods-limits_8h.html#a297f7e6ba7e129d4d8dcb595761de1df">DODS_UCHAR_MAX</a>))
<a name="l00201"></a>00201         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00202"></a>00202 
<a name="l00203"></a>00203     <span class="keywordflow">return</span> <a class="code" href="parser_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00204"></a>00204 }
<a name="l00205"></a>00205 
<a name="l00206"></a>00206 <span class="comment">// This version of check_int will pass base 8, 10 and 16 numbers when they</span>
<a name="l00207"></a>00207 <span class="comment">// use the ANSI standard for string representation of those number bases.</span>
<a name="l00208"></a>00208 
<a name="l00209"></a><a class="code" href="namespacelibdap.html#a78501bb2d0a23568042d59281ed27072">00209</a> <span class="keywordtype">int</span> <a class="code" href="namespacelibdap.html#a78501bb2d0a23568042d59281ed27072" title="Is the value a valid integer?">check_int16</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *val)
<a name="l00210"></a>00210 {
<a name="l00211"></a>00211     <span class="keywordtype">char</span> *ptr;
<a name="l00212"></a>00212     <span class="keywordtype">long</span> v = strtol(val, &amp;ptr, 0);      <span class="comment">// `0&#39; --&gt; use val to determine base</span>
<a name="l00213"></a>00213 
<a name="l00214"></a>00214     <span class="keywordflow">if</span> ((v == 0 &amp;&amp; val == ptr) || *ptr != <span class="charliteral">&#39;\0&#39;</span>) {
<a name="l00215"></a>00215         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00216"></a>00216     }
<a name="l00217"></a>00217     <span class="comment">// Don&#39;t use the constant from limits.h, use the ones in dods-limits.h</span>
<a name="l00218"></a>00218     <span class="keywordflow">if</span> (v &gt; <a class="code" href="dods-limits_8h.html#a4f3fac0085c0b6353a644b54acb125bf">DODS_SHRT_MAX</a> || v &lt; <a class="code" href="dods-limits_8h.html#a28336326924e1305324550b91584f0c2">DODS_SHRT_MIN</a>) {
<a name="l00219"></a>00219         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00220"></a>00220     }
<a name="l00221"></a>00221 
<a name="l00222"></a>00222     <span class="keywordflow">return</span> <a class="code" href="parser_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00223"></a>00223 }
<a name="l00224"></a>00224 
<a name="l00225"></a><a class="code" href="namespacelibdap.html#a179d079ad6ee351b8944f44059e3e797">00225</a> <span class="keywordtype">int</span> <a class="code" href="namespacelibdap.html#a179d079ad6ee351b8944f44059e3e797">check_uint16</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *val)
<a name="l00226"></a>00226 {
<a name="l00227"></a>00227     <span class="keywordtype">char</span> *ptr;
<a name="l00228"></a>00228     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> v = strtol(val, &amp;ptr, 0);
<a name="l00229"></a>00229 
<a name="l00230"></a>00230     <span class="keywordflow">if</span> ((v == 0 &amp;&amp; val == ptr) || *ptr != <span class="charliteral">&#39;\0&#39;</span>) {
<a name="l00231"></a>00231         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00232"></a>00232     }
<a name="l00233"></a>00233 
<a name="l00234"></a>00234     <span class="keywordflow">if</span> (v &gt; <a class="code" href="dods-limits_8h.html#abbdf6079b091e5c281eab1f2aa96d4de">DODS_USHRT_MAX</a>) {
<a name="l00235"></a>00235         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00236"></a>00236     }
<a name="l00237"></a>00237 
<a name="l00238"></a>00238     <span class="keywordflow">return</span> <a class="code" href="parser_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00239"></a>00239 }
<a name="l00240"></a>00240 
<a name="l00241"></a><a class="code" href="namespacelibdap.html#aa9db83b431346800f838b089fafb0066">00241</a> <span class="keywordtype">int</span> <a class="code" href="namespacelibdap.html#aa9db83b431346800f838b089fafb0066">check_int32</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *val)
<a name="l00242"></a>00242 {
<a name="l00243"></a>00243     <span class="keywordtype">char</span> *ptr;
<a name="l00244"></a>00244     errno = 0;
<a name="l00245"></a>00245     <span class="keywordtype">long</span> v = strtol(val, &amp;ptr, 0);      <span class="comment">// `0&#39; --&gt; use val to determine base</span>
<a name="l00246"></a>00246 
<a name="l00247"></a>00247 
<a name="l00248"></a>00248     <span class="keywordflow">if</span> ((v == 0 &amp;&amp; val == ptr) || *ptr != <span class="charliteral">&#39;\0&#39;</span>) {
<a name="l00249"></a>00249         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00250"></a>00250     }
<a name="l00251"></a>00251 
<a name="l00252"></a>00252     <span class="comment">// We need to check errno since strtol return clamps on overflow so the</span>
<a name="l00253"></a>00253     <span class="comment">// check against the DODS values below will always pass, even for out of</span>
<a name="l00254"></a>00254     <span class="comment">// bounds values in the string. mjohnson 7/20/09</span>
<a name="l00255"></a>00255     <span class="keywordflow">if</span> (errno == ERANGE) {
<a name="l00256"></a>00256         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00257"></a>00257     }
<a name="l00258"></a>00258     <span class="comment">// This could be combined with the above, or course, but I&#39;m making it</span>
<a name="l00259"></a>00259     <span class="comment">// separate to highlite the test. On 64-bit linux boxes &#39;long&#39; may be </span>
<a name="l00260"></a>00260     <span class="comment">// 64-bits and so &#39;v&#39; can hold more than a DODS_INT32. jhrg 3/23/10</span>
<a name="l00261"></a>00261     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (v &gt; <a class="code" href="dods-limits_8h.html#a74737b3524a570ac422e162af40f844a">DODS_INT_MAX</a> || v &lt; <a class="code" href="dods-limits_8h.html#a7ea3886c8d4ec9d6334d0e7d26100834">DODS_INT_MIN</a>) {
<a name="l00262"></a>00262         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00263"></a>00263     }
<a name="l00264"></a>00264     <span class="keywordflow">else</span> {
<a name="l00265"></a>00265         <span class="keywordflow">return</span> <a class="code" href="parser_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00266"></a>00266     }
<a name="l00267"></a>00267 }
<a name="l00268"></a>00268 
<a name="l00269"></a><a class="code" href="namespacelibdap.html#a754cae6f64ff4052f6e694184a68938c">00269</a> <span class="keywordtype">int</span> <a class="code" href="namespacelibdap.html#a754cae6f64ff4052f6e694184a68938c">check_uint32</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *val)
<a name="l00270"></a>00270 {
<a name="l00271"></a>00271   <span class="comment">// Eat whitespace and check for an initial &#39;-&#39; sign...</span>
<a name="l00272"></a>00272   <span class="comment">// strtoul allows an initial minus. mjohnson</span>
<a name="l00273"></a>00273     <span class="keyword">const</span> <span class="keywordtype">char</span>* c = val;
<a name="l00274"></a>00274     <span class="keywordflow">while</span> (c &amp;&amp; isspace(*c)) {
<a name="l00275"></a>00275          c++;
<a name="l00276"></a>00276     }
<a name="l00277"></a>00277     <span class="keywordflow">if</span> (c &amp;&amp; (*c == <span class="charliteral">&#39;-&#39;</span>)) {
<a name="l00278"></a>00278          <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00279"></a>00279     }
<a name="l00280"></a>00280 
<a name="l00281"></a>00281     <span class="keywordtype">char</span> *ptr;
<a name="l00282"></a>00282     errno = 0;
<a name="l00283"></a>00283     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> v = strtoul(val, &amp;ptr, 0);
<a name="l00284"></a>00284 
<a name="l00285"></a>00285     <span class="keywordflow">if</span> ((v == 0 &amp;&amp; val == ptr) || *ptr != <span class="charliteral">&#39;\0&#39;</span>) {
<a name="l00286"></a>00286         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00287"></a>00287     }
<a name="l00288"></a>00288 
<a name="l00289"></a>00289     <span class="comment">// check overflow first, or the below check is invalid due to</span>
<a name="l00290"></a>00290     <span class="comment">// clamping to the maximum value by strtoul</span>
<a name="l00291"></a>00291     <span class="comment">// maybe consider using long long for these checks? mjohnson</span>
<a name="l00292"></a>00292     <span class="keywordflow">if</span> (errno == ERANGE) {
<a name="l00293"></a>00293       <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00294"></a>00294     }
<a name="l00295"></a>00295     <span class="comment">// See above.</span>
<a name="l00296"></a>00296     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (v &gt; <a class="code" href="dods-limits_8h.html#a548eb8440671a642cd537a9141b021f4">DODS_UINT_MAX</a>) {
<a name="l00297"></a>00297         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00298"></a>00298     }
<a name="l00299"></a>00299     <span class="keywordflow">else</span> {
<a name="l00300"></a>00300         <span class="keywordflow">return</span> <a class="code" href="parser_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00301"></a>00301     }
<a name="l00302"></a>00302 }
<a name="l00303"></a>00303 
<a name="l00304"></a>00304 <span class="comment">// Check first for system errors (like numbers so small they convert</span>
<a name="l00305"></a>00305 <span class="comment">// (erroneously) to zero. Then make sure that the value is within</span>
<a name="l00306"></a>00306 <span class="comment">// limits.</span>
<a name="l00307"></a>00307 
<a name="l00308"></a><a class="code" href="namespacelibdap.html#a8e3daffef90939dcbb46fb6f50b9a40e">00308</a> <span class="keywordtype">int</span> <a class="code" href="namespacelibdap.html#a8e3daffef90939dcbb46fb6f50b9a40e" title="Is the value a valid float?">check_float32</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *val)
<a name="l00309"></a>00309 {
<a name="l00310"></a>00310     <span class="keywordtype">char</span> *ptr;
<a name="l00311"></a>00311     errno = 0;                  <span class="comment">// Clear previous value. Fix for the 64bit</span>
<a name="l00312"></a>00312                                 <span class="comment">// IRIX from Rob Morris. 5/21/2001 jhrg</span>
<a name="l00313"></a>00313 
<a name="l00314"></a>00314 <span class="preprocessor">#ifdef WIN32</span>
<a name="l00315"></a>00315 <span class="preprocessor"></span>    <span class="keywordtype">double</span> v = w32strtod(val, &amp;ptr);
<a name="l00316"></a>00316 <span class="preprocessor">#else</span>
<a name="l00317"></a>00317 <span class="preprocessor"></span>    <span class="keywordtype">double</span> v = strtod(val, &amp;ptr);
<a name="l00318"></a>00318 <span class="preprocessor">#endif</span>
<a name="l00319"></a>00319 <span class="preprocessor"></span>
<a name="l00320"></a>00320     <a class="code" href="debug_8h.html#a32adf79142f0a426b5e782fb7cd4cad3">DBG</a>(cerr &lt;&lt; <span class="stringliteral">&quot;v: &quot;</span> &lt;&lt; v &lt;&lt; <span class="stringliteral">&quot;, ptr: &quot;</span> &lt;&lt; ptr
<a name="l00321"></a>00321         &lt;&lt; <span class="stringliteral">&quot;, errno: &quot;</span> &lt;&lt; errno &lt;&lt; <span class="stringliteral">&quot;, val==ptr: &quot;</span> &lt;&lt; (val == ptr) &lt;&lt; endl);
<a name="l00322"></a>00322 
<a name="l00323"></a>00323     <span class="keywordflow">if</span> (errno == ERANGE || (v == 0.0 &amp;&amp; val == ptr) || *ptr != <span class="charliteral">&#39;\0&#39;</span>)
<a name="l00324"></a>00324         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00325"></a>00325 <span class="preprocessor">#if 0</span>
<a name="l00326"></a>00326 <span class="preprocessor"></span>    <span class="keywordflow">if</span> ((v == 0.0 &amp;&amp; (val == ptr || errno == HUGE_VAL || errno == ERANGE))
<a name="l00327"></a>00327         || *ptr != <span class="charliteral">&#39;\0&#39;</span>) {
<a name="l00328"></a>00328         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00329"></a>00329     }
<a name="l00330"></a>00330 <span class="preprocessor">#endif</span>
<a name="l00331"></a>00331 <span class="preprocessor"></span>
<a name="l00332"></a>00332     <a class="code" href="debug_8h.html#a32adf79142f0a426b5e782fb7cd4cad3">DBG</a>(cerr &lt;&lt; <span class="stringliteral">&quot;fabs(&quot;</span> &lt;&lt; val &lt;&lt; <span class="stringliteral">&quot;) = &quot;</span> &lt;&lt; fabs(v) &lt;&lt; endl);
<a name="l00333"></a>00333     <span class="keywordtype">double</span> abs_val = fabs(v);
<a name="l00334"></a>00334     <span class="keywordflow">if</span> (abs_val &gt; <a class="code" href="dods-limits_8h.html#ad7da9cfbfcb6059a68080545ea111ff1">DODS_FLT_MAX</a>
<a name="l00335"></a>00335         || (abs_val != 0.0 &amp;&amp; abs_val &lt; <a class="code" href="dods-limits_8h.html#a77ab441ea39b83cf8d12a44fd62ddd0e">DODS_FLT_MIN</a>))
<a name="l00336"></a>00336         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00337"></a>00337 
<a name="l00338"></a>00338     <span class="keywordflow">return</span> <a class="code" href="parser_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00339"></a>00339 }
<a name="l00340"></a>00340 
<a name="l00341"></a><a class="code" href="namespacelibdap.html#a0004b07014e0ece91b7f363e805ceca1">00341</a> <span class="keywordtype">int</span> <a class="code" href="namespacelibdap.html#a0004b07014e0ece91b7f363e805ceca1">check_float64</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *val)
<a name="l00342"></a>00342 {
<a name="l00343"></a>00343     <a class="code" href="debug_8h.html#a32adf79142f0a426b5e782fb7cd4cad3">DBG</a>(cerr &lt;&lt; <span class="stringliteral">&quot;val: &quot;</span> &lt;&lt; val &lt;&lt; endl);
<a name="l00344"></a>00344     <span class="keywordtype">char</span> *ptr;
<a name="l00345"></a>00345     errno = 0;                  <span class="comment">// Clear previous value. 5/21/2001 jhrg</span>
<a name="l00346"></a>00346 
<a name="l00347"></a>00347 <span class="preprocessor">#ifdef WIN32</span>
<a name="l00348"></a>00348 <span class="preprocessor"></span>    <span class="keywordtype">double</span> v = w32strtod(val, &amp;ptr);
<a name="l00349"></a>00349 <span class="preprocessor">#else</span>
<a name="l00350"></a>00350 <span class="preprocessor"></span>    <span class="keywordtype">double</span> v = strtod(val, &amp;ptr);
<a name="l00351"></a>00351 <span class="preprocessor">#endif</span>
<a name="l00352"></a>00352 <span class="preprocessor"></span>
<a name="l00353"></a>00353     <a class="code" href="debug_8h.html#a32adf79142f0a426b5e782fb7cd4cad3">DBG</a>(cerr &lt;&lt; <span class="stringliteral">&quot;v: &quot;</span> &lt;&lt; v &lt;&lt; <span class="stringliteral">&quot;, ptr: &quot;</span> &lt;&lt; ptr
<a name="l00354"></a>00354         &lt;&lt; <span class="stringliteral">&quot;, errno: &quot;</span> &lt;&lt; errno &lt;&lt; <span class="stringliteral">&quot;, val==ptr: &quot;</span> &lt;&lt; (val == ptr) &lt;&lt; endl);
<a name="l00355"></a>00355 
<a name="l00356"></a>00356 
<a name="l00357"></a>00357     <span class="keywordflow">if</span> (errno == ERANGE || (v == 0.0 &amp;&amp; val == ptr) || *ptr != <span class="charliteral">&#39;\0&#39;</span>)
<a name="l00358"></a>00358         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00359"></a>00359 <span class="preprocessor">#if 0</span>
<a name="l00360"></a>00360 <span class="preprocessor"></span>    <span class="keywordflow">if</span> ((v == 0.0 &amp;&amp; (val == ptr || errno == HUGE_VAL || errno == ERANGE))
<a name="l00361"></a>00361         || *ptr != <span class="charliteral">&#39;\0&#39;</span>) {
<a name="l00362"></a>00362         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00363"></a>00363     }
<a name="l00364"></a>00364 <span class="preprocessor">#endif</span>
<a name="l00365"></a>00365 <span class="preprocessor"></span>    <a class="code" href="debug_8h.html#a32adf79142f0a426b5e782fb7cd4cad3">DBG</a>(cerr &lt;&lt; <span class="stringliteral">&quot;fabs(&quot;</span> &lt;&lt; val &lt;&lt; <span class="stringliteral">&quot;) = &quot;</span> &lt;&lt; fabs(v) &lt;&lt; endl);
<a name="l00366"></a>00366     <span class="keywordtype">double</span> abs_val = fabs(v);
<a name="l00367"></a>00367     <span class="keywordflow">if</span> (abs_val &gt; <a class="code" href="dods-limits_8h.html#a0a8ce841d9d9ff15fe487b515f43ff81">DODS_DBL_MAX</a>
<a name="l00368"></a>00368         || (abs_val != 0.0 &amp;&amp; abs_val &lt; <a class="code" href="dods-limits_8h.html#a10fd590362c76967923686f27ece6562">DODS_DBL_MIN</a>))
<a name="l00369"></a>00369         <span class="keywordflow">return</span> <a class="code" href="gse__parser_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00370"></a>00370 
<a name="l00371"></a>00371     <span class="keywordflow">return</span> <a class="code" href="parser_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00372"></a>00372 }
<a name="l00373"></a>00373 
<a name="l00374"></a>00374 <span class="comment">/*</span>
<a name="l00375"></a>00375 <span class="comment">  Maybe someday we will really check the Urls to see if they are valid...</span>
<a name="l00376"></a>00376 <span class="comment">*/</span>
<a name="l00377"></a>00377 
<a name="l00378"></a><a class="code" href="namespacelibdap.html#a0e96bac2251d066910b2647830b6959c">00378</a> <span class="keywordtype">int</span> <a class="code" href="namespacelibdap.html#a0e96bac2251d066910b2647830b6959c" title="Is the value a valid URL?">check_url</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *)
<a name="l00379"></a>00379 {
<a name="l00380"></a>00380     <span class="keywordflow">return</span> <a class="code" href="parser_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00381"></a>00381 }
<a name="l00382"></a>00382 
<a name="l00383"></a>00383 } <span class="comment">// namespace libdap</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="parser-util_8cc.html">parser-util.cc</a>      </li>
      <li class="footer">Generated on Tue Feb 8 2011 for libdap++ by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>

</body>
</html>