Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
vitamin committed Jan 17, 2022
1 parent 79cee5b commit 7146aa5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 48 deletions.
51 changes: 15 additions & 36 deletions docs/basic_string/BasicString.build.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8"/>
<title>BasicString.build - multiple declarations</title>
<title>Function BasicString.build</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,21 +28,7 @@
</ul>
</nav>
<div id="main-contents">
<h1>BasicString.build - multiple declarations</h1>
<nav class="page-nav">
<ul>
<li>
<a href="#0">
Function <code>BasicString.build</code>
</a>
</li>
<li>
<a href="#1">
Function <code>BasicString.build</code>
</a>
</li>
</ul>
</nav><h2 id="0">Function BasicString.build</h2><p>Static function which return <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code> construct from arguments <code class="lang-d"><a href="../basic_string/BasicString.build.html#args"><span class="pln">args</span></a></code>.
<h1>Function BasicString.build</h1><p>Static function which return <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code> construct from arguments <code class="lang-d"><a href="../basic_string/BasicString.build.html#args"><span class="pln">args</span></a></code>.
</p>
<div class="prototype">
<code class="lang-d">
Expand All @@ -55,41 +41,34 @@ <h1>BasicString.build - multiple declarations</h1>
<span class="pun">)</span>
<br/>
<span class="kwd">if</span> <span class="pun">(</span><span class="typ">Args<wbr/></span><span class="pun">.</span><span class="pln">length </span><span class="pun">&gt; </span><span class="lit">0 </span><span class="pun">&amp;&amp; !</span><span class="kwd">is</span><span class="pun">(</span><span class="kwd">immutable</span><span class="pun">(</span><span class="typ">Args</span><span class="pun">[</span><span class="lit">0</span><span class="pun">]) == </span><span class="kwd">immutable</span><span class="pun">(</span><span class="typ">Allocator</span><span class="pun">))</span><span class="pun">);</span>
<br/>
<br/>
<span class="kwd">typeof</span><span class="pun">(</span><span class="kwd">this</span><span class="pun">)</span> <span class="pln">build</span>(Args...)
<span class="pun">(</span>
<br/>
&nbsp;&nbsp;<a href="../basic_string/BasicString.Allocator.html"><span class="typ">BasicString<wbr/></span><span class="pun">.<wbr/></span><span class="typ">Allocator</span></a> <span class="pln">allocator</span><span class="pun">,</span>
<br/>
&nbsp;&nbsp;<span class="kwd">auto scope const ref </span><span class="typ">Args</span> <span class="pln">args</span>
<br/>
<span class="pun">)</span><span class="pun">;</span>
</div>
</code>
</div>
<section></section>

<section><h3>Parameters</h3>
<section><h2>Parameters</h2>
<p><code class="lang-d"><a href="../basic_string/BasicString.allocator.html"><span class="pln">allocator</span></a></code> exists only if template parameter <code class="lang-d"><span class="pln">_Allocator</span></code> has state.
</p>

<p> <code class="lang-d"><a href="../basic_string/BasicString.build.html#args"><span class="pln">args</span></a></code> values of type <code class="lang-d"><span class="typ">char</span><span class="pun">|</span><span class="typ">wchar</span><span class="pun">|</span><span class="typ">dchar</span></code> array/slice/character or <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code>.
</p>
</section>
<section><h3>Examples</h3>
<section><h2>Examples</h2>
<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">= <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="pln">build</span><span class="pun">(</span><span class="str">'1'</span><span class="pun">, </span><span class="kwd">cast</span><span class="pun">(</span><span class="typ">dchar</span><span class="pun">)</span><span class="str">'2'</span><span class="pun">, </span><span class="str">"345"d</span><span class="pun">, <a href="../basic_string/BasicString.html"></span><span class="typ">BasicString</span></a><span class="pun">!</span><span class="typ">wchar</span><span class="pun">(</span><span class="str">"678"</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">"12345678"</span><span class="pun">);</span></code></pre>
</section>
<h2 id="1">Function BasicString.build</h2><p>dito
</p>
<div class="prototype">
<code class="lang-d">
<div class="single-prototype">
<span class="kwd">typeof</span><span class="pun">(</span><span class="kwd">this</span><span class="pun">)</span> <span class="pln">build</span>(Args...)
<span class="pun">(</span>
<br/>
&nbsp;&nbsp;<a href="../basic_string/BasicString.Allocator.html"><span class="typ">BasicString<wbr/></span><span class="pun">.<wbr/></span><span class="typ">Allocator</span></a> <span class="pln">allocator</span><span class="pun">,</span>
<br/>
&nbsp;&nbsp;<span class="kwd">auto scope const ref </span><span class="typ">Args</span> <span class="pln">args</span>
<br/>
<span class="pun">)</span><span class="pun">;</span>
</div>
</code>
</div>



