Ejemplo n.º 1
0
 public virtual extern string[] split(es5.RegExp separator, double limit);
Ejemplo n.º 2
0
 /// <summary>
 /// Registers a step definition.
 /// </summary>
 /// <param name="rRegex">the regular expression that matches the feature file step (with leading "Given", "When", "Then", "But" or "*" removed). E.g. if the feature file has the step "Then I should be served a coffee" it will be truncated to "I should be served a coffee" and tested against "rRegex" to check for a match. The simple regular expression /^I should be served a coffee$/i would match this text. The regular expression can specify capturing groups, which will be passed as parameters to "fnFunc".</param>
 /// <param name="fnFunc">the function to execute in the event that the regular expression matches. Receives regular expression capturing groups as parameters in the same order that they are specified in the regular expression. If a data table is specified for the step, it will be passed as an additional final parameter. At execution time, all functions within a particular scenario will execute within the same "this" context.</param>
 public extern virtual void register(es5.RegExp rRegex, object fnFunc);
Ejemplo n.º 3
0
 public virtual extern string[] split(es5.RegExp separator);
Ejemplo n.º 4
0
 public virtual extern double search(es5.RegExp regexp);
Ejemplo n.º 5
0
 public virtual extern string replace(es5.RegExp searchValue, String.replaceFn replacer);
Ejemplo n.º 6
0
 public virtual extern string replace(es5.RegExp searchValue, string replaceValue);
Ejemplo n.º 7
0
 public virtual extern es5.RegExpMatchArray match(es5.RegExp regexp);