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();
            }
        }
Exemple #2
0
        // private method

        private void _Clear()
        {
            m_REs         = null;
            m_ReplaceStrs = null;
            m_MatchMap.Clear();
        }