Esempio n. 1
0
        public RegexBuilder Clone()
        {
            var clone = new RegexBuilder(this._options);

            clone._groups.AddRange(this._groups);
            foreach (var group in this._unterminatedGroups.Reverse())
            {
                clone._unterminatedGroups.Push(group);
            }

            return(clone);
        }
Esempio n. 2
0
 public RegexBuilder Concat(RegexBuilder other)
 {
     this._groups.AddRange(other._groups);
     return(this);
 }