pike.git / lib / modules / Calendar.pmod / TimeRanges.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:308:    TimeRange ``* (int n) {return `* (n);}    TimeRange `*(int|float n)    {    return set_size((int)n,this);    }      //! method array(TimeRange) `/(int|float n)   //! method array(TimeRange) split(int|float n, void|TimeRange with)   //! This divides the called timerange into   //! n pieces. The returned timerange type - //! is not neccesarily of the same type as the called one. + //! is not necessarily of the same type as the called one.   //! If the optional timerange is specified then the resulting timeranges   //! will be multiples of that range (except for the last one).   //!   //! known bugs:   //! These are currently not defined for   //! <ref to=SuperTimeRange>supertimeranges</ref>.      //! method int `/(TimeRange with)   //! method int how_many(TimeRange with)   //! This calculates how many instances of the given
pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:681:   //! known bugs:   //! _equal is not currently possible to overload,   //! due to weird bugs, so equal uses `== for now.       int(0..1) `==(mixed what)    {    return objectp(what) && functionp(what->ruleset) &&    what->ruleset()==ruleset() && equals(what);    }    -  int __hash(); +  protected int __hash();      // int(0..1) _equal(TimeRange what)   // {   // return equals(what);   // }      //! method TimeRange `&(TimeRange with)   //! Gives the cut on the called time period   //! with another time period. The result is   //! zero if the two periods doesn't overlap.
pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:1252:    this_program subtract(TimeRange with, mixed ...extra)    {    return this;    }       int(1..1) `!()    {    return 1;    }    +  protected int __hash() +  { +  return 0; +  } +     protected string _sprintf(int t)    {    switch (t)    {    case 'O': return "NullTimeRange";    case 't': return "Calendar."+calendar_name()+".NullTimeRange";    default: return ::_sprintf(t);    }    }   }