Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions doc/ref/stdlib.html
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,14 @@ <h4 id="std-stripChars">
<p>
Example: <code>std.stripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbb"</code>.
</p>
<p>
The <code>chars</code> parameter may also be an array of single-character strings. When an
array is provided, only single-character string elements are used as characters to strip;
non-string elements and multi-character strings are silently ignored.
</p>
<p>
Example: <code>std.stripChars("abcba", ["a", "c"])</code> yields <code>"bcb"</code>.
</p>
</div>
<div style="clear: both"></div>
</div>
Expand Down Expand Up @@ -660,6 +668,14 @@ <h4 id="std-lstripChars">
<p>
Example: <code>std.lstripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbbaacc"</code>.
</p>
<p>
The <code>chars</code> parameter may also be an array of single-character strings. When an
array is provided, only single-character string elements are used as characters to strip;
non-string elements and multi-character strings are silently ignored.
</p>
<p>
Example: <code>std.lstripChars("abcba", ["a", "c"])</code> yields <code>"bcba"</code>.
</p>
</div>
<div style="clear: both"></div>
</div>
Expand Down Expand Up @@ -695,6 +711,14 @@ <h4 id="std-rstripChars">
<p>
Example: <code>std.rstripChars("cacabbbbaacc", "ac")</code> yields <code>"cacabbbb"</code>.
</p>
<p>
The <code>chars</code> parameter may also be an array of single-character strings. When an
array is provided, only single-character string elements are used as characters to strip;
non-string elements and multi-character strings are silently ignored.
</p>
<p>
Example: <code>std.rstripChars("abcba", ["a", "c"])</code> yields <code>"abcb"</code>.
</p>
</div>
<div style="clear: both"></div>
</div>
Expand Down