diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-08-02 04:43:01 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-08-02 04:43:01 +0000 |
commit | 8b75f9bb6a09d54d634ff661655659951378aa2c (patch) | |
tree | 611f800f33ca919d37c724957fcc8c2b2bccb342 /src/rcciconv.c | |
parent | e3f702e83a26468ee44f3f342a7a40a252f4603c (diff) | |
download | librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.gz librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.bz2 librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.xz librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.zip |
Language autodetection
- rccConfigRecode function's are added
- Language autodetection using aspell is added
- Translation in 3 modes: "To English Language", "Skip English Translation", "Full"
- Example2 to demonstrate translation possibilities
Diffstat (limited to 'src/rcciconv.c')
-rw-r--r-- | src/rcciconv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rcciconv.c b/src/rcciconv.c index d9903de..93278a7 100644 --- a/src/rcciconv.c +++ b/src/rcciconv.c @@ -48,6 +48,11 @@ void rccIConvClose(rcc_iconv icnv) { } } +int rccIConvGetError(rcc_iconv icnv) { + if ((!icnv)||(icnv->icnv == (iconv_t)-1)) return -1; + return 0; +} + size_t rccIConvRecode(rcc_iconv icnv, char *outbuf, size_t outsize, const char *buf, size_t size) { char *in_buf, *out_buf, err; int in_left, out_left; |