diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-18 15:22:28 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-18 15:22:28 +0000 |
commit | 537c4b33fdf6e143243d5a0d286eeb247362e806 (patch) | |
tree | d8a94cfaa4a71ffc826b7d8176c54445369539f3 /src/rccstring.h | |
parent | 4032f92867e5570f130e4175b3b4fb61240f9752 (diff) | |
download | librcc-537c4b33fdf6e143243d5a0d286eeb247362e806.tar.gz librcc-537c4b33fdf6e143243d5a0d286eeb247362e806.tar.bz2 librcc-537c4b33fdf6e143243d5a0d286eeb247362e806.tar.xz librcc-537c4b33fdf6e143243d5a0d286eeb247362e806.zip |
API Improvements
- Removed 'rlen' return parameters there not necessary for multibyte encodings
- Two versions of recode functions: rccRecode -> rccRecode, rccSizedRecode
- Class Types: CONST, SKIP_SAVELOAD
- New recode functions: rccToCharset, rccFromCharset
- More new recode functions: rccRecodeToCharset, rccRecodeFromCharset, rccRecodeCharsets
- New function: rccGetCompiledConfiguration
- All warnings are fixed
- Perform "File Name" search only if there are non ISO8859-1 chars in the name.
- Do not copy invalid characters, - skip them.
- Fixed error in rccRecode with 'Recoding Cache' switched On.
- Strip leading and trailing spaces in rccDB4 get/set
Diffstat (limited to 'src/rccstring.h')
-rw-r--r-- | src/rccstring.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rccstring.h b/src/rccstring.h index dbbd4c2..3c5d8d7 100644 --- a/src/rccstring.h +++ b/src/rccstring.h @@ -11,10 +11,19 @@ struct rcc_string_header_t { typedef struct rcc_string_header_t rcc_string_header; -rcc_string rccCreateString(rcc_language_id language_id, const char *buf, size_t len, size_t *rlen); +rcc_string rccCreateString(rcc_language_id language_id, const char *buf, size_t len); void rccStringFree(rcc_string str); int rccStringSetLang(rcc_string string, const char *sn); int rccStringFixID(rcc_string string, rcc_context ctx); +#ifdef HAVE_STRNLEN +# ifndef strnlen +int strnlen(const char *str, size_t size); +# endif /* !strnlen */ +#else +int rccStrnlen(const char *str, size_t size); +#endif /* HAVE_STRNLEN */ +int rccIsASCII(const char *str); + #endif /* _RCC_STRING_H */ |