<footer>
<table class="license-info">
<tr>
Expand Down
10 changes: 0 additions & 10 deletions docs/basic_string/BasicString.html
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,6 @@ <h2>Struct BasicString</h2>
<span class="tableEntryAnnotation">(args)</span>
</td>
<td>Static function which return <code class="lang-d"><a href="../basic_string/BasicString.html"><span class="typ">BasicString</span></a></code> construct from arguments <code class="lang-d"><a href="../basic_string/BasicString.build.html#args"><span class="pln">args</span></a></code>.
</td>
</tr>
<tr>
<td>
<a href="../basic_string/BasicString.build.html" class="public">
<code>build</code>
</a>
<span class="tableEntryAnnotation">(allocator, args)</span>
</td>
<td>dito
</td>
</tr>
<tr>
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":"17358504148B7BDE07D8F864B87A02A5","basic_string/BasicString.build.html":"1674EFB5C449E1E37C74DE4C4021C6AF","basic_string/BasicString.backCodeUnit.html":"FE27498AC40F77D65DF0D6B241328F4D","basic_string/BasicString.backCodePoint.html":"6A46F673F865BB9E1DDAA70E02B7B918","basic_string/BasicString.this.html":"A43DB71D03757E00BC0DCBC708C66FE6","basic_string/BasicString.empty.html":"2158D067B3E430AA8FDC05D352C9627F","basic_string/BasicString.Char.html":"299AE24598BD0578D31A9F2AB2E0CB2D","basic_string/BasicString.opCmp.html":"802F647AA1D938DFBAE011715EFE8511","basic_string/BasicString.opBinary.html":"DFF009BA2B91D854ACD8F2DF5E7AF4BE","basic_string/BasicString.capacity.html":"57B771BF5459EF2BBBF3273848D78370","basic_string/BasicString.ptr.html":"795046A7AF186783A906F5E2002291E1","basic_string/BasicString.MaximalCapacity.html":"E5DC1008BBC4E084CF5718C6664F6F11","basic_string/BasicString.html":"F30B3EFD8FDA9A662FC8DF55BEFA4867","basic_string/BasicString.shrinkToFit.html":"D75FF51DA34B531569D78CED642A52A0","basic_string/BasicString.popBackCodeUnit.html":"C4C2115A16C1D53DE02DE69BF6F98CE4","basic_string/BasicString.proxySwap.html":"16ED7AAB1C3FDAAD34762DA3B81C4B02","basic_string/BasicString.opEquals.html":"B47BEC5E44DD8BBDDB3C35127F4BA8CE","basic_string/BasicString.opSlice.html":"6658CF119D7195129409258BB39C7D69","basic_string/BasicString.popBack.html":"159196CDAADA668EC68C7B88A8DBDCC3","basic_string/BasicString.clear.html":"451611D5A9CB84EAF65427E94CEC2C1C","basic_string/BasicString.opBinaryRight.html":"EFEDAFAE436A59043E336FF2AEA382CA","basic_string/BasicString.allocator.html":"949CC3EC606C4E945CFCC74BADD61CDB","basic_string/String.html":"0E0592A26DA2455B3F24EDFFB4D0CA63","basic_string/BasicString.toHash.html":"88DFB1CABE7C6288E83D859E8C075622","basic_string/BasicString.opAssign.html":"E6CD1567399360662C2EFC9877D36D8D","sitemap.xml":"FF4B8A73D5EBE7ED1DD124960DF821A2","index.html":"93A86874C783CDACC48099B29837106C","basic_string/BasicString.opDollar.html":"218E8DC529D4A2B64117B1FE2A1B6EFE","basic_string/BasicString.valid.html":"76D7AB8134780D06938421E4CA6E07CA","symbols.js":"976EF92D61586BE396EAC20BBA63C1E5","basic_string/BasicString.append.html":"4473B07324C800507242EF9A0341A4A8","basic_string/BasicString.frontCodePoint.html":"A4135BE8D5231AF387A41AF4C5BDF904","basic_string/BasicString.opIndex.html":"672678F458BA439A1383384FB83C10B0","basic_string/BasicString.erase.html":"E718C513569699430551B04B9A5424D7","basic_string.html":"538C2590CE829E45A0BACBB7DB74E5AF","basic_string/BasicString.front.html":"09659074D0648D619C2B7710E42E7976","basic_string/BasicString.popBackCodePoint.html":"23C98C00512F89761A1A22418B71D07E","basic_string/BasicString.Allocator.html":"C35B0C7C941D9158DCD525C04D3C6DDE","basic_string/BasicString.insert.html":"057C4FD1A232BCB830E026E0168CA882","basic_string/BasicString.back.html":"538086E18B5C314A930C701E9DF6215E","basic_string/BasicString.replace.html":"8EC3AC54522C50F765BBAB8A64E60F4E","basic_string/BasicString.hasStatelessAllocator.html":"D75526B56E75DC49B163F64107DB3C98","basic_string/BasicString.opIndexAssign.html":"59F196550DCEA415DFE02011E9860678","basic_string/BasicString.MinimalCapacity.html":"A7E07348E86BB2DF4AE25519C7A4DBA0","basic_string/BasicString.reserve.html":"B781DCE8BF789D68FFA59AF167CEB292","basic_string/BasicString.resize.html":"CF25CA1364C6ED6752DDD9513C39C6E6","basic_string/BasicString.release.html":"A5B21687EC430C3599211CF9AF42E878","basic_string/BasicString.opOpAssign.html":"54DB0E4E578F3F922D8FD941658F6FDA","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":"17358504148B7BDE07D8F864B87A02A5","basic_string/BasicString.build.html":"463FB7A8559B8C8F5A456E99205D4F8B","basic_string/BasicString.backCodeUnit.html":"FE27498AC40F77D65DF0D6B241328F4D","basic_string/BasicString.backCodePoint.html":"6A46F673F865BB9E1DDAA70E02B7B918","basic_string/BasicString.this.html":"A43DB71D03757E00BC0DCBC708C66FE6","basic_string/BasicString.empty.html":"2158D067B3E430AA8FDC05D352C9627F","basic_string/BasicString.Char.html":"299AE24598BD0578D31A9F2AB2E0CB2D","basic_string/BasicString.opCmp.html":"802F647AA1D938DFBAE011715EFE8511","basic_string/BasicString.opBinary.html":"DFF009BA2B91D854ACD8F2DF5E7AF4BE","basic_string/BasicString.capacity.html":"57B771BF5459EF2BBBF3273848D78370","basic_string/BasicString.ptr.html":"795046A7AF186783A906F5E2002291E1","basic_string/BasicString.MaximalCapacity.html":"E5DC1008BBC4E084CF5718C6664F6F11","basic_string/BasicString.html":"6E271E4634476744D4FC61C36E70501E","basic_string/BasicString.shrinkToFit.html":"D75FF51DA34B531569D78CED642A52A0","basic_string/BasicString.popBackCodeUnit.html":"C4C2115A16C1D53DE02DE69BF6F98CE4","basic_string/BasicString.proxySwap.html":"16ED7AAB1C3FDAAD34762DA3B81C4B02","basic_string/BasicString.opEquals.html":"B47BEC5E44DD8BBDDB3C35127F4BA8CE","basic_string/BasicString.opSlice.html":"6658CF119D7195129409258BB39C7D69","basic_string/BasicString.popBack.html":"159196CDAADA668EC68C7B88A8DBDCC3","basic_string/BasicString.clear.html":"451611D5A9CB84EAF65427E94CEC2C1C","basic_string/BasicString.opBinaryRight.html":"EFEDAFAE436A59043E336FF2AEA382CA","basic_string/BasicString.allocator.html":"949CC3EC606C4E945CFCC74BADD61CDB","basic_string/String.html":"0E0592A26DA2455B3F24EDFFB4D0CA63","basic_string/BasicString.toHash.html":"88DFB1CABE7C6288E83D859E8C075622","basic_string/BasicString.opAssign.html":"E6CD1567399360662C2EFC9877D36D8D","sitemap.xml":"FF4B8A73D5EBE7ED1DD124960DF821A2","index.html":"93A86874C783CDACC48099B29837106C","basic_string/BasicString.opDollar.html":"218E8DC529D4A2B64117B1FE2A1B6EFE","basic_string/BasicString.valid.html":"76D7AB8134780D06938421E4CA6E07CA","symbols.js":"976EF92D61586BE396EAC20BBA63C1E5","basic_string/BasicString.append.html":"4473B07324C800507242EF9A0341A4A8","basic_string/BasicString.frontCodePoint.html":"A4135BE8D5231AF387A41AF4C5BDF904","basic_string/BasicString.opIndex.html":"672678F458BA439A1383384FB83C10B0","basic_string/BasicString.erase.html":"E718C513569699430551B04B9A5424D7","basic_string.html":"538C2590CE829E45A0BACBB7DB74E5AF","basic_string/BasicString.front.html":"09659074D0648D619C2B7710E42E7976","basic_string/BasicString.popBackCodePoint.html":"23C98C00512F89761A1A22418B71D07E","basic_string/BasicString.Allocator.html":"C35B0C7C941D9158DCD525C04D3C6DDE","basic_string/BasicString.insert.html":"057C4FD1A232BCB830E026E0168CA882","basic_string/BasicString.back.html":"538086E18B5C314A930C701E9DF6215E","basic_string/BasicString.replace.html":"8EC3AC54522C50F765BBAB8A64E60F4E","basic_string/BasicString.hasStatelessAllocator.html":"D75526B56E75DC49B163F64107DB3C98","basic_string/BasicString.opIndexAssign.html":"59F196550DCEA415DFE02011E9860678","basic_string/BasicString.MinimalCapacity.html":"A7E07348E86BB2DF4AE25519C7A4DBA0","basic_string/BasicString.reserve.html":"B781DCE8BF789D68FFA59AF167CEB292","basic_string/BasicString.resize.html":"CF25CA1364C6ED6752DDD9513C39C6E6","basic_string/BasicString.release.html":"A5B21687EC430C3599211CF9AF42E878","basic_string/BasicString.opOpAssign.html":"54DB0E4E578F3F922D8FD941658F6FDA","basic_string/BasicString.small.html":"9FF98601BD83F43048AF3156774A2BBB","basic_string/isBasicString.html":"B2BE0C1D8EBA6EFF12656A40DE8CB414"}
2 changes: 1 addition & 1 deletion src/basic_string/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ if(isSomeChar!_Char && is(Unqual!_Char == _Char)){
return move(result);
}

/// dito
/// ditto
public static typeof(this) build(Args...)(Allocator allocator, auto ref scope const Args args){
import core.lifetime : forward;

Expand Down

0 comments on commit 7146aa5

Please sign in to comment.