aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-04-07 17:37:01 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-04-09 11:28:06 +0200
commit6a6bc5bb4c1b5be36b342266d0f74ec4a2843b00 (patch)
treef095c1494810b54812e328c268d5e0fa344909a7 /text.h
parentd2004b15f1e90efafedc367335c07ad4636d291d (diff)
downloadvis-6a6bc5bb4c1b5be36b342266d0f74ec4a2843b00.tar.gz
vis-6a6bc5bb4c1b5be36b342266d0f74ec4a2843b00.tar.xz
text: drop special handling of \r\n line endings
Diffstat (limited to 'text.h')
-rw-r--r--text.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/text.h b/text.h
index c2a5812..da97a5d 100644
--- a/text.h
+++ b/text.h
@@ -70,9 +70,6 @@ size_t text_lineno_by_pos(Text*, size_t pos);
/* set `buf' to the byte found at `pos' and return true, if `pos' is invalid
* false is returned and `buf' is left unmodified */
bool text_byte_get(Text*, size_t pos, char *buf);
-/* same as byte get, but if a sequence of '\r\n' is read at `pos',
- * `buf` is set to \n instead of \r. */
-bool text_char_get(Text*, size_t pos, char *buf);
/* store at most `len' bytes starting from `pos' into `buf', the return value
* indicates how many bytes were copied into `buf'. WARNING buf will not be
* NUL terminated. */
@@ -89,9 +86,6 @@ bool text_iterator_prev(Iterator*);
/* get byte at current iterator position, if this is at EOF a NUL
* byte (which is not actually part of the file) is read. */
bool text_iterator_byte_get(Iterator*, char *b);
-/* same as byte get, but if a sequence of '\r\n' is read at the
- * iterator position, *c is set to \n instead of \r. */
-bool text_iterator_char_get(Iterator*, char *c);
/* advance iterator by one byte and get byte at new position. */
bool text_iterator_byte_prev(Iterator*, char *b);
/* if the new position is at EOF a NUL byte (which is not actually