/usr/share/doc/libapache2-mod-perl2-doc/docs/2.0/api/APR/UUID.html is in libapache2-mod-perl2-doc 2.0.8+httpd24-r1449661-6ubuntu2.
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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | <?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body style="background-color: white">
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#Synopsis">Synopsis</a></li>
<li><a href="#Description">Description</a></li>
<li><a href="#API">API</a>
<ul>
<li><a href="#format">format</a></li>
<li><a href="#new">new</a></li>
<li><a href="#DESTROY">DESTROY</a></li>
<li><a href="#parse">parse</a></li>
</ul>
</li>
<li><a href="#See-Also">See Also</a></li>
<li><a href="#Copyright">Copyright</a></li>
<li><a href="#Authors">Authors</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>APR::UUID - Perl API for manipulating APR UUIDs</p>
<h1 id="Synopsis">Synopsis</h1>
<pre><code> use APR::UUID ();
# get a random UUID and format it as a string
my $uuid = APR::UUID->new->format;
# $uuid = e.g. 'd48889bb-d11d-b211-8567-ec81968c93c6';
# same as the object returned by APR::UUID->new
my $uuid_parsed = APR::UUID->parse($uuid);</code></pre>
<h1 id="Description">Description</h1>
<p><code>APR::UUID</code> is used to get and manipulate random UUIDs.</p>
<p>It allows you to <code><a href="#C_new_">create</a></code> random UUIDs, which when <code><a href="#C_format_">format</a>ted</code> returns a string like:</p>
<pre><code> 'd48889bb-d11d-b211-8567-ec81968c93c6';</code></pre>
<p>which can be parsed back into the <code>APR::UUID</code> object with <code><a href="#C_parse_">parse()</a></code>.</p>
<h1 id="API">API</h1>
<p><code>APR::UUID</code> provides the following functions and/or methods:</p>
<h2 id="format"><code>format</code></h2>
<p>Convert an <code><a>APR::UUID object</a></code> object into a string presentation:</p>
<pre><code> my $uuid_str = $uuid->format;</code></pre>
<dl>
<dt id="obj:-uuid-APR::UUID-object">obj: <code>$uuid</code> ( <code><a>APR::UUID object</a></code> )</dt>
<dd>
</dd>
<dt id="ret:-uuid_str">ret: <code>$uuid_str</code></dt>
<dd>
<p>returns a string representation of the object (.e.g <code>'d48889bb-d11d-b211-8567-ec81968c93c6'</code>).</p>
</dd>
<dt id="since:-2.0.00">since: 2.0.00</dt>
<dd>
</dd>
</dl>
<h2 id="new"><code>new</code></h2>
<p>Create a <code><a>APR::UUID object</a></code> using the random engine:</p>
<pre><code> my $uuid = APR::UUID->new;</code></pre>
<dl>
<dt id="class:-APR::UUID-APR::UUID-class">class: <code>APR::UUID</code> ( <code><a>APR::UUID class</a></code> )</dt>
<dd>
</dd>
<dt id="ret:-uuid-APR::UUID-object">ret: <code>$uuid</code> ( <code><a>APR::UUID object</a></code> )</dt>
<dd>
</dd>
<dt id="since:-2.0.001">since: 2.0.00</dt>
<dd>
</dd>
</dl>
<h2 id="DESTROY"><code>DESTROY</code></h2>
<pre><code> $uuid->DESTROY;</code></pre>
<dl>
<dt id="obj:-APR::UUID-APR::UUID-object">obj: <code>APR::UUID</code> ( <code><a>APR::UUID object</a></code> )</dt>
<dd>
</dd>
<dt id="ret:-no-return-value">ret: no return value</dt>
<dd>
</dd>
<dt id="since:-2.0.002">since: 2.0.00</dt>
<dd>
</dd>
</dl>
<p>Do not call this method, it's designed to be only called by Perl when the variable goes out of scope. If you call it yourself you will get a segfault when perl will call DESTROY on its own.</p>
<h2 id="parse"><code>parse</code></h2>
<p>Convert a UUID string into an <code><a>APR::UUID object</a></code> object:</p>
<pre><code> $uuid = APR::UUID->parse($uuid_str)</code></pre>
<dl>
<dt id="arg1:-uuid_str-string">arg1: <code>$uuid_str</code> (string)</dt>
<dd>
<p>UUID string (.e.g <code>'d48889bb-d11d-b211-8567-ec81968c93c6'</code>)</p>
</dd>
<dt id="ret:-uuid-APR::UUID-object1">ret: <code>$uuid</code> ( <code><a>APR::UUID object</a></code> )</dt>
<dd>
<p>The new object.</p>
</dd>
<dt id="since:-2.0.003">since: 2.0.00</dt>
<dd>
</dd>
</dl>
<h1 id="See-Also">See Also</h1>
<p><a>mod_perl 2.0 documentation</a>.</p>
<h1 id="Copyright">Copyright</h1>
<p>mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.</p>
<h1 id="Authors">Authors</h1>
<p><a>The mod_perl development team and numerous contributors</a>.</p>
</body>
</html>
|