static private void matchSetter(object val, uint id, GlobalEntry gb, NetRuby rb) { rb.CheckType(val, typeof(RMatchData)); RThread th = rb.GetCurrentContext(); th.BackRef = val; }
static private object matchGetter(uint id, GlobalEntry gb, NetRuby rb) { RThread th = rb.GetCurrentContext(); object o = th.BackRef; matchBusy(o); return(o); }
static private object lastParenGetter(uint id, GlobalEntry gb, NetRuby rb) { RThread th = rb.GetCurrentContext(); RMatchData m = (RMatchData)th.BackRef; if (m == null) { return(null); } string s = m.Last; if (m.IsTainted) { return(new RString(rb, s, true)); } return(s); }
static private object kCodeGetter(uint id, GlobalEntry gb, NetRuby rb) { return("none"); }
static private void iCaseSetter(object val, uint id, GlobalEntry gb, NetRuby rb) { rb.cRegexp.IsIgnoreCase = RBasic.RTest(val); }
static private object iCaseGetter(uint id, GlobalEntry gb, NetRuby rb) { return(rb.cRegexp.ignoreCase); }