Skip to content

Commit 1be341a

Browse files
author
jeffshumphreys@gmail.com
committed
Just refactor cascades from "Mid" to "MID".
1 parent ce5bb4e commit 1be341a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StringPivot.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static IEnumerable PiecesWithMatchesX(string input, string pattern)
179179
{
180180
string matchAtEndOfPiece = stringPieces[i].Value;
181181
int matchAtEndOfPieceAt = stringPieces[i].Index;
182-
var piece = input.Mid(from: nextPieceStartsAt + UPSET_TO_ONEBASED_FROM_ZEROBASED, to: matchAtEndOfPieceAt + UPSET_TO_ONEBASED_FROM_ZEROBASED);
182+
var piece = input.MID(from: nextPieceStartsAt + UPSET_TO_ONEBASED_FROM_ZEROBASED, to: matchAtEndOfPieceAt + UPSET_TO_ONEBASED_FROM_ZEROBASED);
183183
nextPieceStartsAt = matchAtEndOfPieceAt + matchAtEndOfPiece.Length;
184184
pieces.Add(new PiecesWithMatchesRecord(lpieceOrderNo: i + 1, lpreviousPiece: null, lmatchAtStartOfPiece: matchAtStartOfPiece, lpiece: piece, lmatchAtEndOfPiece: matchAtEndOfPiece, lnextPiece: null));
185185
}
@@ -391,7 +391,7 @@ public static IEnumerable NearX(string input, string pattern)
391391
startsat = regexmatches[i].Captures[0].Index;
392392
contextstartsat = StringMeasure.Max(0, startsat - 20);
393393
contextendsat = StringMeasure.MinOver(0, startsat + 20, input.Length);
394-
matchcontext = input.Mid(contextstartsat, contextendsat);
394+
matchcontext = input.MID(contextstartsat, contextendsat);
395395
}
396396

397397
matches.Add(new NearRecord(lmatchOrderNo: i + 1, lcapturedMatch: match, lcapturedMatchStartsAt: startsat, lcapturedMatchContextStartsAt: contextstartsat

0 commit comments

Comments
 (0)