Mahmood Ali
5cda74915c
Handle when a new line follows an escaping char
2020-08-31 20:31:44 -04:00
Mahmood Ali
3fb14affb6
Add a failing \n~\n~. case!
2020-08-31 20:29:04 -04:00
Mahmood Ali
db3241c0df
tests: handle unicode matches
...
naive implementation should focus on ascii characters only
2019-05-21 09:41:23 -04:00
Mahmood Ali
10797ca61f
escapingio: handle stalled readers
...
Handle stalled readers (e.g. network write got stalled), by having
escaping io have a buffer so it looks for escaped characters in the
stream.
This simplifies the implementation considerably, as we can look
for new lines followed by escaped characters directly.
Also, we add a test to ensure that any partial results are flushed to
readers.
2019-05-17 11:58:31 -04:00
Mahmood Ali
e211a993fd
escapingio: thread-safe struct for escaped chars
...
Use a helper struct for capturing escaped characters that's thread safe.
2019-05-17 10:22:24 -04:00
Mahmood Ali
fb0d002eb1
avoid printing counts in tests
2019-05-16 17:07:32 -04:00
Mahmood Ali
0b4bebd3aa
Fix typos and comments
...
Co-Authored-By: Michael Schurter <michael.schurter@gmail.com >
2019-05-16 17:06:03 -04:00
Mahmood Ali
4e7736023a
Add a escaping reader that mimics ssh behavior
...
Adds an escaping reading that mimics ssh handling of input escape
sequences.
The reader parses chunks to look for \n~
2019-05-16 16:22:52 -04:00