CharAtOffset() public method

public CharAtOffset ( int offset ) : char
offset int
return char
示例#1
0
 // Extension method.  Skip an escapable character, or one normal character
 public static void SkipEscapableChar(this StringScanner p, bool ExtraMode)
 {
     if (p.current == '\\' && IsEscapableChar(p.CharAtOffset(1), ExtraMode))
     {
         p.SkipForward(2);
     }
     else
     {
         p.SkipForward(1);
     }
 }