pike.git / lib / modules / Tools.pmod / AutoDoc.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Tools.pmod/AutoDoc.pmod/module.pmod:31:      static string xmlquote(string s) {    return replace(s, ({ "<", ">", "&" }), ({ "&lt;", "&gt;", "&amp;" }));   }      static string attributequote(string s) {    return replace(s, ({ "<", ">", "\"", "'", "&" }),    ({ "&lt;", "&gt;", "&#34;", "&#39;", "&amp;" }));   }    - static string writeattributes(mapping(string:string) attrs) { + static string writeattributes(mapping(string:string) attrs) + {    string s = ""; -  foreach (indices(attrs || ([]) ), string attr) { +  foreach(sort(indices(attrs || ([]))), string attr)    s += sprintf(" %s='%s'", attr, attributequote(attrs[attr])); -  } +     return s;   }      static string opentag(string t, mapping(string:string)|void attributes) {    return "<" + t + writeattributes(attributes) + ">";   }      static string closetag(string t) { return "</" + t + ">"; }      static string xmltag(string t, string|mapping(string:string)|void arg1,