/// <summary>
 /// Gets a string representation of the charset entry
 /// </summary>
 /// <returns>The string representation of this charset entry</returns>
 public override string ToString()
 {
     if (1 == Last - First)
     {
         return(string.Concat(RegexExpression.EscapeRangeChar(First), RegexExpression.EscapeRangeChar(Last)));
     }
     if (2 == Last - First)
     {
         return(string.Concat(RegexExpression.EscapeRangeChar(First), RegexExpression.EscapeRangeChar((char)(First + 1)), RegexExpression.EscapeRangeChar(Last)));
     }
     return(string.Concat(RegexExpression.EscapeRangeChar(First), "-", RegexExpression.EscapeRangeChar(Last)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets a string representation of the charset entry
 /// </summary>
 /// <returns>The string representation of this charset entry</returns>
 public override string ToString()
 {
     return(string.Concat(RegexExpression.EscapeRangeChar(First), "-", RegexExpression.EscapeRangeChar(Last)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets a string representation of the charset entry
 /// </summary>
 /// <returns>The string representation of this charset entry</returns>
 public override string ToString()
 {
     return(RegexExpression.EscapeRangeChar(Value));
 }