Ensure RawParseUtils.lineMap last element is the buffer end
Application code is easier to write when we can assume that for
any given source line the last element of the IntList returned
by lineMap contains the value of the end parameter. This makes
it easy to extract any line by saying:
RawParseUtils.decodeNoFallback(
Constants.CHARSET,
buf,
lineMap.get(lineNbr),
lineMap.get(lineNbr + 1));
without needing to worry about bound checks, assuming of course
that lineNbr is already bound-checked within the range of the file.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>