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
Exemplo n.º 1
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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 internal static CharGrouping Character(CharGrouping value)
 {
     return new CharGrouping.CharGroupingCharGrouping(value);
 }
Exemplo n.º 4
0
 internal static CharGroup Create(CharGrouping value, bool negative)
 {
     return(new CharGroupingCharGroup(value, negative));
 }
Exemplo n.º 5
0
            public CharGroupingCharGrouping(CharGrouping value)
            {
                if (value == null)
                    throw new ArgumentNullException(nameof(value));

                _value = value;
            }
Exemplo n.º 6
0
 internal static CharGrouping Character(CharGrouping value)
 {
     return(new CharGrouping.CharGroupingCharGrouping(value));
 }
Exemplo n.º 7
0
 public CharGroupingCharGrouping(CharGrouping value)
 {
     _value = value ?? throw new ArgumentNullException(nameof(value));
 }
Exemplo n.º 8
0
 /// <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);
 }
Exemplo n.º 9
0
        internal void AppendCharGroup(CharGrouping value, bool negative)
        {
            if (value == null)
                throw new ArgumentNullException(nameof(value));

            AppendCharGroupStart(negative);
            value.AppendContentTo(this);
            AppendCharGroupEnd();
        }
Exemplo n.º 10
0
 /// <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);
 }
Exemplo n.º 11
0
            public CharGroupingCharGroup(CharGrouping value, bool negative)
            {
                if (value == null)
                    throw new ArgumentNullException(nameof(value));

                _item = value;
                Negative = negative;
            }
Exemplo n.º 12
0
 public CharGroupingCharGroup(CharGrouping value, bool negative)
 {
     _item    = value ?? throw new ArgumentNullException(nameof(value));
     Negative = negative;
 }