Roxen.git / server / modules / misc / wapadapter.pike

version» Context lines:

Roxen.git/server/modules/misc/wapadapter.pike:4:   #define _id_misc ([mapping(string:mixed)]id->misc)   #define _context_misc ([mapping(string:mixed)] RXML_CONTEXT->misc)   #define _stat _context_misc[" _stat"]   #define _error _context_misc[" _error"]   //#define _extra_heads _context_misc[" _extra_heads"]   #define _rettext _context_misc[" _rettext"]      inherit "module";      constant thread_safe = 1; - constant cvs_version = "$Id: wapadapter.pike,v 1.15 2009/05/07 14:15:55 mast Exp $"; + constant cvs_version = "$Id$";      constant module_type = MODULE_FIRST|MODULE_FILE_EXTENSION|MODULE_TAG;   constant module_name = "WAP Adapter";   constant module_doc = "Improves supports flags and variables as well as "    "doing a better job finding MIME types than the content type module for WAP clients. "    "It also defines the tag &lt;wimg&gt; that converts the image to an apropriate format for the client.";      #include <module.h>   #include <request_trace.h>   
Roxen.git/server/modules/misc/wapadapter.pike:62:    case 0:    case "iso-8859-1":    break;    case "utf-8":    data = utf8_to_string( data );    break;    case "unicode":    data = unicode_to_string( data );    break;    default: -  data = [string] (Locale.Charset.decoder( [string]_id_misc->input_charset ) +  data = [string] (Charset.decoder( [string]_id_misc->input_charset )    ->feed( data )    ->drain());    break;    }       RXML.Context context;    string rxml;   #ifdef MAY_OVERRIDE_RXML_PARSING    if(id->prestate->norxml)    rxml = data;