Roxen.git / server / base_server / prototypes.pike

version» Context lines:

Roxen.git/server/base_server/prototypes.pike:36:       string get_warnings();    int get_flags();    void set_flags( int flags );    int check_visibility( RequestID id,    int more_mode,    int expert_mode,    int devel_mode,    int initial,    int|void variable_in_cfif ); -  void set_invisibility_check_callback( function(RequestID,Variable:int) cb ); +  this_program set_invisibility_check_callback( function(RequestID,Variable:int) cb );    function(Variable:void) get_changed_callback( ); -  void set_changed_callback( function(Variable:void) cb ); -  void add_changed_callback( function(Variable:void) cb ); +  this_program set_changed_callback( function(Variable:void) cb ); +  this_program add_changed_callback( function(Variable:void) cb );    function(RequestID,Variable:int) get_invisibility_check_callback() ;    string doc( );    string name( );    string type_hint( );    mixed default_value();    void set_warning( string to );    int set( mixed to );    int low_set( mixed to );    mixed query();    int is_defaulted();
Roxen.git/server/base_server/prototypes.pike:2942:    protected string charset_name(function|string what)    {    if (what == string_to_unicode) return "ISO10646-1";    if (what == string_to_utf8) return "UTF-8";    return upper_case((string) what);    }       protected function charset_function(function|string what, int allow_entities)    {    if (functionp(what)) return what; -  switch (what) { +  switch (upper_case(what)) {    case "ISO-10646-1":    case "ISO10646-1": -  +  case "ISO-10646": +  case "ISO10646":    return string_to_unicode;       case "UTF-8": -  +  case "UTF8":    return string_to_utf8;       default:    // Use entity fallback if content type allows it    function fallback_func =    allow_entities &&    lambda(string char) {    return sprintf("&#x%x;", char[0]);    };