Microsoft.JScript.RegExpConstructor.UpdateConstructor C# (CSharp) Method

UpdateConstructor() private method

private UpdateConstructor ( Regex regex, Match match, String input ) : int
regex System.Text.RegularExpressions.Regex
match System.Text.RegularExpressions.Match
input String
return int
      internal int UpdateConstructor(Regex regex, Match match, String input) {
        if (!this.noExpando) {
          this.regex = regex;
          this.lastRegexMatch = match;
          this.inputString = input;
          this.lastInput = input;
        }
        return match.Length == 0
          ? match.Index + 1
          : match.Index + match.Length;
      }