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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Timezone.pmod:505:    case 4: return _magic_timezone("UTC"+a+b[..1]+":"+b[2..]);    case 6:    return _magic_timezone("UTC"+a+b[..1]+":"+b[2..3]+":"+b[4..]);    }    }    else if (a=="+-") return _magic_timezone("-0"+b);       return ::`[](replace(tz,"-/+"/1,"__p"/1));   }    - Calendar.Rule.Timezone `[](string tz) + protected Calendar.Rule.Timezone `[](string tz)   {    mixed p=::`[](tz);    if (!p && tz=="locale") return locale=_locale();       if ((<"make_new_timezone","decode_timeskew">)[tz]) return p;       if (!p) p=_magic_timezone(tz);    if (programp(p) || functionp(p)) return p();    return p;   }
pike.git/lib/modules/Calendar.pmod/Timezone.pmod:627:    }       protected string _sprintf(int t)    {    return t=='O' &&    sprintf("Shift(%s,%d%s,%+d,%O)",    dayrule || "<unset>", time,    timetype || "<unset>", offset, s);    }    -  int `==(Shift other) +  protected int `==(Shift other)    {    return ( dayrule==other->dayrule &&    time==other->time &&    timetype==other->timetype &&    offset==other->offset &&    s==other->s );    }    int __equal (Shift other) {return `== (other);}       constant wday=(["Mon":1,"Tue":2,"Wed":3,"Thu":4,"Fri":5,"Sat":6,"Sun":7]);
pike.git/lib/modules/Calendar.pmod/Timezone.pmod:698:    return "LDAY ("+(nleapy->month(mon)->day(d)->year_day())+    ","+wd+")";       return "LDAYL("+(nleapy->month(mon)->day(d)->year_day())+    ","+wd+")";    }    else    complain("unknown rule method %O\n",rule);    }    -  Shift|array ``+(array|Shift s) +  protected Shift|array ``+(array|Shift s)    {    if (!s) return this;    if (!arrayp(s)) s=({s});    return s+({this});    }       int ldayl_is_fix_l(int d1,int wd,int d2,int yn1,int yn2)    {    return 0;    // object y1=Year(yn1);
pike.git/lib/modules/Calendar.pmod/Timezone.pmod:1334:    map(files,    lambda(string fn)    {    return (master()->master_read_file(base_path+fn) ||    (error("Failed to open file %O\n",base_path+fn), "")) - "\r";    })*"\n";    }       class Dummymodule (function(string:mixed) f)    { -  mixed `[](string s) { return f(s); } +  protected mixed `[](string s) { return f(s); }    }      // #define RTTZC_DEBUG   // #define RTTZC_TIMING       void parse_all_rules()    {    if (!all_rules) all_rules=get_all_rules();   #ifdef RTTZC_TIMING    float t1=time(t);