Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2012 Jörg Seebohn

Files

C-kern/api/io/reader/utf8reader.h

Header file UTF8TextReader.

C-kern/io/reader/utf8reader.c

Implementation file UTF8TextReader impl.

lifetime

free_utf8reader

int free_utf8reader(utf8reader_t *utfread)

Implements utf8reader_t.free_utf8reader.

read

read+match

test

This reader decodes UTF-8 multibyte text content into a char32_t character and maintains additional information about the current line number and column.
Implements UTF8TextReader.
int free_utf8reader(utf8reader_t *utfread)
Implements utf8reader_t.free_utf8reader.
int free_utf8reader(utf8reader_t *utfread)
Sets all internal members to 0.
Close