コード例 #1
0
        private TagNReplaceString(TagNReplaceString cloneFrom, eListCloneType listCloneType)
        {
            mbIgnoreTagCase = cloneFrom.mbIgnoreTagCase;

            mTagKeyComparer = new TagDefinitionValueComparer(mbIgnoreTagCase);

            // Same formatter instances used, but has its own list container.
            foreach (TagValueFormatterBase formatter in cloneFrom.mTagValueFormatters)
                mTagValueFormatters.Add(formatter);

            switch (listCloneType)
            {
                case eListCloneType.ByReference:
                    mTagList = cloneFrom.mTagList;
                    break;
                case eListCloneType.ByValue:
                    mTagList = new TagNReplaceList(mTagKeyComparer, cloneFrom.mTagList);
                    break;
                case eListCloneType.NewList:
                    mTagList = new TagNReplaceList(mTagKeyComparer);
                    break;
            }
        }
コード例 #2
0
 internal TagValueFormatterArgs(Match Match, TagNReplaceList Tags, ref String Value)
 {
     this.Match = Match;
     this.Tags = Tags;
     this.Value = Value;
 }
コード例 #3
0
 private void newTagList()
 {
     mTagKeyComparer = new TagDefinitionValueComparer(mbIgnoreTagCase);
     if (mTagList == null)
         mTagList = new TagNReplaceList(mTagKeyComparer);
     else
         mTagList = new TagNReplaceList(mTagKeyComparer, mTagList);
 }