Method code for $code_lib._do_method_href()

[Turn off line numbering]
  1: arg method, object, options;
  2: var mod_method, prefix, postfix, index;
  3: 
  4: prefix = "";
  5: postfix = "";
  6: if (method[1] != ".") {
  7:     index = stridx(method, ".");
  8:     prefix = method.subrange(1, index);
  9:     method = method.subrange(index + 1);
 10: } else {
 11:     prefix = ".";
 12:     method = method.subrange(2);
 13: }
 14: postfix = "(";
 15: if (options)
 16:     options = options.mmap('join, "=").join("&");
 17: method = method.subrange(1, method.length() - 1);
 18: return prefix + "<A HREF=\"/bin/method?target=" + object + "." + method + "()" + (options ? "&" + options : "") + "\">" + method + "</A>" + postfix;

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon