[Chapel Merge] Update five IO functions to use `region` instead o

Branch: refs/heads/main
Revision: cdb2781
Author: lydia-duncan
Link: Update five IO functions to use `region` instead of `start` and `end` args by lydia-duncan · Pull Request #20475 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20475 from lydia-duncan/regionArgExceptOpenwriter

Update five IO functions to use region instead of start and end args
[reviewed by @benharsh]

In #20133 we decided to update six IO functions to use a range argument to
specify what part of the file it should be applied to, instead of using both a
start and an end argument. #20449 and #20450 track issues
discovered while trying to do that for openwriter, but this PR covers the
other five functions:

  • openreader
  • file.reader
  • file.writer
  • file.lines
  • and channel.seek

Resolves #20133

Adds a test covering deprecation warnings for all five functions, and adds
testing where it was lacking of using the new region argument appropriately.
Updates tests and package modules that were relying on the old arguments.

Passed a full paratest with futures, double checked the built documentation.

I've put off updating openUrlReader and openUrlWriter in the URL module
to use region arguments as well due to them not being in a 2.0 module, but
opened #20527 to track that desire

Modified Files:
A test/deprecated/IO/startEndArgs.chpl

A test/deprecated/IO/startEndArgs.cleanfiles
A test/deprecated/IO/startEndArgs.good
A test/library/standard/IO/fileReaderLimited.chpl
A test/library/standard/IO/fileReaderLimited.good
A test/library/standard/IO/fileWriterBadRegion.catfiles
A test/library/standard/IO/fileWriterBadRegion.chpl
A test/library/standard/IO/fileWriterBadRegion.cleanfiles
A test/library/standard/IO/fileWriterBadRegion.good
A test/library/standard/IO/fileWriterLimited.catfiles
A test/library/standard/IO/fileWriterLimited.chpl
A test/library/standard/IO/fileWriterLimited.cleanfiles
A test/library/standard/IO/fileWriterLimited.good
A test/library/standard/IO/filereaderBadRegion.chpl
A test/library/standard/IO/filereaderBadRegion.good
A test/library/standard/IO/linesBadRegion.chpl
A test/library/standard/IO/linesBadRegion.good
A test/library/standard/IO/linesLimited.chpl
A test/library/standard/IO/linesLimited.good
A test/library/standard/IO/linesLimited.txt
A test/library/standard/IO/openreaderBadRegion.chpl
A test/library/standard/IO/openreaderBadRegion.good
A test/library/standard/IO/openreaderBadRegion2.chpl
A test/library/standard/IO/openreaderBadRegion2.future
A test/library/standard/IO/openreaderBadRegion2.good
A test/library/standard/IO/openreaderLimited.chpl
A test/library/standard/IO/openreaderLimited.good
A test/library/standard/IO/openreaderLimited.txt
A test/library/standard/IO/seekLowerBound.chpl
A test/library/standard/IO/seekLowerBound.good
M modules/packages/MatrixMarket.chpl
M modules/packages/URL.chpl
M modules/standard/IO.chpl
M test/deprecated/IO/.gitignore
M test/exercises/duplicates/forStudents/FileHashing.chpl
M test/io/diten/checkpoint.chpl
M test/io/ferguson/seeking.chpl
M test/library/standard/IO/.gitignore
M test/release/examples/primers/fileIO.chpl
M test/studies/lammps/shemmy/m-lammps.chpl
M test/studies/lammps/shemmy/s-lammps.chpl
M test/studies/shootout/mandelbrot/ferguson/mandelbrot-opt2.chpl
M test/studies/shootout/mandelbrot/ferguson/mandelbrot2-opt.chpl
M test/studies/ssca2/main/SSCA2_Modules/io_RMAT_graph.chpl

Compare: https://github.com/chapel-lang/chapel/compare/9f51be6cdd97...cdb27816a89a