@@ -545,18 +545,19 @@ <h4 id="stripChars">std.stripChars(str, chars)</h4>
545
545
< div class ="hgroup ">
546
546
< div class ="hgroup-inline ">
547
547
< div class ="panel ">
548
+ < em > Available since version 0.15.0.</ em >
548
549
< p > Removes characters < code > chars</ code > from the beginning and from the end of < code > str</ code > .</ p >
549
- </ div >
550
- < p >
551
- Example: < code > std.stripChars(" test test test ", " ") </ code > yields < code > "test test test" </ code > .
552
- </ p >
553
- < p >
554
- Example: < code > std.stripChars("aaabbbbcccc", "ac") </ code > yields < code > "bbbb" </ code > .
555
- </ p >
556
- < p >
557
- Example: < code > std.stripChars("cacabbbbaacc", "ac") </ code > yields < code > "bbbb" </ code > .
558
- </ p >
559
- < em > Available in upcoming version. </ em >
550
+ < p >
551
+ Example: < code > std.stripChars(" test test test ", " ") </ code > yields < code > "test test test" </ code > .
552
+ </ p >
553
+ < p >
554
+ Example: < code > std.stripChars("aaabbbbcccc", "ac") </ code > yields < code > "bbbb" </ code > .
555
+ </ p >
556
+ < p >
557
+ Example: < code > std.stripChars("cacabbbbaacc", "ac") </ code > yields < code > "bbbb" </ code > .
558
+ </ p >
559
+ </ div >
560
+
560
561
< div style ="clear: both "> </ div >
561
562
</ div >
562
563
</ div >
@@ -574,18 +575,18 @@ <h4 id="lstripChars">std.lstripChars(str, chars)</h4>
574
575
< div class ="hgroup ">
575
576
< div class ="hgroup-inline ">
576
577
< div class ="panel ">
578
+ < em > Available since version 0.15.0.</ em >
577
579
< p > Removes characters < code > chars</ code > from the beginning of < code > str</ code > .</ p >
578
- </ div >
579
- < p >
580
- Example: < code > std.lstripChars(" test test test ", " ")</ code > yields < code > "test test test "</ code > .
581
- </ p >
582
- < p >
583
- Example: < code > std.lstripChars("aaabbbbcccc", "ac")</ code > yields < code > "bbbbcccc"</ code > .
584
- </ p >
585
- < p >
586
- Example: < code > std.lstripChars("cacabbbbaacc", "ac")</ code > yields < code > "bbbbaacc"</ code > .
587
- </ p >
588
- < em > Available in upcoming version.</ em >
580
+ < p >
581
+ Example: < code > std.lstripChars(" test test test ", " ")</ code > yields < code > "test test test "</ code > .
582
+ </ p >
583
+ < p >
584
+ Example: < code > std.lstripChars("aaabbbbcccc", "ac")</ code > yields < code > "bbbbcccc"</ code > .
585
+ </ p >
586
+ < p >
587
+ Example: < code > std.lstripChars("cacabbbbaacc", "ac")</ code > yields < code > "bbbbaacc"</ code > .
588
+ </ p >
589
+ ` </ div >
589
590
< div style ="clear: both "> </ div >
590
591
</ div >
591
592
</ div >
@@ -603,18 +604,18 @@ <h4 id="rstripChars">std.rstripChars(str, chars)</h4>
603
604
< div class ="hgroup ">
604
605
< div class ="hgroup-inline ">
605
606
< div class ="panel ">
607
+ < em > Available since version 0.15.0.</ em >
606
608
< p > Removes characters < code > chars</ code > from the beginning and from the end of < code > str</ code > .</ p >
609
+ < p >
610
+ Example: < code > std.rstripChars(" test test test ", " ")</ code > yields < code > " test test test"</ code > .
611
+ </ p >
612
+ < p >
613
+ Example: < code > std.rstripChars("aaabbbbcccc", "ac")</ code > yields < code > "aaabbbb"</ code > .
614
+ </ p >
615
+ < p >
616
+ Example: < code > std.rstripChars("cacabbbbaacc", "ac")</ code > yields < code > "cacabbbb"</ code > .
617
+ </ p >
607
618
</ div >
608
- < p >
609
- Example: < code > std.rstripChars(" test test test ", " ")</ code > yields < code > " test test test"</ code > .
610
- </ p >
611
- < p >
612
- Example: < code > std.rstripChars("aaabbbbcccc", "ac")</ code > yields < code > "aaabbbb"</ code > .
613
- </ p >
614
- < p >
615
- Example: < code > std.rstripChars("cacabbbbaacc", "ac")</ code > yields < code > "cacabbbb"</ code > .
616
- </ p >
617
- < em > Available in upcoming version.</ em >
618
619
< div style ="clear: both "> </ div >
619
620
</ div >
620
621
</ div >
@@ -977,10 +978,10 @@ <h4 id="parseHex">std.parseHex(str)</h4>
977
978
< div class ="hgroup-inline ">
978
979
< div class ="panel ">
979
980
< h4 id ="parseJson "> std.parseJson(str)</ h4 >
981
+ < em > Available since version 0.13.0.</ em >
980
982
< p >
981
983
Parses a JSON string.
982
984
</ p >
983
- < em > Available since version 0.13.0</ em >
984
985
< p > Example: < code > std.parseJson('{"foo": "bar"}')</ code > yields < code > {"foo": "bar"}</ code > .</ p >
985
986
</ div >
986
987
< div style ="clear: both "> </ div >
@@ -991,7 +992,7 @@ <h4 id="parseJson">std.parseJson(str)</h4>
991
992
< div class ="hgroup-inline ">
992
993
< div class ="panel ">
993
994
< h4 id ="encodeUTF8 "> std.encodeUTF8(str)</ h4 >
994
- < em > Available since version 0.13.0</ em >
995
+ < em > Available since version 0.13.0. </ em >
995
996
< p >
996
997
Encode a string using < a href ="https://en.wikipedia.org/wiki/UTF-8 "> UTF8</ a > . Returns an array of numbers
997
998
representing bytes.
@@ -1013,7 +1014,7 @@ <h4 id="decodeUTF8">std.decodeUTF8(arr)</h4>
1013
1014
< div class ="hgroup ">
1014
1015
< div class ="hgroup-inline ">
1015
1016
< div class ="panel ">
1016
- < em > Available since version 0.13.0</ em >
1017
+ < em > Available since version 0.13.0. </ em >
1017
1018
< p >
1018
1019
Decode an array of numbers representing bytes using < a href ="https://en.wikipedia.org/wiki/UTF-8 "> UTF8</ a > .
1019
1020
Returns a string.
@@ -1418,11 +1419,11 @@ <h4 id="member">std.member(arr, x)</h4>
1418
1419
< div class ="hgroup ">
1419
1420
< div class ="hgroup-inline ">
1420
1421
< div class ="panel ">
1422
+ < em > Available since version 0.15.0.</ em >
1421
1423
< p >
1422
1424
Returns whether < code > x</ code > occurs in < code > arr</ code > .
1423
1425
Argument < code > arr</ code > may be an array or a string.
1424
1426
</ p >
1425
- < em > Available in upcoming version.</ em >
1426
1427
</ div >
1427
1428
< div style ="clear: both "> </ div >
1428
1429
</ div >
@@ -1660,14 +1661,14 @@ <h4 id="repeat">std.repeat(what, count)</h4>
1660
1661
< div class ="hgroup ">
1661
1662
< div class ="hgroup-inline ">
1662
1663
< div class ="panel ">
1664
+ < em > Available since version 0.15.0.</ em >
1663
1665
< p > Repeats an array or a string < code > what</ code > a number of times specified by an integer < code > count</ code > .</ p >
1664
1666
< p >
1665
1667
Example: < code > std.repeat([1, 2, 3], 3)</ code > yields < code > [1, 2, 3, 1, 2, 3, 1, 2, 3]</ code > .
1666
1668
</ p >
1667
1669
< p >
1668
1670
Example 2: < code > std.repeat("blah", 2)</ code > yields < code > "blahblah"</ code > .
1669
1671
</ p >
1670
- < em > Available in upcoming release.</ em >
1671
1672
</ div >
1672
1673
< div style ="clear: both "> </ div >
1673
1674
</ div >
@@ -1761,8 +1762,8 @@ <h4 id="sort">std.reverse(arr)</h4>
1761
1762
< div class ="hgroup ">
1762
1763
< div class ="hgroup-inline ">
1763
1764
< div class ="panel ">
1765
+ < em > Available since version 0.13.0.</ em >
1764
1766
< p > Reverses an array.</ p >
1765
- < em > Available since version 0.13.0</ em >
1766
1767
</ div >
1767
1768
< div style ="clear: both "> </ div >
1768
1769
</ div >
@@ -2101,11 +2102,11 @@ <h4 id="trace">std.trace(str, rest)</h4>
2101
2102
< div class ="hgroup ">
2102
2103
< div class ="hgroup-inline ">
2103
2104
< div class ="panel ">
2105
+ < em > Available since version 0.11.0.</ em >
2104
2106
< p >
2105
2107
Outputs the given string < code > str</ code > to stderr and
2106
2108
returns < code > rest</ code > as the result.
2107
2109
</ p >
2108
- < em > Available since version 0.11.0</ em >
2109
2110
< p > Example:</ p >
2110
2111
< p >
2111
2112
< pre > local conditionalReturn(cond, in1, in2) =
0 commit comments