YuriyGuts.RegexBuilder.RegexBuilder.AsciiCharacter C# (CSharp) Method

AsciiCharacter() public static method

Generates an ASCII character pattern ("\xNN") with the specified character code.
public static AsciiCharacter ( byte code ) : RegexNodeLiteral
code byte ASCII character code.
return RegexNodeLiteral
        public static RegexNodeLiteral AsciiCharacter(byte code)
        {
            return new RegexNodeLiteral(string.Format(CultureInfo.InvariantCulture, "\\x{0:x2}", code & 0xFF));
        }

Same methods

RegexBuilder::AsciiCharacter ( byte code, RegexQuantifier quantifier ) : RegexNodeLiteral