pike.git / lib / modules / ADT.pmod / Table.pmod

version» Context lines:

pike.git/lib/modules/ADT.pmod/Table.pmod:19:   class table {    protected private mapping fieldmap;    protected private array table, fields, types;       protected private array|int remap(array|string|int cs, int|void forgive)    {    array v = ({});    int ap = arrayp(cs);    if(!ap) cs = ({ cs });    foreach(cs, string|int f) -  if(zero_type(intp(f)?f:fieldmap[lower_case(f)])) { +  if(undefinedp(intp(f)?f:fieldmap[lower_case(f)])) {    if(!forgive)    TABLE_ERR("Unknown field '"+f+"'");    } else    v += ({ intp(f)?f:fieldmap[lower_case(f)] });    return ap?v:v[0];    }       this_program copy(array|void tab, array|void fie, array|void typ)    {    return this_program(tab||table,fie||fields,typ||types);