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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Timezone.pmod:1167:       if (!all_rules) all_rules=get_all_rules();      #ifdef RTTZC_TIMING    int t=time(1);    float t1=time(t);   #endif       Zone z=Zone(s);    int n=0; +  + #if constant(Regexp.PCRE.Studied) +  if (has_value(s,"\\") || +  has_value(s,"(") || +  has_value(s,"[")) +  return 0; +  Regexp.PCRE.Studied re=Regexp.PCRE.Studied("[Zz]one[ \t]*"+s+"[ \t]"); + #endif +     for (;;)    { -  + #if constant(Regexp.PCRE.Studied) +  array(int)|int v=re->exec(all_rules,n); +  if (!arrayp(v) || !sizeof(v)) return UNDEFINED; +  n=v[0]; + #else    n=search(all_rules,s,n); -  + #endif   #ifdef RTTZC_DEBUG    werror("hit at: %O\n",n);   #endif    if (n==-1)    return UNDEFINED;    int i=max(n-100,0)-1,j;    do i=search(all_rules,"\nZone",(j=i)+1); while (i<n && i!=-1);       if (j<n &&    sscanf(all_rules[j..j+8000],"\nZone%*[ \t]%[^ \t]%*[ \t]%s\n%s",