View source code Display the source code in std/uni.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

std.uni.inversion_list.this - multiple declarations

Template InversionList.this

Construct from another code point set of any type.

Arguments

template this(Set);

Functions

Function name Description
this

Template InversionList.this

Construct a set from a forward range of code point intervals.

Arguments

template this(Range);

Functions

Function name Description
this

Template InversionList.this

Construct a set from plain values of code point intervals.

Arguments

template this();

Functions

Function name Description
this

Example

import std.algorithm;
auto set = CodepointSet('a', 'z'+1, 'а', 'я'+1);
foreach(v; 'a'..'z'+1)
    assert(set[v]);
// Cyrillic lowercase interval
foreach(v; 'а'..'я'+1)
    assert(set[v]);
//specific order is not required, intervals may interesect
auto set2 = CodepointSet('а', 'я'+1, 'a', 'd', 'b', 'z'+1);
//the same end result
assert(set2.byInterval.equal(set.byInterval));

Authors

Dmitry Olshansky

License

Boost License 1.0.

Comments