Skip to content

Commit

Permalink
rename .destroy() to .release()
Browse files Browse the repository at this point in the history
  • Loading branch information
vitamin committed Dec 25, 2021
1 parent e61f905 commit 296f0f6
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 25 deletions.
2 changes: 1 addition & 1 deletion docs/basic_string/BasicString.erase.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h1>Function BasicString.erase</h1><p>Removes specified characters from the stri
<pre class="code"><code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a><span class="pun">!</span><span class="typ">char </span><span class="pln">str </span><span class="pun">= </span><span class="str">"123456"</span><span class="pun">;

</span><span class="pln">str<wbr/></span><span class="pun">.</span><span class="pln">erase</span><span class="pun">(</span><span class="lit">2</span><span class="pun">);
</span><span class="kwd">assert</span><span class="pun">(</span><span class="pln">str </span><span class="pun">== </span><span class="str">"12456"</span><span class="pun">);</span></code></pre>
</span><span class="kwd">assert</span><span class="pun">(</span><span class="pln">str </span><span class="pun">== </span><span class="str">"12"</span><span class="pun">);</span></code></pre>

<pre class="code"><code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a><span class="pun">!</span><span class="typ">char </span><span class="pln">str </span><span class="pun">= </span><span class="str">"123456"</span><span class="pun">;

Expand Down
20 changes: 10 additions & 10 deletions docs/basic_string/BasicString.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,6 @@ <h1>Struct BasicString</h1><p>The <code class="lang-d"><span class="typ">BasicSt
<span class="tableEntryAnnotation">()</span>
</td>
<td>Erases the contents of the <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code>, which becomes an empty string (with a length of 0 characters).
</td>
</tr>
<tr>
<td>
<a href="../basic_string/BasicString.destroy.html" class="public">
<code>destroy</code>
</a>
<span class="tableEntryAnnotation">()</span>
</td>
<td>Erases and deallocate the contents of the <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code>, which becomes an empty string (with a length of 0 characters).
</td>
</tr>
<tr>
Expand Down Expand Up @@ -407,6 +397,16 @@ <h1>Struct BasicString</h1><p>The <code class="lang-d"><span class="typ">BasicSt
<span class="tableEntryAnnotation">(rhs)</span>
</td>
<td>Swaps the contents of <code class="lang-d"><span class="kwd">this</span></code> and <code class="lang-d"><a href="../basic_string/BasicString.proxySwap.html#rhs"><span class="pln">rhs</span></a></code>.
</td>
</tr>
<tr>
<td>
<a href="../basic_string/BasicString.release.html" class="public">
<code>release</code>
</a>
<span class="tableEntryAnnotation">()</span>
</td>
<td>Erases and deallocate the contents of the <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code>, which becomes an empty string (with a length of 0 characters).
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/basic_string/BasicString.opSlice.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 id="1">Function BasicString.opSlice</h2><p>Returns a slice [begin .. end]. I
<br/>
&nbsp;&nbsp;<span class="pln">size_t</span> <span class="pln">end</span>
<br/>
<span class="pun">)</span><span class="pln"> </span><span class="kwd">pure nothrow @nogc scope @system</span><span class="pun">;</span>
<span class="pun">)</span><span class="pln"> </span><span class="kwd">pure nothrow @nogc @system</span><span class="pun">;</span>
</div>
</code>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/basic_string/BasicString.ptr.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Function BasicString.ptr</h1><p>Return pointer to the first element.
<div class="prototype">
<code class="lang-d">
<div class="single-prototype">
<span class="kwd">inout </span><span class="kwd">inout</span><span class="pun">(</span><a href="../basic_string/BasicString.Char.html"><span class="typ">BasicString<wbr/></span><span class="pun">.<wbr/></span><span class="typ">Char</span></a><span class="pun">)</span><span class="pun">*</span> <span class="pln">ptr</span><span class="pun">(</span><span class="pun">)</span><span class="pln"> </span><span class="kwd">pure nothrow @nogc @property scope @system</span><span class="pun">;</span>
<span class="kwd">inout </span><span class="kwd">inout</span><span class="pun">(</span><a href="../basic_string/BasicString.Char.html"><span class="typ">BasicString<wbr/></span><span class="pun">.<wbr/></span><span class="typ">Char</span></a><span class="pun">)</span><span class="pun">*</span> <span class="pln">ptr</span><span class="pun">(</span><span class="pun">)</span><span class="pln"> </span><span class="kwd">pure nothrow @nogc @property @system</span><span class="pun">;</span>
</div>
</code>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8"/>
<title>Function BasicString.destroy</title>
<title>Function BasicString.release</title>
<link rel="stylesheet" type="text/css" href="../styles/ddox.css"/>
<link rel="stylesheet" href="../prettify/prettify.css" type="text/css"/>
<script type="text/javascript" src="../scripts/jquery.js">/**/</script><script type="text/javascript" src="../scripts/ddox.js">/**/</script>
Expand All @@ -28,12 +28,12 @@
</ul>
</nav>
<div id="main-contents">
<h1>Function BasicString.destroy</h1><p>Erases and deallocate the contents of the <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code>, which becomes an empty string (with a length of 0 characters).
<h1>Function BasicString.release</h1><p>Erases and deallocate the contents of the <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code>, which becomes an empty string (with a length of 0 characters).
</p>
<div class="prototype">
<code class="lang-d">
<div class="single-prototype">
<span class="typ">void</span> <span class="pln">destroy</span><span class="pun">(</span><span class="pun">)</span><span class="pln"> </span><span class="kwd">scope</span><span class="pun">;</span>
<span class="typ">void</span> <span class="pln">release</span><span class="pun">(</span><span class="pun">)</span><span class="pln"> </span><span class="kwd">scope</span><span class="pun">;</span>
</div>
</code>
</div>
Expand All @@ -49,7 +49,7 @@ <h1>Function BasicString.destroy</h1><p>Erases and deallocate the contents of th
</span><span class="pln">str<wbr/></span><span class="pun">.</span><span class="pln">clear</span><span class="pun">();
</span><span class="kwd">assert</span><span class="pun">(</span><span class="pln">str<wbr/></span><span class="pun">.</span><span class="pln">capacity </span><span class="pun">== </span><span class="pln">cap</span><span class="pun">);

