pike.git / lib / modules / Standards.pmod / BSON.pmod / Regex.pike

version» Context lines:

pike.git/lib/modules/Standards.pmod/BSON.pmod/Regex.pike:1:   #pike __REAL_VERSION__       constant BSONRegex = 1;       string regex;    string options;       //! -  static void create(string _regex, string _options) + protected void create(string regex, void|string options)   { -  regex = _regex; -  options = _options; +  this::regex = regex; +  this::options = sort( (options || "")/1 )*"";   }    -  + protected string _sprintf(int t) + { +  return t=='O' && sprintf("%O(%O,%O)", this_program, regex, options); + }