Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.165 1999/05/30 21:13:32 mast Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.166 1999/06/10 14:59:39 jonasw Exp $";   constant thread_safe=1;      #include <config.h>   #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0
Roxen.git/server/modules/graphics/graphic_text.pike:547:   }      roxen.ImageCache image_cache;      void start(int|void val, object|void conf)   {    image_cache = roxen.ImageCache( "gtext", draw_callback );   }      constant nbsp = iso88591["&nbsp;"]; - constant replace_from = indices( iso88591 )+ ({"&ss;","&lt;","&gt;","&amp",}); + constant replace_from = indices( iso88591 )+ ({"&ss;","&lt;","&gt;","&amp;",});   constant replace_to = values( iso88591 ) + ({ nbsp, "<", ">", "&", });      #define simplify_text( from ) replace(from,replace_from,replace_to)         mixed draw_callback(mapping args, object id)   {    array err;    mixed data;    int elapsed;