29 #define RCC_MAX_CHARSETS 16 30 #define RCC_MAX_ENGINES 5 31 #define RCC_MAX_LANGUAGES 64 32 #define RCC_MAX_ALIASES 64 33 #define RCC_MAX_CLASSES 16 121 #define RCC_FLAG_NO_DEFAULT_CONFIGURATION 1 134 rcc_context rccCreateContext(
const char *locale_variable,
unsigned int max_languages,
unsigned int max_classes, rcc_class_ptr defclasses, rcc_init_flags
flags);
147 int rccInitDefaultContext(
const char *locale_variable,
unsigned int max_languages,
unsigned int max_classes, rcc_class_ptr defclasses, rcc_init_flags
flags);
332 #define RCC_CLASS_FLAG_CONST 0x01 334 #define RCC_CLASS_FLAG_SKIP_SAVELOAD 0x02 441 #define RCC_OPTION_LEARNING_FLAG_USE 1 445 #define RCC_OPTION_LEARNING_FLAG_LEARN 2 1096 int rccStringNCmp(
const char *str1,
const char *str2,
size_t n);
1119 rcc_iconv
rccIConvOpen(
const char *from,
const char *to);
1134 char *
rccIConv(rcc_iconv icnv,
const char *buf,
size_t len,
size_t *rlen);
1185 char *
rccTranslate(rcc_translate translate,
const char *buf);
1240 rcc_speller_result
rccSpeller(rcc_speller speller,
const char *word);
1453 #define rccFrom(ctx, class_id, buf) rccSizedFrom(ctx, class_id, buf, 0) 1454 #define rccTo(ctx, class_id, buf) rccSizedTo(ctx, class_id, buf, NULL) 1455 #define rccRecode(ctx, from, to, buf) rccSizedRecode(ctx, from, to, buf, 0, NULL) 1457 #define rccFromCharset(ctx, charset, buf) rccSizedFromCharset(ctx, charset, buf, 0) 1458 #define rccToCharset(ctx, charset, buf) rccSizedToCharset(ctx, charset, buf, NULL) 1459 #define rccRecodeToCharset(ctx, class_id, charset, buf) rccSizedRecodeToCharset(ctx, class_id, charset, buf, 0, NULL) 1460 #define rccRecodeFromCharset(ctx, class_id, charset, buf) rccSizedRecodeFromCharset(ctx, class_id, charset, buf, 0, NULL) 1461 #define rccRecodeCharsets(ctx, from, to, buf) rccSizedRecodeCharsets(ctx, from, to, buf, 0, NULL) 1463 #define rccConfigFrom(ctx, class_id, buf) rccConfigSizedFrom(ctx, class_id, buf, 0) 1464 #define rccConfigTo(ctx, class_id, buf) rccConfigSizedTo(ctx, class_id, buf, NULL) 1465 #define rccConfigRecode(ctx, from, to, buf) rccConfigSizedRecode(ctx, from, to, buf, 0, NULL) 1466 #define rccConfigRecodeToCharset(ctx, class_id, charset, buf) rccConfigSizedRecodeToCharset(ctx, class_id, charset, buf, 0, NULL) 1467 #define rccConfigRecodeFromCharset(ctx, class_id, charset, buf) rccConfigSizedRecodeFromCharset(ctx, class_id, charset, buf, 0, NULL) 1498 typedef rcc_engine *(*rcc_plugin_engine_info_function)(
const char *lang);
1514 #define RCC_CC_FLAG_HAVE_BERKLEY_DB 0x01 1518 #define RCC_CC_FLAG_HAVE_DYNAMIC_ENGINES 0x02 1522 #define RCC_CC_FLAG_HAVE_ENCA 0x04 1526 #define RCC_CC_FLAG_HAVE_RCD 0x08 1530 #define RCC_CC_FLAG_HAVE_LIBTRANSLATE 0x10 1554 #define RCC_OPTION_TRANSLATE_SKIP_PARRENT RCC_OPTION_TRANSLATE_SKIP_PARENT 1555 #define RCC_SPELLER_ALMOST_PARRENT RCC_SPELLER_ALMOST_PARENT 1556 #define RCC_SPELLER_PARRENT RCC_SPELLER_PARENT 1557 #define rccSpellerAddParrent rccSpellerAddParent const char * rccGetClassFullName(rcc_context ctx, rcc_class_id class_id)
void * rcc_engine_internal
Definition: librcc.h:191
char * rccTranslate(rcc_translate translate, const char *buf)
Definition: librcc.h:1199
enum rcc_option_type_t rcc_option_type
rcc_string rccSizedRecodeFromCharset(rcc_context ctx, rcc_class_id class_id, const char *charset, const char *buf, size_t len, size_t *rlen)
int rcc_option_value
Definition: librcc.h:436
rcc_engine_id rccLanguageRegisterEngine(rcc_language *language, rcc_engine *engine)
#define RCC_MAX_CLASSES
Definition: librcc.h:33
void rccSpellerFree(rcc_speller speller)
rcc_language * rccEngineGetLanguage(rcc_engine_context ctx)
rcc_context rccEngineGetRccContext(rcc_engine_context ctx)
int rccLockConfiguration(rcc_context ctx, unsigned int lock_code)
int rccLocaleGetClassByName(const char *locale)
char * rccFS(rcc_context ctx, rcc_class_id from, rcc_class_id to, const char *fspath, const char *path, const char *filename)
int rccLoad(rcc_context ctx, const char *name)
const char * rccGetEngineName(rcc_context ctx, rcc_engine_id engine_id)
int rccSpellerResultIsCorrect(rcc_speller_result res)
struct rcc_engine_context_t * rcc_engine_context
Definition: librcc.h:86
rcc_autocharset_id rccConfigDetectCharset(rcc_language_config config, rcc_class_id class_id, const char *buf, size_t len)
const char * rccGetSelectedCharsetName(rcc_context ctx, rcc_class_id class_id)
int rccSetLanguage(rcc_context ctx, rcc_language_id language_id)
rcc_string rccConfigSizedFrom(rcc_language_config config, rcc_class_id class_id, const char *buf, size_t len)
rcc_context rccCreateContext(const char *locale_variable, unsigned int max_languages, unsigned int max_classes, rcc_class_ptr defclasses, rcc_init_flags flags)
rcc_class_default_charset * defcharset
Definition: librcc.h:372
rcc_config rccGetConfiguration()
const char * rccGetCurrentEngineName(rcc_context ctx)
const char * rccGetRealLanguageName(rcc_context ctx, rcc_language_id language_id)
rcc_option_translate_t
Definition: librcc.h:447
Definition: librcc.h:1535
const char * rccGetCurrentCharsetName(rcc_context ctx, rcc_class_id class_id)
rcc_language_id rccStringGetLanguage(rcc_const_string str)
int rccConfigSetCharset(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id)
size_t rccStringCheck(const char *str)
const char * rccConfigGetEngineName(rcc_language_config config, rcc_engine_id engine_id)
rcc_language_id rccRegisterLanguage(rcc_context ctx, rcc_language *language)
const char * rccGetString(const char *str)
Definition: librcc.h:1201
unsigned char rcc_autocharset_id
Definition: librcc.h:64
rcc_option_type_t
Definition: librcc.h:476
const char * rccConfigGetClassCharsetName(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id)
const char * rcc_const_string
Definition: librcc.h:1038
void(* rcc_engine_free_function)(rcc_engine_context ctx)
Definition: librcc.h:212
rcc_engine_init_function init_func
Definition: librcc.h:221
int rccStringNCmp(const char *str1, const char *str2, size_t n)
struct rcc_context_t * rcc_context
Definition: librcc.h:78
const char * rccConfigGetLanguageName(rcc_language_config config)
rcc_autocharset_id rccEngineGetAutoCharsetByName(rcc_engine_context ctx, const char *name)
int rccSave(rcc_context ctx, const char *name)
enum rcc_speller_result_t rcc_speller_result
int rccUnlockConfiguration(rcc_context ctx, unsigned int lock_code)
rcc_engine_free_function free_func
Definition: librcc.h:222
unsigned int rcc_init_flags
Definition: librcc.h:116
int rccTranslateSetTimeout(rcc_translate translate, unsigned long us)
const char * charset
Definition: librcc.h:327
const char * rccGetSelectedEngineName(rcc_context ctx)
rcc_option_range_type_t
Definition: librcc.h:485
rcc_engine_id rccGetSelectedEngine(rcc_context ctx)
rcc_charset_list charsets
Definition: librcc.h:235
const char * lang
Definition: librcc.h:248
const char * rccGetClassCharsetName(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id)
rcc_engine_list engines
Definition: librcc.h:236
const char * rccStringGetString(rcc_const_string str)
rcc_speller rccSpellerCreate(const char *lang)
const char * title
Definition: librcc.h:220
const char * rccGetCharsetName(rcc_context ctx, rcc_charset_id charset_id)
rcc_language * rcc_language_ptr
Definition: librcc.h:239
char * rccSizedToCharset(rcc_context ctx, const char *charset, rcc_const_string buf, size_t *rlen)
rcc_charset_id rccGetLocaleCharset(rcc_context ctx, const char *locale_variable)
int rccTranslateAllowOfflineMode(rcc_translate translate)
const struct rcc_class_t * rcc_class_ptr
Definition: librcc.h:93
rcc_language_id rccGetRealLanguage(rcc_context ctx, rcc_language_id language_id)
int rccSetEngineByName(rcc_context ctx, const char *name)
struct rcc_speller_t * rcc_speller
Definition: librcc.h:1193
rcc_charset rcc_charset_list[RCC_MAX_CHARSETS+1]
Definition: librcc.h:185
int rccSetCharsetByName(rcc_context ctx, rcc_class_id class_id, const char *name)
rcc_option_range_type type
Definition: librcc.h:497
rcc_engine_id rccConfigGetSelectedEngine(rcc_language_config config)
enum rcc_option_range_type_t rcc_option_range_type
const char * name
Definition: librcc.h:369
rcc_language_id rccDetectLanguage(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len)
rcc_iconv rccIConvOpen(const char *from, const char *to)
unsigned char rcc_charset_id
Definition: librcc.h:58
const unsigned long flags
Definition: librcc.h:374
#define RCC_MAX_ENGINES
Definition: librcc.h:30
const char * rccGetSelectedLanguageName(rcc_context ctx)
rcc_engine_internal(* rcc_engine_init_function)(rcc_engine_context ctx)
Definition: librcc.h:200
int rccSetLanguageByName(rcc_context ctx, const char *name)
const char * rcc_charset
Definition: librcc.h:181
Definition: librcc.h:1203
rcc_charset_id rccConfigGetCharsetByName(rcc_language_config config, const char *name)
rcc_class_type rccGetClassType(rcc_context ctx, rcc_class_id class_id)
#define RCC_MAX_ALIASES
Definition: librcc.h:32
char * rcc_string
Definition: librcc.h:1032
rcc_translate rccTranslateOpen(const char *from, const char *to)
rcc_string rccConfigSizedRecodeFromCharset(rcc_language_config config, rcc_class_id class_id, const char *charset, const char *buf, size_t len, size_t *rlen)
int rccOptionSetDefault(rcc_context ctx, rcc_option option)
rcc_engine_id rccGetEngineByName(rcc_context ctx, const char *name)
Definition: librcc.h:1202
int rccSpellerResultIsOwn(rcc_speller_result res)
enum rcc_option_translate_t rcc_option_translate
rcc_charset_id rccConfigGetClassCharsetByName(rcc_language_config config, rcc_class_id class_id, const char *name)
const char * rccConfigGetCharsetName(rcc_language_config config, rcc_charset_id charset_id)
struct rcc_language_config_t * rcc_language_config
Definition: librcc.h:92
const rcc_class_type class_type
Definition: librcc.h:370
unsigned long flags
Definition: librcc.h:1536
const char * rccGetCurrentLanguageName(rcc_context ctx)
rcc_charset_id rccGetSelectedCharset(rcc_context ctx, rcc_class_id class_id)
rcc_charset_id rccLanguageRegisterCharset(rcc_language *language, rcc_charset charset)
void rccTranslateClose(rcc_translate translate)
const char * rccGetOptionName(rcc_option option)
char * rccSizedRecodeCharsets(rcc_context ctx, const char *from, const char *to, const char *buf, size_t len, size_t *rlen)
int rccStringCaseCmp(const char *str1, const char *str2)
char * rccConfigSizedTo(rcc_language_config config, rcc_class_id class_id, rcc_const_string buf, size_t *rlen)
const char * rccGetLanguageName(rcc_context ctx, rcc_language_id language_id)
rcc_string rccSizedFrom(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len)
int rccLocaleGetCharset(char *result, const char *lv, unsigned int n)
const char * parent
Definition: librcc.h:266
enum rcc_class_type_t rcc_class_type
int rccRegisterDisabledCharsets(rcc_context ctx, rcc_class_id class_id, rcc_charset *charsets)
struct rcc_option_range_t rcc_option_range
rcc_language_id rccGetCurrentLanguage(rcc_context ctx)
int rccSetOption(rcc_context ctx, rcc_option option, rcc_option_value value)
rcc_option rccGetOptionByName(const char *name)
rcc_language_config rccGetUsableConfig(rcc_context ctx, rcc_language_id language_id)
char * rccSizedRecodeToCharset(rcc_context ctx, rcc_class_id class_id, const char *charset, rcc_const_string buf, size_t len, size_t *rlen)
size_t rccStringSizedCheck(const char *str, size_t len)
char * rccSizedTo(rcc_context ctx, rcc_class_id class_id, rcc_const_string buf, size_t *rlen)
rcc_class_id rccRegisterClass(rcc_context ctx, rcc_class *cl)
const struct rcc_compiled_configuration_t * rcc_compiled_configuration
Definition: librcc.h:1539
const char * lang
Definition: librcc.h:326
rcc_engine_ptr rcc_engine_list[RCC_MAX_ENGINES+1]
Definition: librcc.h:228
const char * fullname
Definition: librcc.h:373
unsigned char rcc_engine_id
Definition: librcc.h:71
rcc_engine_internal rccEngineGetInternal(rcc_engine_context ctx)
rcc_charset_id rccGetClassCharsetByName(rcc_context ctx, rcc_class_id class_id, const char *name)
int rccInitDb4(rcc_context ctx, const char *name, rcc_db4_flags flags)
rcc_engine_id rccConfigGetEngineByName(rcc_language_config config, const char *name)
int rccGetClassNumber(rcc_context ctx)
rcc_autocharset_id(* rcc_engine_function)(rcc_engine_context ctx, const char *buf, int len)
Definition: librcc.h:208
int rccSpellerResultIsPrecise(rcc_speller_result res)
int rcc_class_id
Definition: librcc.h:75
char * rccSizedRecode(rcc_context ctx, rcc_class_id from, rcc_class_id to, const char *buf, size_t len, size_t *rlen)
const char * rccConfigGetCurrentCharsetName(rcc_language_config config, rcc_class_id class_id)
int rccConfigGetEngineNumber(rcc_language_config config)
int rccStringNCaseCmp(const char *str1, const char *str2, size_t n)
rcc_relation_id rccRegisterLanguageRelation(rcc_context ctx, rcc_language_relation *relation)
rcc_engine_function func
Definition: librcc.h:223
char * rccConfigSizedRecode(rcc_language_config config, rcc_class_id from, rcc_class_id to, const char *buf, size_t len, size_t *rlen)
int rccStringCmp(const char *str1, const char *str2)
int rccGetLanguageNumber(rcc_context ctx)
rcc_option_value rccGetOptionValueByName(rcc_option option, const char *name)
rcc_charset_list charsets
Definition: librcc.h:224
rcc_charset_id rccConfigGetLocaleCharset(rcc_language_config config, const char *locale_variable)
int rccOptionIsDefault(rcc_context ctx, rcc_option option)
unsigned char rcc_language_id
Definition: librcc.h:43
struct rcc_translate_t * rcc_translate
Definition: librcc.h:1141
rcc_language_alias * rcc_language_alias_ptr
Definition: librcc.h:251
rcc_language_id rccGetSelectedLanguage(rcc_context ctx)
rcc_charset_id rccConfigGetSelectedCharset(rcc_language_config config, rcc_class_id class_id)
int rccConfigGetCharsetNumber(rcc_language_config config)
const char * rccGetClassName(rcc_context ctx, rcc_class_id class_id)
Definition: librcc.h:1200
#define RCC_MAX_CHARSETS
Definition: librcc.h:29
int rccConfigSetEngine(rcc_language_config config, rcc_engine_id engine_id)
int rccIsDisabledCharsetName(rcc_context ctx, rcc_class_id class_id, const char *charset)
int rccGetEngineNumber(rcc_context ctx)
const char * alias
Definition: librcc.h:247
unsigned char rcc_alias_id
Definition: librcc.h:47
rcc_engine * rccEngineGetInfo(rcc_engine_context ctx)
int rccConfigSetEngineByName(rcc_language_config config, const char *name)
int rccSetCharset(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id)
int rccGetCharsetNumber(rcc_context ctx)
rcc_engine * rcc_engine_ptr
Definition: librcc.h:227
void rccFreeContext(rcc_context ctx)
enum rcc_option_t rcc_option
int rccConfigIsDisabledCharset(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id)
const char * rccSizedGetString(const char *str, size_t len)
rcc_charset_id rccGetCurrentCharset(rcc_context ctx, rcc_class_id class_id)
rcc_charset_id rccConfigGetLocaleClassCharset(rcc_language_config config, rcc_class_id class_id, const char *locale_variable)
rcc_charset_id rccGetCharsetByName(rcc_context ctx, const char *name)
unsigned int rcc_db4_flags
Definition: librcc.h:160
const char * rccConfigGetCurrentEngineName(rcc_language_config config)
rcc_engine_id rccGetCurrentEngine(rcc_context ctx)
const char * rccConfigGetSelectedEngineName(rcc_language_config config)
rcc_engine_id rccConfigGetCurrentEngine(rcc_language_config config)
struct rcc_iconv_t * rcc_iconv
Definition: librcc.h:1108
rcc_option_value step
Definition: librcc.h:500
const char * lang
Definition: librcc.h:265
int rccConfigSetCharsetByName(rcc_language_config config, rcc_class_id class_id, const char *name)
rcc_language_config rccGetCurrentConfig(rcc_context ctx)
int rccIsDisabledCharset(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id)
void rccIConvClose(rcc_iconv icnv)
int rccSpellerAddParent(rcc_speller speller, rcc_speller parent)
int rccGetClassCharsetNumber(rcc_context ctx, rcc_class_id class_id)
rcc_language_ptr rcc_language_list[RCC_MAX_LANGUAGES+1]
Definition: librcc.h:240
rcc_autocharset_id rccDetectCharset(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len)
rcc_language_id rccConfigGetLanguage(rcc_language_config config)
#define RCC_MAX_LANGUAGES
Definition: librcc.h:31
int rccInitDefaultContext(const char *locale_variable, unsigned int max_languages, unsigned int max_classes, rcc_class_ptr defclasses, rcc_init_flags flags)
rcc_compiled_configuration rccGetCompiledConfiguration()
int rccConfigGetClassCharsetNumber(rcc_language_config config, rcc_class_id class_id)
int rccSetEngine(rcc_context ctx, rcc_engine_id engine_id)
const char * defvalue
Definition: librcc.h:371
char * rccStringExtractString(rcc_const_string str)
rcc_language_config rccGetConfig(rcc_context ctx, rcc_language_id language_id)
rcc_language_id rccGetLanguageByName(rcc_context ctx, const char *name)
rcc_language_config rccCheckConfig(rcc_context ctx, rcc_language_id language_id)
int rccRegisterAdditionalCharsets(rcc_context ctx, rcc_class_id class_id, rcc_charset *charsets)
rcc_string rccSizedFromCharset(rcc_context ctx, const char *charset, const char *buf, size_t len)
const char * rccGetOptionValueName(rcc_option option, rcc_option_value value)
rcc_language_alias_ptr rcc_language_alias_list[RCC_MAX_ALIASES+1]
Definition: librcc.h:252
unsigned char rcc_relation_id
Definition: librcc.h:51
rcc_option_value max
Definition: librcc.h:499
rcc_class_type_t
Definition: librcc.h:312
rcc_charset_id rccConfigGetCurrentCharset(rcc_language_config config, rcc_class_id class_id)
char * rccIConv(rcc_iconv icnv, const char *buf, size_t len, size_t *rlen)
rcc_option_value min
Definition: librcc.h:498
const char * sn
Definition: librcc.h:234
rcc_class_ptr rcc_class_list[RCC_MAX_CLASSES+1]
Definition: librcc.h:377
int rccLocaleGetLanguage(char *result, const char *lv, unsigned int n)
rcc_option_t
Definition: librcc.h:459
rcc_alias_id rccRegisterLanguageAlias(rcc_context ctx, rcc_language_alias *alias)
rcc_option_type rccOptionGetType(rcc_context ctx, rcc_option option)
rcc_option_range * rccOptionGetRange(rcc_context ctx, rcc_option option)
rcc_speller_result_t
Definition: librcc.h:1198
rcc_language_config rccGetConfigByName(rcc_context ctx, const char *name)
rcc_speller_result rccSpeller(rcc_speller speller, const char *word)
rcc_charset_id rccGetLocaleClassCharset(rcc_context ctx, rcc_class_id class_id, const char *locale_variable)
char * rccConfigSizedRecodeToCharset(rcc_language_config config, rcc_class_id class_id, const char *charset, rcc_const_string buf, size_t len, size_t *rlen)
void * rcc_config
Definition: librcc.h:1474
rcc_option_value rccGetOption(rcc_context ctx, rcc_option option)
const char * rccConfigGetSelectedCharsetName(rcc_language_config config, rcc_class_id class_id)