summaryrefslogtreecommitdiff
path: root/lib/bio/test
AgeCommit message (Collapse)Author
2019-03-21Commit bio.readtermOri Bernstein
2019-03-21bio.readto and EOFCarlin Bingham
Hi, When using bio.readto I often want to be able to tell if the delimeter was found, or if the file was truncated, but there doesn't appear to be a way to tell if readto stopped searching because it found what it was looking for or if it reached EOF, other than to do another read. A simple solution to this would be a new function that reads to and includes the delimeter in the returned slice if it was found, which can be used intead when you care. I've tentatively included a patch for this. Is this something that would be wanted? Is there a better solution? Or a better name? -- Carlin NB. I've stolen the `Keep tag that was already there but apparently never used. Not sure if it was intended for a higher purpose. >From c230b380fbf0e7ba2c24aae332e4ce8016843d66 Mon Sep 17 00:00:00 2001 From: Carlin Bingham <cb@viennan.net> Date: Sat, 16 Mar 2019 10:20:23 +1300 Subject: [PATCH] Add bio.readtoinc - read to including delimiter X-Spam-Status: No, hits=0.000000 required=0.900000 Similar to bio.readto except it includes the delimeter in the returned slice if it was found, making the absence of the delimiter indicate EOF
2018-10-14Fix boundary-spanning delimiters.Ori Bernstein
2018-02-01Add test for bio skipto.Ori Bernstein
2017-09-30Replace bio.status(@t) with std.result(@t, bio.err)Ori Bernstein
It's more consistent.
2017-09-13Create output path before using itOri Bernstein
bio-unitwr could be executed before bio-write and tmpout/ doesn't exist yet in that case. Thanks Tobias Kortkamp.
2017-07-22Terminate error message lines.Ori Bernstein
2017-06-11Add memfiles.Ori Bernstein
2016-09-14Make sure that our output file exists.Ori Bernstein
2016-09-13Bio-delim was missing dependencies.Ori Bernstein
2016-09-13Add missing file.Ori Bernstein
2016-09-11Enable and update the bio tests.Ori Bernstein
2016-08-27Rename `std.Fail to `std.Err.Ori Bernstein
2016-05-17New syntax for casts.Ori Bernstein
2015-12-29The makefile isn't used.Ori Bernstein
2015-10-04Fix handling '\r\n' with libbio.Ori Bernstein
2015-09-11Update BIO tests and bootstrap.Ori Bernstein
2015-08-26Move Myrddin libs to lib/ subdirectory.Ori Bernstein