internal void ClearData(int?index = null) { if (MatchMap == null) { return; } if (index is int i) { if (MatchMap.TryGetValue(i, out var matches)) { matches.Clear(); } } else { MatchMap.Clear(); } }
// private method private void _Clear() { m_REs = null; m_ReplaceStrs = null; m_MatchMap.Clear(); }