コード例 #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
ファイル: TagNReplaceList.cs プロジェクト: tmcqueen2/GSharp
 public TagNReplaceList(IComparer <TagDefinitionValue> comparer, TagNReplaceList list)
     : this(comparer)
 {
     foreach (TagDefinitionValue item in list)
     {
         Add(item);
     }
 }
コード例 #3
0
 private void newTagList()
 {
     mTagKeyComparer = new TagDefinitionValueComparer(mbIgnoreTagCase);
     if (mTagList == null)
     {
         mTagList = new TagNReplaceList(mTagKeyComparer);
     }
     else
     {
         mTagList = new TagNReplaceList(mTagKeyComparer, mTagList);
     }
 }
コード例 #4
0
 internal TagValueFormatterArgs(Match Match, TagNReplaceList Tags, ref String Value)
 {
     this.Match = Match;
     this.Tags  = Tags;
     this.Value = Value;
 }