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.69 1997/09/07 16:42:58 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.70 1997/09/11 21:15:17 js Exp $";   constant thread_safe=1;      #include <module.h>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image
Roxen.git/server/modules/graphics/graphic_text.pike:781:    string option=MIME.encode_base64(Gz.deflate()->deflate(in));    if((search(in,"/")!=-1) || (search(in,"/.")!=-1)) return url_cache[in]=option;    string res="";    for(int i=0; i<strlen(in); i++)    switch(in[i])    {    case 'a'..'z':    case 'A'..'Z':    case '0'..'9':    case '.': case ',': case '!': -  case ':': +     res += in[i..i];    break;    default:    res += sprintf("%%%02x", in[i]);    }    if(strlen(res) < strlen(option)) return url_cache[in]=res;    return url_cache[in]=option;   }      int args_restored = 0;