diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-06 15:42:04 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-06 15:42:04 +0000 |
commit | 232dbc756390d30a86ae6de0cc84600eddb1c0b2 (patch) | |
tree | e4aadbb4076392bcaf30cce6329dc715375a98d7 /src/librcc.h | |
parent | 550bda3e54a0895e027fee14860f14171a357ac9 (diff) | |
download | librcc-232dbc756390d30a86ae6de0cc84600eddb1c0b2.tar.gz librcc-232dbc756390d30a86ae6de0cc84600eddb1c0b2.tar.bz2 librcc-232dbc756390d30a86ae6de0cc84600eddb1c0b2.tar.xz librcc-232dbc756390d30a86ae6de0cc84600eddb1c0b2.zip |
Recode FS Fixes
Diffstat (limited to 'src/librcc.h')
-rw-r--r-- | src/librcc.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/librcc.h b/src/librcc.h index 1f5ee72..79aab7e 100644 --- a/src/librcc.h +++ b/src/librcc.h @@ -17,7 +17,6 @@ #define RCC_MAX_LANGUAGE_CHARS 16 #define RCC_MAX_VARIABLE_CHARS 16 -#define RCC_MAX_STRING_CHARS 1024 /* ID's */ typedef char rcc_language_id; @@ -45,7 +44,8 @@ void rccFree(); *******************************************************************************/ typedef unsigned int rcc_init_flags; #define RCC_NO_DEFAULT_CONFIGURATION 1 -rcc_context rccCreateContext(const char *locale_variable, unsigned int max_languages, unsigned int max_classes, rcc_class_ptr classes, rcc_init_flags flags); +rcc_context rccCreateContext(const char *locale_variable, unsigned int max_languages, unsigned int max_classes, rcc_class_ptr defclasses, rcc_init_flags flags); +int rccInitDefaultContext(const char *locale_variable, unsigned int max_languages, unsigned int max_classes, rcc_class_ptr defclasses, rcc_init_flags flags); void rccFreeContext(rcc_context ctx); int rccLockConfiguration(rcc_context ctx, unsigned int lock_code); @@ -248,24 +248,29 @@ const char *rccGetLanguageFullName(const char *lang); /* string.c */ typedef char *rcc_string; -rcc_language_id rccStringCheck(const rcc_string str); -const char *rccStringGet(const rcc_string str); -char *rccStringExtract(const rcc_string buf, int len, int *rlen); +size_t rccStringCheck(const char *str); +size_t rccStringSizedCheck(const char *str, size_t len); -int rccStringCmp(const rcc_string str1, const rcc_string str2); -int rccStringNCmp(const rcc_string str1, const rcc_string str2, size_t n); -int rccStringCaseCmp(const rcc_string str1, const rcc_string str2); -int rccStringNCaseCmp(const rcc_string str1, const rcc_string str2, size_t n); +rcc_language_id rccStringGetLanguage(const rcc_string str); +const char *rccStringGetString(const rcc_string str); +char *rccStringExtractString(const rcc_string str); +const char *rccGetString(const char *str); +const char *rccSizedGetString(const char *str, size_t len, size_t *rlen); + +int rccStringCmp(const char *str1, const char *str2); +int rccStringNCmp(const char *str1, const char *str2, size_t n); +int rccStringCaseCmp(const char *str1, const char *str2); +int rccStringNCaseCmp(const char *str1, const char *str2, size_t n); /******************************************************************************* ******************************** Recoding ************************************** *******************************************************************************/ /* recode.c */ -rcc_string rccFrom(rcc_context ctx, rcc_class_id class_id, const char *buf, int len, int *rlen); -char *rccTo(rcc_context ctx, rcc_class_id class_id, const rcc_string buf, int len, int *rlen); -char *rccRecode(rcc_context ctx, rcc_class_id from, rcc_class_id to, const char *buf, int len, int *rlen); +rcc_string rccFrom(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len, size_t *rlen); +char *rccTo(rcc_context ctx, rcc_class_id class_id, const rcc_string buf, size_t len, size_t *rlen); +char *rccRecode(rcc_context ctx, rcc_class_id from, rcc_class_id to, const char *buf, size_t len, size_t *rlen); char *rccFS(rcc_context ctx, rcc_class_id from, rcc_class_id to, const char *fspath, const char *path, const char *filename); /******************************************************************************* |