?? index.html
字號:
<html><head><title>liburl documentation</title></head><body bgcolor="white"><center><h1>liburl</h1>C++ library for URL strings<br><p><a href="../index.html">Kasper Peeters</a>, <<a href="mailto:k.peeters@damtp.cam.ac.uk">K.Peeters@damtp.cam.ac.uk</a>></center><p><table width="100%"><tr><td>[<a href="#overview">overview</a>]</td> <td>[<a href="#download">download</a>]</td> <td>[<a href="#usage">usage</a>]</td> <td>[<a href="#passwords">passwords</a>]</td></table><name="overview"></a><h3>Overview</h3><blockquote>The `lib-url' library is a small C++ library for manipulations ofuniversal resource locators (urls) as well as http uuencodings (the latteris unsupported at the moment). It follows the specifications as laidout in <a href="http://andrew2.andrew.cmu.edu/rfc/rfc1738.html">RFC 1738</A>.<p>In particular, it supports both absolute urls, <blockquote>scheme://username:passwd@host:port/abspath[;param][?query][#fragment]</blockquote>and relative urls, which borrow unknown parts from their referrer,<blockquote>scheme:abspathscheme:relpath</blockquote><p>This library is spin-off of the Mnemonic browser project. An upcomingnew version of this browser will be based on the present library, butsince this code is useful for a much wider audience, I have decided tosplit it off completely.</blockquote><br><p><a name="download"><h3>Download and install</h3><blockquote>You need the following additional software in order to compileand use wwtxt:<ul><li>My C++ helper library <a href="http://www.damtp.cam.ac.uk/user/kp229/proj++/">proj++</a>(which takes care of building shared libraries and providestimers).</li><li>A decent C++ compiler; gcc 2.95.3 and higher will do.</li></ul><p>Then download and install <a href="liburl.tar.gz">liburl.tar.gz</a>. The current version is <strong>VERSION</strong> dated<strong>DATE</strong>; consult the <a href="ChangeLog">ChangeLog</a>for recent changes. The usual GNU installation instructions apply.</blockquote><br><p><h3>Usage</h3><blockquote>The <code>url_string</code>s are initialised using normal C++ strings, as in<blockquote><pre>#include <url/url_string.hh>url_string foo("http://www.mnemonic.org:8000/bar");</pre></blockquote> andthen offer the following functionality. You can extract the scheme(`http'), the net-path (`www.mnemonic.org'), the port number (`8000'),and the absolute path (`/bar'). Ditto for all the other supported elements (see above). <p>For relative urls, the strings should be initialised with two parameters, the secondone being the referring url. In this case, the relative path can be extractedas well by calling <code>get_relative_path</code>.<p>Refer to the header file <code>url_string.hh</code> for the details of member functions.</blockquote><h3>Password information</h3><blockquote>Password information can be added at any time by calling the <code>set_username(...)</code> and <code>set_passwd(...)</code> members.The password information will <b>not</b> be visible when you call <code>get_url()</code>; instead, there will be a number of stars. If youneed the password, always call <code>get_passwd()</code>.</blockquote><p><hr noshade size=1>$Id: index.html,v 1.4 2002/04/04 17:30:29 t16 Exp $</body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -