Пример #1
0
 public virtual extern string[] split(es5.RegExp separator, double limit);
Пример #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);
Пример #3
0
 public virtual extern string[] split(es5.RegExp separator);
Пример #4
0
 public virtual extern double search(es5.RegExp regexp);
Пример #5
0
 public virtual extern string replace(es5.RegExp searchValue, String.replaceFn replacer);
Пример #6
0
 public virtual extern string replace(es5.RegExp searchValue, string replaceValue);
Пример #7
0
 public virtual extern es5.RegExpMatchArray match(es5.RegExp regexp);