WikiFunctions.Parse.HideText.ReplaceMore C# (CSharp) Method

ReplaceMore() private method

Replaces hidden images, external links, templates, headings etc.
private ReplaceMore ( ICollection matches, string &articleText ) : void
matches ICollection
articleText string The wiki text of the article.
return void
        private void ReplaceMore(ICollection matches, ref string articleText)
        {
            StringBuilder sb = new StringBuilder((int)(articleText.Length * 1.1));
            int pos = 0;

            foreach (Match m in matches)
            {
                sb.Append(articleText, pos, m.Index - pos);
                string s = "⌊⌊⌊⌊M" + MoreHide.Count + "⌋⌋⌋⌋";
                sb.Append(s);
                pos = m.Index + m.Value.Length;
                MoreHide.Add(new HideObject(s, m.Value));
            }

            sb.Append(articleText, pos, articleText.Length - pos);

            articleText = sb.ToString();
        }