Represents an immutable content of the character group. Content can be a base group or an excluded group. This class is abstract.
Inheritance: IBaseGroup, IExcludedGroup
        private CharGrouping Append(CharGrouping value)
        {
            if (value == null)
                throw new ArgumentNullException(nameof(value));

            CharGrouping first = value;

            while (first.Previous != null)
                first = first.Previous;

            first.Previous = this;
            return value;
        }
Exemple #2
0
        private CharGrouping Append(CharGrouping value)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            CharGrouping first = value;

            while (first.Previous != null)
            {
                first = first.Previous;
            }

            first.Previous = this;
            return(value);
        }
Exemple #3
0
 internal static CharGrouping Character(CharGrouping value)
 {
     return new CharGrouping.CharGroupingCharGrouping(value);
 }
Exemple #4
0
 internal static CharGroup Create(CharGrouping value, bool negative)
 {
     return(new CharGroupingCharGroup(value, negative));
 }
            public CharGroupingCharGrouping(CharGrouping value)
            {
                if (value == null)
                    throw new ArgumentNullException(nameof(value));

                _value = value;
            }
 internal static CharGrouping Character(CharGrouping value)
 {
     return(new CharGrouping.CharGroupingCharGrouping(value));
 }
Exemple #7
0
 public CharGroupingCharGrouping(CharGrouping value)
 {
     _value = value ?? throw new ArgumentNullException(nameof(value));
 }
 /// <summary>
 /// Appends the text representation of the pattern to this instance.
 /// </summary>
 /// <param name="value">The pattern to append.</param>
 /// <exception cref="ArgumentNullException"><paramref name="value"/> is <c>null</c>.</exception>
 public void Append(CharGrouping value)
 {
     AppendCharGroup(value);
 }
        internal void AppendCharGroup(CharGrouping value, bool negative)
        {
            if (value == null)
                throw new ArgumentNullException(nameof(value));

            AppendCharGroupStart(negative);
            value.AppendContentTo(this);
            AppendCharGroupEnd();
        }
 /// <summary>
 /// Appends a negative character group containing specified <see cref="CharGrouping"/>.
 /// </summary>
 /// <param name="value">A content of a character group.</param>
 /// <exception cref="ArgumentNullException"><paramref name="value"/> is <c>null</c>.</exception>
 public void AppendNegativeCharGroup(CharGrouping value)
 {
     AppendCharGroup(value, true);
 }
Exemple #11
0
            public CharGroupingCharGroup(CharGrouping value, bool negative)
            {
                if (value == null)
                    throw new ArgumentNullException(nameof(value));

                _item = value;
                Negative = negative;
            }
Exemple #12
0
 public CharGroupingCharGroup(CharGrouping value, bool negative)
 {
     _item    = value ?? throw new ArgumentNullException(nameof(value));
     Negative = negative;
 }