Beispiel #1
0
        public static object MatchIndex(RubyScope /*!*/ scope, RubyRegex /*!*/ self, [DefaultProtocol] MutableString /*!*/ str)
        {
            MatchData match = RubyRegex.SetCurrentMatchData(scope, self, str);

            return((match != null) ? ScriptingRuntimeHelpers.Int32ToObject(match.Index) : null);
        }
Beispiel #2
0
 public static MatchData Match(RubyScope /*!*/ scope, RubyRegex /*!*/ self, [DefaultProtocol] MutableString str)
 {
     return(RubyRegex.SetCurrentMatchData(scope, self, str));
 }