Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.70 2001/11/01 14:58:53 grubba Exp $ + // $Id$      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1296:    inherit Variable;    constant type="List";    int width = 40;       array(string|array(string)) verify_set(mixed to)    {    if (stringp(to)) {    // Backward compatibility junk...    return ({ "Compatibility: "    "Converted from TYPE_STRING to TYPE_STRING_LIST.\n", -  (to-" ")/"," }); +  map(to/",", global.String.trim_all_whites), +  });    }    return ::verify_set(to);    }       string transform_to_form( mixed what )    //! Override this function to do the value->form mapping for    //! individual elements in the array.    {    return (string)what;    }