Skip to content
Closed
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
15 changes: 8 additions & 7 deletions std/uni.d
Original file line number Diff line number Diff line change
Expand Up @@ -2094,20 +2094,21 @@ public:

/**
Get range that spans all of the $(CODEPOINT) intervals in this $(LREF InversionList).
*/
@property auto byInterval()
{
return Intervals!(typeof(data))(data);
}

Example:
-----------
///
unittest
{
import std.algorithm.comparison : equal;
import std.typecons : tuple;

auto set = CodepointSet('A', 'D'+1, 'a', 'd'+1);

assert(set.byInterval.equal([tuple('A','E'), tuple('a','e')]));
-----------
*/
@property auto byInterval()
{
return Intervals!(typeof(data))(data);
}

/**
Expand Down