Changeset 98778a7 in tol
- Timestamp:
- Mar 26, 2013, 10:22:40 AM (14 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 1af36f5
- Parents:
- a6be476
- Location:
- tol/btol/timeset_type
- Files:
-
- 2 edited
-
tms.cpp (modified) (2 diffs)
-
tmsgrav.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/timeset_type/tms.cpp
ra6be476 r98778a7 723 723 CheckCache(this); 724 724 if(nth == 0) { return((!dte.HasValue()||Includes(dte))?dte:BDate::Unknown()); } 725 if(nth == -nth) 726 { 727 return(BDate::End()); 728 } 725 729 if(nth < 0) { return(Prev(dte, -nth)); } 726 730 if(dte.IsTheEnd()) { return(BDate::End()); } … … 770 774 CheckCache(this); 771 775 if(nth == 0) { return((!dte.HasValue()||Includes(dte))?dte:BDate::Unknown()); } 776 if(nth == -nth) 777 { 778 return(BDate::Begin()); 779 } 772 780 if(nth < 0) { return(Next(dte, -nth)); } 773 781 if(dte.IsTheBegin()) { return(BDate::Begin()); } -
tol/btol/timeset_type/tmsgrav.cpp
ra6be476 r98778a7 1591 1591 //-------------------------------------------------------------------- 1592 1592 { 1593 if(x.IsUnknown() || x.IsTheEnd () )1593 if(x.IsUnknown() || x.IsTheEnd () || x.IsTheBegin ()) 1594 1594 { return(x); } 1595 1595 if(n==0) { return(icu_->Successor(x)); } … … 1610 1610 { 1611 1611 r *= 2; 1612 if(r==-r) 1613 { 1614 return(BDate::End()); 1615 } 1612 1616 if(ua>x) 1613 1617 { … … 1675 1679 //-------------------------------------------------------------------- 1676 1680 { 1677 if(x.IsUnknown() || x.IsTheBegin () )1681 if(x.IsUnknown() || x.IsTheBegin () || x.IsTheEnd ()) 1678 1682 { return(x); } 1679 1683 if(n==0) { return(icu_->Predecessor(x)); } … … 1694 1698 { 1695 1699 r *= 2; 1700 if(r==-r) 1701 { 1702 return(BDate::Begin()); 1703 } 1696 1704 if(ua>=x) 1697 1705 {
Note: See TracChangeset
for help on using the changeset viewer.
