mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Range: Corrected range symbols in comments
This commit is contained in:
parent
a271e0b901
commit
fd4bd5fbc0
1 changed files with 60 additions and 60 deletions
120
src/Range.cpp
120
src/Range.cpp
|
@ -62,27 +62,27 @@ bool Range::ended () const
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Detect the following overlap cases:
|
// Detect the following overlap cases:
|
||||||
//
|
//
|
||||||
// this |--------|
|
// this [--------)
|
||||||
// A |--------|
|
// A [--------)
|
||||||
// B |--------|
|
// B [--------)
|
||||||
// C |----|
|
// C [----)
|
||||||
// D |--------|
|
// D [--------)
|
||||||
// E |--------|
|
// E [--------)
|
||||||
// F |-------------|
|
// F [-------------)
|
||||||
// G |...
|
// G [...
|
||||||
// H |...
|
// H [...
|
||||||
// I |...
|
// I [...
|
||||||
//
|
//
|
||||||
// this |...
|
// this [...
|
||||||
// A |--------|
|
// A [--------)
|
||||||
// B |--------|
|
// B [--------)
|
||||||
// C |----|
|
// C [----)
|
||||||
// D |--------|
|
// D [--------)
|
||||||
// E |--------|
|
// E [--------)
|
||||||
// F |-------------|
|
// F [-------------)
|
||||||
// G |...
|
// G [...
|
||||||
// H |...
|
// H [...
|
||||||
// I |...
|
// I [...
|
||||||
//
|
//
|
||||||
bool Range::overlap (const Range& other) const
|
bool Range::overlap (const Range& other) const
|
||||||
{
|
{
|
||||||
|
@ -103,27 +103,27 @@ bool Range::overlap (const Range& other) const
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Calculate the following intersection cases:
|
// Calculate the following intersection cases:
|
||||||
//
|
//
|
||||||
// this |--------|
|
// this [--------)
|
||||||
// A |--------|
|
// A [--------)
|
||||||
// B |--------|
|
// B [--------)
|
||||||
// C |----|
|
// C [----)
|
||||||
// D |--------|
|
// D [--------)
|
||||||
// E |--------|
|
// E [--------)
|
||||||
// F |-------------|
|
// F [-------------)
|
||||||
// G |...
|
// G [...
|
||||||
// H |...
|
// H [...
|
||||||
// I |...
|
// I [...
|
||||||
//
|
//
|
||||||
// this |...
|
// this [...
|
||||||
// A |--------|
|
// A [--------)
|
||||||
// B |--------|
|
// B [--------)
|
||||||
// C |----|
|
// C [----)
|
||||||
// D |--------|
|
// D [--------)
|
||||||
// E |--------|
|
// E [--------)
|
||||||
// F |-------------|
|
// F [-------------)
|
||||||
// G |...
|
// G [...
|
||||||
// H |...
|
// H [...
|
||||||
// I |...
|
// I [...
|
||||||
//
|
//
|
||||||
Range Range::intersect (const Range& other) const
|
Range Range::intersect (const Range& other) const
|
||||||
{
|
{
|
||||||
|
@ -156,27 +156,27 @@ Range Range::intersect (const Range& other) const
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Consider the following overlap cases:
|
// Consider the following overlap cases:
|
||||||
//
|
//
|
||||||
// this |--------|
|
// this [--------)
|
||||||
// A |--------|
|
// A [--------)
|
||||||
// B |--------|
|
// B [--------)
|
||||||
// C |----|
|
// C [----)
|
||||||
// D |--------|
|
// D [--------)
|
||||||
// E |--------|
|
// E [--------)
|
||||||
// F |-------------|
|
// F [-------------)
|
||||||
// G |...
|
// G [...
|
||||||
// H |...
|
// H [...
|
||||||
// I |...
|
// I [...
|
||||||
//
|
//
|
||||||
// this |...
|
// this [...
|
||||||
// A |--------|
|
// A [--------)
|
||||||
// B |--------|
|
// B [--------)
|
||||||
// C |----|
|
// C [----)
|
||||||
// D |--------|
|
// D [--------)
|
||||||
// E |--------|
|
// E [--------)
|
||||||
// F |-------------|
|
// F [-------------)
|
||||||
// G |...
|
// G [...
|
||||||
// H |...
|
// H [...
|
||||||
// I |...
|
// I [...
|
||||||
//
|
//
|
||||||
std::vector <Range> Range::subtract (const Range& other) const
|
std::vector <Range> Range::subtract (const Range& other) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue