private void InitializeCharactersFromString(string value)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value", "CharacterListExpression cannot be null");
     }
     characterListExpression = RegexStringEscaper.Escape(value, false);
     characters = characterListExpression.ToCharArray();
 }
 public RegexNodeCharacterSet(char[] characters, bool isNegative)
 {
     if (characters == null)
     {
         throw new ArgumentNullException("characters", "Character array cannot be null");
     }
     this.characters         = characters;
     characterListExpression = RegexStringEscaper.Escape(new string(characters), false);
     IsNegative = isNegative;
 }
Exemple #3
0
 private string GetEscapedValue()
 {
     return(RegexStringEscaper.Escape(Value, true));
 }