コード例 #1
0
 public BracketLimits FindLimitsOfNextBracketExpression(int start)
 {
     BracketLimits result = new BracketLimits();
     result.OpenBracketIndex = this.FindFirstOpenBracket(start);
     result.CloseBracketIndex = this.FindMatchingBracket(result.OpenBracketIndex);
     return result;
 }
コード例 #2
0
 public BracketLimits FindLimitsOfBracketExpressionBefore(int end)
 {
     BracketLimits result = new BracketLimits();
     result.CloseBracketIndex = this.FindLastCloseBracket(end);
     result.OpenBracketIndex = this.FindMatchingBracketBefore(result.CloseBracketIndex);
     
     return result;
 }