pike.git / lib / modules / Search.pmod / Query.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Query.pmod:1:         // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Query.pmod,v 1.29 2004/08/19 14:46:43 noring Exp $ + // $Id: Query.pmod,v 1.30 2004/12/29 13:27:22 anders Exp $      static function(string,int:string) blobfeeder(Search.Database.Base db,    array words)   {    mapping state = mkmapping(words,allocate(sizeof(words)));    mapping(string:mapping(int:string)) blobcache = ([ ]);    return lambda( string word, int foo )    {    return db->get_blob(word, state[word]++, blobcache);    };
pike.git/lib/modules/Search.pmod/Query.pmod:191:    _WhiteFish.DateSet global_dateset = db->get_global_dateset();       if(!sizeof(global_dateset))    {    push(global_dateset);    break;    }       int t_low, t_high;    catch { -  t_low = t_high = Calendar.ISO.dwim_day(q->date)->unix_time(); +  t_low = t_high = Calendar.ISO.dwim_day(String.trim_whites(q->date))->unix_time();    t_high += 24*60*60-1; // Add 24 h to end of the day.    };       // Fix to allow year-month "%04d-%02d" timerange.    if(!t_low && sscanf(q->date, "%4d-%2d", int y, int m) == 2)    catch {    Calendar.ISO.Month month = Calendar.ISO.Month(y, m);    t_low = month->unix_time();    t_high = month->next()->unix_time()-1;    };