Branch: Tag:

2000-09-16

2000-09-16 19:57:41 by Martin Nilsson <mani@lysator.liu.se>

Array.map -> map

Rev: server/modules/tags/rxmltags.pike:1.175
Rev: server/modules/tags/tablify.pike:1.56

7:   #define _rettext id->misc->defines[" _rettext"]   #define _ok id->misc->defines[" _ok"]    - constant cvs_version = "$Id: rxmltags.pike,v 1.174 2000/09/15 02:01:07 nilsson Exp $"; + constant cvs_version = "$Id: rxmltags.pike,v 1.175 2000/09/16 19:56:19 nilsson Exp $";   constant thread_safe = 1;   constant language = roxen->language;   
697:    201, 204, 188, 121, 119, 195, 198, 198, 199, 148, 121, 203, 201, 204,    188, 121, 149});    array do_return(RequestID id) { -  result=Array.map(space, lambda(int|string c) { +  result=map(space, lambda(int|string c) {    return intp(c)?(string)({c-(sizeof(space))}):c;    } )*"";    }
841:    string get_data(string var, mapping args) {    RXML.Context context=RXML.get_context();    if(var=="full") -  return Array.map(sort(context->list_var(args->scope)), +  return map(sort(context->list_var(args->scope)),    lambda(string s) {    return sprintf("%s=%O", s, context->user_get_var(s, args->scope) );    } ) * "\n";
860:    string result = "";    foreach(sort(context->list_scopes()), string scope) {    result += scope+"\n"; -  result += Roxen.html_encode_string(Array.map(sort(context->list_var(args->scope)), +  result += Roxen.html_encode_string(map(sort(context->list_var(args->scope)),    lambda(string s) {    return sprintf("%s.%s=%O", scope, s,    context->get_var(s, args->scope) );