コード例 #1
0
 internal sealed override TGenerexMatch createBackwardsMatch(T[] input, int index, LengthAndResult <TResult> match)
 {
     return(createMatchWithResult(match.Result, input, index + match.Length, -match.Length));
 }
コード例 #2
0
 /// <summary>
 ///     Returns a new match that is longer than the specified <paramref name="match"/> by the specified <paramref
 ///     name="extra"/> amount.</summary>
 protected sealed override LengthAndResult <TResult> add(LengthAndResult <TResult> match, int extra)
 {
     return(match.Add(extra));
 }
コード例 #3
0
 /// <summary>Returns the specified <paramref name="match"/>, but with its length set to zero.</summary>
 protected sealed override LengthAndResult <TResult> setZero(LengthAndResult <TResult> match)
 {
     return(new LengthAndResult <TResult>(match.Result, 0));
 }
コード例 #4
0
 /// <summary>Retrieves the length of the specified <paramref name="match"/>.</summary>
 internal sealed override int getLength(LengthAndResult <TResult> match)
 {
     return(match.Length);
 }