</span><span class="pln">str<wbr/></span><span class="pun">.</span><span class="pln">destroy</span><span class="pun">();
</span><span class="pln">str<wbr/></span><span class="pun">.</span><span class="pln">release</span><span class="pun">();
</span><span class="kwd">assert</span><span class="pun">(</span><span class="pln">str<wbr/></span><span class="pun">.</span><span class="pln">capacity </span><span class="pun">&lt; </span><span class="pln">cap</span><span class="pun">);
</span><span class="kwd">assert</span><span class="pun">(</span><span class="pln">str<wbr/></span><span class="pun">.</span><span class="pln">capacity </span><span class="pun">== <a href="../basic_string/BasicString.html"></span><span class="typ">BasicString</span></a><span class="pun">!</span><span class="typ">char<wbr/></span><span class="pun">.</span><span class="typ">MinimalCapacity</span><span class="pun">);</span></code></pre>
</section>
Expand Down
2 changes: 1 addition & 1 deletion docs/file_hashes.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"basic_string/BasicString.length.html":"84423A4F122585648EEB1942B4A42742","basic_string/BasicString.put.html":"ED1828471F17310CC30B8D1B3F58CF8E","basic_string/BasicString.frontCodeUnit.html":"B305F8B56B6E865B21528FF09E91E76F","basic_string/BasicString.build.html":"4F23E18CBF51456A61D660E35091A036","basic_string/BasicString.backCodeUnit.html":"D1E98F23E559737BDC6F5F29780201BF","basic_string/BasicString.backCodePoint.html":"961B0CBBA2F39DBDA7A339F72097E8B2","basic_string/BasicString.this.html":"97D6600F449FBEE855347C5330A7FD5B","basic_string/BasicString.empty.html":"2158D067B3E430AA8FDC05D352C9627F","basic_string/BasicString.Char.html":"FBED44E06E13072C75494C08C2A5314D","basic_string/BasicString.opCmp.html":"A1BFB9FA140E9A9772E317D4C90C1E27","basic_string/BasicString.opBinary.html":"9A157B415C9010C850F8DD8E46FE1606","basic_string/BasicString.capacity.html":"57B771BF5459EF2BBBF3273848D78370","basic_string/BasicString.destroy.html":"990FD5F5CC1782B95D13E29E3D2D4090","basic_string/BasicString.MaximalCapacity.html":"037DE9349A23011E74AC4479182B6CC5","basic_string/BasicString.ptr.html":"56450B028F61D546A8828667008FD73F","basic_string/BasicString.html":"29125743A6D067B9ABF643060BB798EA","basic_string/BasicString.popBackCodeUnit.html":"C4C2115A16C1D53DE02DE69BF6F98CE4","basic_string/BasicString.proxySwap.html":"16ED7AAB1C3FDAAD34762DA3B81C4B02","basic_string/BasicString.shrinkToFit.html":"D75FF51DA34B531569D78CED642A52A0","basic_string/BasicString.opEquals.html":"5BD18144C7148B0B6A30A312BDCFE3B8","basic_string/BasicString.opSlice.html":"0681A8FBE8546ED718A845BA066E57AE","basic_string/BasicString.popBack.html":"159196CDAADA668EC68C7B88A8DBDCC3","basic_string/BasicString.clear.html":"451611D5A9CB84EAF65427E94CEC2C1C","basic_string/BasicString.opBinaryRight.html":"391C0C131D66369DEB181D7DAF5109B4","basic_string/BasicString.allocator.html":"1F03545190ED49F7B848621E9F6682C5","basic_string/BasicString.toHash.html":"88DFB1CABE7C6288E83D859E8C075622","basic_string/BasicString.opAssign.html":"AF3BD7AEC2BA725A8E96684AB6DB5605","sitemap.xml":"124060EF8EFB43CFCF78F0EA9AAAE6B5","index.html":"93A86874C783CDACC48099B29837106C","basic_string/BasicString.opDollar.html":"218E8DC529D4A2B64117B1FE2A1B6EFE","basic_string/BasicString.valid.html":"76D7AB8134780D06938421E4CA6E07CA","symbols.js":"FC7A229A6E5F8587B5A54E25673FE4E4","basic_string/BasicString.append.html":"B43E326F47BC06450801DFB46B77CD53","basic_string/BasicString.frontCodePoint.html":"A4135BE8D5231AF387A41AF4C5BDF904","basic_string/BasicString.opIndex.html":"A66C3CC336D781CC3B731B7E468216B4","basic_string/BasicString.erase.html":"E4D08FA85DC33C06794A86E07C36596F","basic_string.html":"29FBD9E7B3263C347B319AA7C2A8A8BE","basic_string/BasicString.front.html":"09659074D0648D619C2B7710E42E7976","basic_string/BasicString.popBackCodePoint.html":"C07E92E43B4F2181CB406F20F9D0552D","basic_string/BasicString.Allocator.html":"DDA39D8E8026647922FF90A4BEFF43BC","basic_string/BasicString.insert.html":"25A326312B381EADB5EB0FCC7B68BADA","basic_string/BasicString.back.html":"538086E18B5C314A930C701E9DF6215E","basic_string/BasicString.replace.html":"EBC45355CE8ED859E3F01ABA54EEC764","basic_string/BasicString.hasStatelessAllocator.html":"A83E3A8A9D16751F82A56D5B86AE0866","basic_string/BasicString.opIndexAssign.html":"59F196550DCEA415DFE02011E9860678","basic_string/BasicString.MinimalCapacity.html":"A391D23D813E0FCE6AC2D01A195F5D27","basic_string/BasicString.reserve.html":"B781DCE8BF789D68FFA59AF167CEB292","basic_string/BasicString.resize.html":"CF25CA1364C6ED6752DDD9513C39C6E6","basic_string/BasicString.opOpAssign.html":"0C5851E031BBAA136BC43A9C01B02D58","basic_string/BasicString.small.html":"9FF98601BD83F43048AF3156774A2BBB","basic_string/isBasicString.html":"B2BE0C1D8EBA6EFF12656A40DE8CB414"}
{"basic_string/BasicString.length.html":"84423A4F122585648EEB1942B4A42742","basic_string/BasicString.put.html":"ED1828471F17310CC30B8D1B3F58CF8E","basic_string/BasicString.frontCodeUnit.html":"B305F8B56B6E865B21528FF09E91E76F","basic_string/BasicString.build.html":"4F23E18CBF51456A61D660E35091A036","basic_string/BasicString.backCodeUnit.html":"D1E98F23E559737BDC6F5F29780201BF","basic_string/BasicString.backCodePoint.html":"961B0CBBA2F39DBDA7A339F72097E8B2","basic_string/BasicString.this.html":"97D6600F449FBEE855347C5330A7FD5B","basic_string/BasicString.empty.html":"2158D067B3E430AA8FDC05D352C9627F","basic_string/BasicString.Char.html":"FBED44E06E13072C75494C08C2A5314D","basic_string/BasicString.opCmp.html":"A1BFB9FA140E9A9772E317D4C90C1E27","basic_string/BasicString.opBinary.html":"9A157B415C9010C850F8DD8E46FE1606","basic_string/BasicString.capacity.html":"57B771BF5459EF2BBBF3273848D78370","basic_string/BasicString.ptr.html":"795046A7AF186783A906F5E2002291E1","basic_string/BasicString.MaximalCapacity.html":"037DE9349A23011E74AC4479182B6CC5","basic_string/BasicString.html":"DA9AD665DB8FB0583A0E0434C3A5A7DF","basic_string/BasicString.shrinkToFit.html":"D75FF51DA34B531569D78CED642A52A0","basic_string/BasicString.popBackCodeUnit.html":"C4C2115A16C1D53DE02DE69BF6F98CE4","basic_string/BasicString.proxySwap.html":"16ED7AAB1C3FDAAD34762DA3B81C4B02","basic_string/BasicString.opEquals.html":"5BD18144C7148B0B6A30A312BDCFE3B8","basic_string/BasicString.opSlice.html":"413F2747767EC1145B787C1ED4340494","basic_string/BasicString.popBack.html":"159196CDAADA668EC68C7B88A8DBDCC3","basic_string/BasicString.clear.html":"451611D5A9CB84EAF65427E94CEC2C1C","basic_string/BasicString.opBinaryRight.html":"391C0C131D66369DEB181D7DAF5109B4","basic_string/BasicString.allocator.html":"1F03545190ED49F7B848621E9F6682C5","basic_string/BasicString.toHash.html":"88DFB1CABE7C6288E83D859E8C075622","basic_string/BasicString.opAssign.html":"AF3BD7AEC2BA725A8E96684AB6DB5605","sitemap.xml":"D6B88B0B0B4430287BAFD20E2BA5AA3F","index.html":"93A86874C783CDACC48099B29837106C","basic_string/BasicString.opDollar.html":"218E8DC529D4A2B64117B1FE2A1B6EFE","basic_string/BasicString.valid.html":"76D7AB8134780D06938421E4CA6E07CA","symbols.js":"B766EB89214B05F1063D0859542ED07E","basic_string/BasicString.append.html":"B43E326F47BC06450801DFB46B77CD53","basic_string/BasicString.frontCodePoint.html":"A4135BE8D5231AF387A41AF4C5BDF904","basic_string/BasicString.opIndex.html":"A66C3CC336D781CC3B731B7E468216B4","basic_string/BasicString.erase.html":"E7F0B2F6ACC07AB23C87C1E64F81338E","basic_string.html":"29FBD9E7B3263C347B319AA7C2A8A8BE","basic_string/BasicString.front.html":"09659074D0648D619C2B7710E42E7976","basic_string/BasicString.popBackCodePoint.html":"C07E92E43B4F2181CB406F20F9D0552D","basic_string/BasicString.Allocator.html":"DDA39D8E8026647922FF90A4BEFF43BC","basic_string/BasicString.insert.html":"25A326312B381EADB5EB0FCC7B68BADA","basic_string/BasicString.back.html":"538086E18B5C314A930C701E9DF6215E","basic_string/BasicString.replace.html":"EBC45355CE8ED859E3F01ABA54EEC764","basic_string/BasicString.hasStatelessAllocator.html":"A83E3A8A9D16751F82A56D5B86AE0866","basic_string/BasicString.opIndexAssign.html":"59F196550DCEA415DFE02011E9860678","basic_string/BasicString.MinimalCapacity.html":"A391D23D813E0FCE6AC2D01A195F5D27","basic_string/BasicString.reserve.html":"B781DCE8BF789D68FFA59AF167CEB292","basic_string/BasicString.resize.html":"CF25CA1364C6ED6752DDD9513C39C6E6","basic_string/BasicString.release.html":"A5B21687EC430C3599211CF9AF42E878","basic_string/BasicString.opOpAssign.html":"0C5851E031BBAA136BC43A9C01B02D58","basic_string/BasicString.small.html":"9FF98601BD83F43048AF3156774A2BBB","basic_string/isBasicString.html":"B2BE0C1D8EBA6EFF12656A40DE8CB414"}
2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<url><loc>http://127.0.0.1/basic_string/BasicString.capacity.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.Char.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.clear.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.destroy.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.empty.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.erase.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.erase.html</loc></url>
Expand Down Expand Up @@ -58,6 +57,7 @@
<url><loc>http://127.0.0.1/basic_string/BasicString.proxySwap.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.ptr.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.put.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.release.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.replace.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.replace.html</loc></url>
<url><loc>http://127.0.0.1/basic_string/BasicString.replace.html</loc></url>
Expand Down
4 changes: 2 additions & 2 deletions docs/symbols.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/basic_string/internal/unittesting.d
Original file line number Diff line number Diff line change
Expand Up @@ -960,3 +960,4 @@ nothrow unittest{
}
}


Loading

0 comments on commit 296f0f6

Please sign in to comment.