public AsciiCharSurroundPattern(AsciiChar charBefore, object content, AsciiChar charAfter)
        {
            if (content == null)
            {
                throw new ArgumentNullException(nameof(content));
            }

            _charBefore = charBefore;
            _content = content;
            _charAfter = charAfter;
        }
Esempio n. 2
0
 /// <summary>
 /// Returns a <see cref="System.String"/> of the Char value.
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return(AsciiChar.ToString());
 }
Esempio n. 3
0
 public AsciiCharacterCharGrouping(AsciiChar value)
 {
     _value = value;
 }
Esempio n. 4
0
 internal void Append(AsciiChar value, bool inCharGroup)
 {
     AppendInternal((int)value, inCharGroup);
 }
Esempio n. 5
0
 internal static CharPattern Create(AsciiChar value)
 {
     return(new AsciiCharCharPattern(value));
 }
Esempio n. 6
0
 public AsciiCharSurroundContainer(AsciiChar charBefore, object content, AsciiChar charAfter)
 {
     _charBefore = charBefore;
     _content    = content ?? throw new ArgumentNullException(nameof(content));
     _charAfter  = charAfter;
 }
Esempio n. 7
0
 internal static CharGroup Create(AsciiChar value, bool negative)
 {
     return(new AsciiCharCharGroup(value, negative));
 }
Esempio n. 8
0
 /// <summary>
 /// Appends a pattern that matches specified Unicode character.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies ASCII character.</param>
 /// <returns></returns>
 public CharGrouping Append(AsciiChar value) => Append(Chars.Character(value));
Esempio n. 9
0
 public AsciiCharCharGroup(AsciiChar value, bool negative)
 {
     _value = value;
     Negative = negative;
 }
Esempio n. 10
0
 /// <summary>
 /// Appends a pattern that matches specified Unicode character.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies ASCII character.</param>
 /// <returns></returns>
 public CharGrouping Character(AsciiChar value)
 {
     return Append(Chars.Character(value));
 }
Esempio n. 11
0
 /// <summary>
 /// Appends a pattern that matches specified Unicode character.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies ASCII character.</param>
 /// <returns></returns>
 public CharGrouping Append(AsciiChar value) => Append(Chars.Character(value));
Esempio n. 12
0
 /// <summary>
 /// Appends a pattern that matches specified Unicode character.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies ASCII character.</param>
 /// <returns></returns>
 public CharGrouping Character(AsciiChar value)
 {
     return(Append(Chars.Character(value)));
 }
Esempio n. 13
0
 public AsciiCharCharGroup(AsciiChar value, bool negative)
 {
     _value   = value;
     Negative = negative;
 }
Esempio n. 14
0
 internal AsciiCharCharPattern(AsciiChar value)
 {
     _value = value;
 }
Esempio n. 15
0
 internal AsciiCharCharPattern(AsciiChar value)
 {
     _value = value;
 }
Esempio n. 16
0
 /// <summary>
 /// Appends a pattern that matches a specified character.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies ASCII character.</param>
 public void AppendCharGroup(AsciiChar value)
 {
     AppendCharGroup(value, false);
 }
Esempio n. 17
0
 /// <summary>
 /// Returns a pattern that matches specified Unicode character.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies ASCII character.</param>
 /// <returns></returns>
 public static CharGrouping Character(AsciiChar value)
 {
     return(new CharGrouping.AsciiCharacterCharGrouping(value));
 }
Esempio n. 18
0
 /// <summary>
 /// Appends a pattern that matches a character that is not a specified character.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies ASCII character.</param>
 public void AppendNegativeCharGroup(AsciiChar value)
 {
     AppendCharGroup(value, true);
 }
Esempio n. 19
0
 public AsciiCharacterCharGrouping(AsciiChar value)
 {
     _value = value;
 }
Esempio n. 20
0
 internal void AppendCharGroup(AsciiChar value, bool negative)
 {
     AppendCharGroupStart(negative, (int)value);
     Append(value, true);
     AppendCharGroupEnd();
 }
Esempio n. 21
0
 /// <summary>
 /// Returns a pattern that matches specified Unicode character.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies ASCII character.</param>
 /// <returns></returns>
 public static CharGrouping Character(AsciiChar value)
 {
     return new CharGrouping.AsciiCharacterCharGrouping(value);
 }
Esempio n. 22
0
 /// <summary>
 /// Appends specified character to this instance.
 /// </summary>
 /// <param name="value">An enumerated constant that identifies an ASCII character to append.</param>
 public void Append(AsciiChar value)
 {
     Append(value, false);
 }
Esempio n. 23
0
 public static string GetName(AsciiChar value) => _asciiChars[(int)value];
Esempio n. 24
0
 public static string GetAsciiCharName(AsciiChar value) => _asciiChars[(int)value];