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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Event.pmod:1196:    TimeRange best=0;    foreach (events,Event e)    {    TimeRange y=e->previous(from,including);    if (!best || best->preceeds(y)) best=y;    else if (y->ends_with(best)) best|=y;    }    return best;    }    -  Event `|(Event ... with) +  Event `|(Event|SuperEvent ... with)    {    with-=({0});    return SuperEvent(events|with,flags,"?");    } -  Event ``|(Event with) { return `|(with); } +  Event ``|(Event|SuperEvent with) { return `|(with); }    -  Event `-(Event ...subtract) +  Event `-(Event|SuperEvent ...subtract)    {    array(Event) res=events-subtract;    if (res==events) return this_object();    return SuperEvent(res,flags&res,"?");    }       array(Event) cast(string to)    {    if (to[..4]=="array")    return events;