Skip to content

Commit 7bd3b2e

Browse files
committed
document or make private public symbols
1 parent 71bbe18 commit 7bd3b2e

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

std/uni.d

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,23 +1898,27 @@ public alias CodepointSet = InversionList!GcPolicy;
18981898
*/
18991899
public struct CodepointInterval
19001900
{
1901-
pure:
1902-
uint[2] _tuple;
1903-
alias _tuple this;
1901+
uint[2] tuple;
1902+
alias tuple this;
19041903

19051904
@safe pure nothrow @nogc:
1906-
1905+
/// Constructor
19071906
this(uint low, uint high)
19081907
{
1909-
_tuple[0] = low;
1910-
_tuple[1] = high;
1908+
tuple[0] = low;
1909+
tuple[1] = high;
19111910
}
1911+
1912+
/// Support for equality testing
19121913
bool opEquals(T)(T val) const
19131914
{
19141915
return this[0] == val[0] && this[1] == val[1];
19151916
}
1916-
@property ref inout(uint) a() inout { return _tuple[0]; }
1917-
@property ref inout(uint) b() inout { return _tuple[1]; }
1917+
1918+
/// Access to the interval members
1919+
@property ref inout(uint) a() inout { return tuple[0]; }
1920+
/// ditto
1921+
@property ref inout(uint) b() inout { return tuple[1]; }
19181922
}
19191923

19201924
/**
@@ -7983,7 +7987,7 @@ version(std_uni_bootstrap)
79837987
{
79847988
// old version used for bootstrapping of gen_uni.d that generates
79857989
// up to date optimal versions of all of isXXX functions
7986-
@safe pure nothrow @nogc public bool isWhite(dchar c)
7990+
package @safe pure nothrow @nogc bool isWhite(dchar c)
79877991
{
79887992
import std.ascii : isWhite;
79897993
return isWhite(c) ||

0 commit comments

Comments
 (0)