exec() private method

private exec ( String input ) : Object
input String
return Object
コード例 #1
0
        public static object exec(object thisob, object input)
        {
            RegExpObject obj2 = thisob as RegExpObject;

            if (obj2 == null)
            {
                throw new JScriptException(JSError.RegExpExpected);
            }
            if ((input is Missing) && !obj2.regExpConst.noExpando)
            {
                input = obj2.regExpConst.input;
            }
            return(obj2.exec(Microsoft.JScript.Convert.ToString(input)));
        }
コード例 #2
0
        public static Object exec(Object thisob, Object input)
        {
            RegExpObject regExpObject = thisob as RegExpObject;

            if (regExpObject == null)
            {
                throw new JScriptException(JSError.RegExpExpected);
            }
            if (input is Missing && !regExpObject.regExpConst.noExpando)
            {
                input = regExpObject.regExpConst.input;
            }
            return(regExpObject.exec(Convert.ToString(input)));
        }