⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 liburl是一个小的C++库
💻 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>, &lt;<a href="mailto:k.peeters@damtp.cam.ac.uk">K.Peeters@damtp.cam.ac.uk</a>&gt;</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 &lt;url/url_string.hh&gt;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 + -