Microsoft.JScript.RegExpObject.RegExpObject C# (CSharp) Method

RegExpObject() private method

private RegExpObject ( RegExpPrototype parent, String source, bool ignoreCase, bool global, bool multiline, RegExpConstructor regExpConst ) : System
parent RegExpPrototype
source String
ignoreCase bool
global bool
multiline bool
regExpConst RegExpConstructor
return System
      internal RegExpObject(RegExpPrototype parent, String source,
          bool ignoreCase, bool global, bool multiline, RegExpConstructor regExpConst)
        : base(parent){
        this.regExpConst = regExpConst;
        this.sourceInt = source;
        this.ignoreCaseInt = ignoreCase;
        this.globalInt = global;
        this.multilineInt = multiline;

        RegexOptions flags = RegexOptions.CultureInvariant | RegexOptions.ECMAScript;
        if (ignoreCase)
          flags |= RegexOptions.IgnoreCase;
        if (multiline)
          flags |= RegexOptions.Multiline;
        try{
          this.regex = new Regex(source, flags);
        }catch (System.ArgumentException){
          throw new JScriptException(JSError.RegExpSyntax);
        }
        this.lastIndexInt = 0;
        this.noExpando = false;
      }

Same methods

RegExpObject::RegExpObject ( Regex regex ) : System