Go to file
2019-01-11 20:40:46 +00:00
.gitignore
charset.h Small c with cedilla should be 0xe7 2019-01-11 20:40:46 +00:00
LICENCE
Makefile Do not convert existing UTF-8 sequences 2017-03-09 19:32:28 +00:00
README.md Reduce size of section headers. 2017-03-10 09:00:34 +00:00
test.c fix return value to reflect final string length 2017-03-09 20:11:34 +00:00
xconv.c Only check for UTF8 sequence if no changes have been made 2017-03-10 09:08:37 +00:00
xconv.h use size_t as return type 2017-03-09 20:44:08 +00:00

libxconv

Lightweight ISO-6937 to UTF-8 conversion library.

SYNOPSIS

size_t xconv(char *inbuf, char *outbuf, size_t outbuflen);

DESCRIPTION

The xconv() function converts a sequence of characters in ISO-6937 encoding to UTF-8.

If a UTF-8 sequence is found within the input string, processing is aborted.

RETURN VALUE

On successful conversion, the xconv() function returns the number of characters placed into outbuf excluding the string terminator.

If no conversion is necessary (plain ASCII input string or a UTF-8 sequence was found) then the function returns 0. In this case, the state of the output buffer is undefined and it should not be used.

NOTES

This library was written to replace iconv() for a specific conversion task in a small embedded environment with little memory or CPU time available.