Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:5498:       void refresh_arg(string id)    //! Indicate that the entry @[id] needs to be included in the next    //! @[write_dump]. @[id] must be an existing entry.    {    GET_DB();    QUERY("UPDATE "+name+"2 SET rep_time=NOW() WHERE id = %s", id);    }   }    - mapping cached_decoders = ([]); + mapping(string:Charset.Decoder) cached_decoders = ([]);   string decode_charset( string charset, string data )   {    // FIXME: This code is probably not thread-safe!    if( charset == "iso-8859-1" ) return data;    if( !cached_decoders[ charset ] ) -  cached_decoders[ charset ] = Locale.Charset.decoder( charset ); +  cached_decoders[ charset ] = Charset.decoder( charset );    data = cached_decoders[ charset ]->feed( data )->drain();    cached_decoders[ charset ]->clear();    return data;   }      //! Check if a cache key has been marked invalid (aka stale).   int(0..1) invalidp(CacheKey key)   {    catch {    return !key || (key->invalidp && key->invalidp());