Range: Corrected range symbols in comments

This commit is contained in:
Paul Beckingham 2016-04-26 08:30:21 -04:00
parent a271e0b901
commit fd4bd5fbc0

View file

@ -62,27 +62,27 @@ bool Range::ended () const
////////////////////////////////////////////////////////////////////////////////
// Detect the following overlap cases:
//
// this |--------|
// A |--------|
// B |--------|
// C |----|
// D |--------|
// E |--------|
// F |-------------|
// G |...
// H |...
// I |...
// this [--------)
// A [--------)
// B [--------)
// C [----)
// D [--------)
// E [--------)
// F [-------------)
// G [...
// H [...
// I [...
//
// this |...
// A |--------|
// B |--------|
// C |----|
// D |--------|
// E |--------|
// F |-------------|
// G |...
// H |...
// I |...
// this [...
// A [--------)
// B [--------)
// C [----)
// D [--------)
// E [--------)
// F [-------------)
// G [...
// H [...
// I [...
//
bool Range::overlap (const Range& other) const
{
@ -103,27 +103,27 @@ bool Range::overlap (const Range& other) const
////////////////////////////////////////////////////////////////////////////////
// Calculate the following intersection cases:
//
// this |--------|
// A |--------|
// B |--------|
// C |----|
// D |--------|
// E |--------|
// F |-------------|
// G |...
// H |...
// I |...
// this [--------)
// A [--------)
// B [--------)
// C [----)
// D [--------)
// E [--------)
// F [-------------)
// G [...
// H [...
// I [...
//
// this |...
// A |--------|
// B |--------|
// C |----|
// D |--------|
// E |--------|
// F |-------------|
// G |...
// H |...
// I |...
// this [...
// A [--------)
// B [--------)
// C [----)
// D [--------)
// E [--------)
// F [-------------)
// G [...
// H [...
// I [...
//
Range Range::intersect (const Range& other) const
{
@ -156,27 +156,27 @@ Range Range::intersect (const Range& other) const
////////////////////////////////////////////////////////////////////////////////
// Consider the following overlap cases:
//
// this |--------|
// A |--------|
// B |--------|
// C |----|
// D |--------|
// E |--------|
// F |-------------|
// G |...
// H |...
// I |...
// this [--------)
// A [--------)
// B [--------)
// C [----)
// D [--------)
// E [--------)
// F [-------------)
// G [...
// H [...
// I [...
//
// this |...
// A |--------|
// B |--------|
// C |----|
// D |--------|
// E |--------|
// F |-------------|
// G |...
// H |...
// I |...
// this [...
// A [--------)
// B [--------)
// C [----)
// D [--------)
// E [--------)
// F [-------------)
// G [...
// H [...
// I [...
//
std::vector <Range> Range::subtract (const Range& other) const
{