librcc.h
Go to the documentation of this file.
/*
LibRCC - public interface
Copyright (C) 2005-2018 Suren A. Chilingaryan <csa@suren.me>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License version 2.1 or later
as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _LIBRCC_H
#define _LIBRCC_H
#include <stdlib.h>
/*******************************************************************************
***************************** Global Defines ***********************************
*******************************************************************************/
#define RCC_MAX_CHARSETS 16
#define RCC_MAX_ENGINES 5
#define RCC_MAX_LANGUAGES 64
#define RCC_MAX_ALIASES 64
#define RCC_MAX_CLASSES 16
/* ID's */
typedef unsigned char rcc_language_id;
typedef unsigned char rcc_alias_id;
typedef unsigned char rcc_relation_id;
typedef unsigned char rcc_charset_id;
typedef unsigned char rcc_autocharset_id;
typedef unsigned char rcc_engine_id;
typedef int rcc_class_id;
/* Opaque Pointer's */
typedef struct rcc_context_t *rcc_context;
typedef struct rcc_engine_context_t *rcc_engine_context;
typedef struct rcc_language_config_t *rcc_language_config;
typedef const struct rcc_class_t *rcc_class_ptr;
#ifdef __cplusplus
extern "C" {
#endif
int rccInit();
void rccFree();
/*******************************************************************************
**************************** Initialization ************************************
*******************************************************************************/
typedef unsigned int rcc_init_flags;
#define RCC_FLAG_NO_DEFAULT_CONFIGURATION 1
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);
typedef unsigned int rcc_db4_flags;
int rccInitDb4(rcc_context ctx, const char *name, rcc_db4_flags flags);
int rccLockConfiguration(rcc_context ctx, unsigned int lock_code);
int rccUnlockConfiguration(rcc_context ctx, unsigned int lock_code);
/*******************************************************************************
******************* Altering Language Configuaration ***************************
*******************************************************************************/
typedef const char *rcc_charset;
typedef rcc_charset rcc_charset_list[RCC_MAX_CHARSETS+1];
/* Engines */
typedef void *rcc_engine_internal;
typedef rcc_engine_internal (*rcc_engine_init_function)(rcc_engine_context ctx);
typedef rcc_autocharset_id (*rcc_engine_function)(rcc_engine_context ctx, const char *buf, int len);
typedef void (*rcc_engine_free_function)(rcc_engine_context ctx);
struct rcc_engine_t {
const char *title;
rcc_engine_init_function init_func;
rcc_engine_free_function free_func;
rcc_engine_function func;
rcc_charset_list charsets;
};
typedef struct rcc_engine_t rcc_engine;
typedef rcc_engine *rcc_engine_ptr;
typedef rcc_engine_ptr rcc_engine_list[RCC_MAX_ENGINES+1];
struct rcc_language_t {
const char *sn;
rcc_charset_list charsets;
rcc_engine_list engines;
};
typedef struct rcc_language_t rcc_language;
typedef rcc_language *rcc_language_ptr;
typedef rcc_language_ptr rcc_language_list[RCC_MAX_LANGUAGES+1];
struct rcc_language_alias_t {
const char *alias;
const char *lang;
};
typedef struct rcc_language_alias_t rcc_language_alias;
typedef rcc_language_alias *rcc_language_alias_ptr;
typedef rcc_language_alias_ptr rcc_language_alias_list[RCC_MAX_ALIASES+1];
struct rcc_language_relation_t {
const char *lang;
const char *parent;
};
typedef struct rcc_language_relation_t rcc_language_relation;
rcc_language_id rccRegisterLanguage(rcc_context ctx, rcc_language *language);
rcc_charset_id rccLanguageRegisterCharset(rcc_language *language, rcc_charset charset);
rcc_engine_id rccLanguageRegisterEngine(rcc_language *language, rcc_engine *engine);
rcc_alias_id rccRegisterLanguageAlias(rcc_context ctx, rcc_language_alias *alias);
rcc_relation_id rccRegisterLanguageRelation(rcc_context ctx, rcc_language_relation *relation);
/*******************************************************************************
************************ Altering Configuaration *******************************
*******************************************************************************/
typedef enum rcc_class_type_t {
RCC_CLASS_INVALID = 0,
RCC_CLASS_STANDARD,
RCC_CLASS_KNOWN,
RCC_CLASS_FS,
RCC_CLASS_TRANSLATE_LOCALE,
RCC_CLASS_TRANSLATE_CURRENT,
RCC_CLASS_TRANSLATE_FROM,
} rcc_class_type;
struct rcc_class_default_charset_t {
const char *lang;
const char *charset;
};
typedef const struct rcc_class_default_charset_t rcc_class_default_charset;
#define RCC_CLASS_FLAG_CONST 0x01
#define RCC_CLASS_FLAG_SKIP_SAVELOAD 0x02
struct rcc_class_t {
const char *name;
const rcc_class_type class_type;
const char *defvalue;
rcc_class_default_charset *defcharset;
const char *fullname;
const unsigned long flags;
};
typedef const struct rcc_class_t rcc_class;
typedef rcc_class_ptr rcc_class_list[RCC_MAX_CLASSES+1];
rcc_class_id rccRegisterClass(rcc_context ctx, rcc_class *cl);
int rccRegisterAdditionalCharsets(rcc_context ctx, rcc_class_id class_id, rcc_charset *charsets);
int rccRegisterDisabledCharsets(rcc_context ctx, rcc_class_id class_id, rcc_charset *charsets);
int rccIsDisabledCharsetName(rcc_context ctx, rcc_class_id class_id, const char *charset);
rcc_class_type rccGetClassType(rcc_context ctx, rcc_class_id class_id);
const char *rccGetClassName(rcc_context ctx, rcc_class_id class_id);
const char *rccGetClassFullName(rcc_context ctx, rcc_class_id class_id);
/*******************************************************************************
************************ Altering Configuaration *******************************
*******************************************************************************/
typedef int rcc_option_value;
#define RCC_OPTION_LEARNING_FLAG_USE 1
#define RCC_OPTION_LEARNING_FLAG_LEARN 2
typedef enum rcc_option_translate_t {
RCC_OPTION_TRANSLATE_OFF = 0,
RCC_OPTION_TRANSLATE_TRANSLITERATE,
RCC_OPTION_TRANSLATE_TO_ENGLISH,
RCC_OPTION_TRANSLATE_SKIP_RELATED,
RCC_OPTION_TRANSLATE_SKIP_PARENT,
RCC_OPTION_TRANSLATE_FULL
} rcc_option_translate;
typedef enum rcc_option_t {
RCC_OPTION_LEARNING_MODE = 0,
RCC_OPTION_AUTODETECT_FS_TITLES,
RCC_OPTION_AUTODETECT_FS_NAMES,
RCC_OPTION_CONFIGURED_LANGUAGES_ONLY,
RCC_OPTION_AUTOENGINE_SET_CURRENT,
RCC_OPTION_AUTODETECT_LANGUAGE,
RCC_OPTION_TRANSLATE,
RCC_OPTION_TIMEOUT,
RCC_OPTION_OFFLINE,
RCC_MAX_OPTIONS,
RCC_OPTION_ALL
} rcc_option;
typedef enum rcc_option_type_t {
RCC_OPTION_TYPE_INVISIBLE = 0,
RCC_OPTION_TYPE_STANDARD,
RCC_OPTION_TYPE_MAX
} rcc_option_type;
typedef enum rcc_option_range_type_t {
RCC_OPTION_RANGE_TYPE_BOOLEAN = 0,
RCC_OPTION_RANGE_TYPE_RANGE,
RCC_OPTION_RANGE_TYPE_FLAGS,
RCC_OPTION_RANGE_TYPE_MENU,
RCC_OPTION_RANGE_TYPE_MAX
} rcc_option_range_type;
typedef struct rcc_option_range_t {
rcc_option_range_type type;
rcc_option_value min;
rcc_option_value max;
rcc_option_value step;
}rcc_option_range;
/* lng.c */
int rccGetLanguageNumber(rcc_context ctx);
int rccGetClassNumber(rcc_context ctx);
const char *rccGetLanguageName(rcc_context ctx, rcc_language_id language_id);
rcc_language_id rccGetLanguageByName(rcc_context ctx, const char *name);
rcc_language_id rccGetRealLanguage(rcc_context ctx, rcc_language_id language_id);
const char *rccGetRealLanguageName(rcc_context ctx, rcc_language_id language_id);
rcc_language_id rccGetSelectedLanguage(rcc_context ctx);
const char *rccGetSelectedLanguageName(rcc_context ctx);
rcc_language_id rccGetCurrentLanguage(rcc_context ctx);
const char *rccGetCurrentLanguageName(rcc_context ctx);
int rccSetLanguage(rcc_context ctx, rcc_language_id language_id);
int rccSetLanguageByName(rcc_context ctx, const char *name);
/* opt.c */
rcc_option_value rccGetOption(rcc_context ctx, rcc_option option);
int rccOptionIsDefault(rcc_context ctx, rcc_option option);
int rccOptionSetDefault(rcc_context ctx, rcc_option option);
int rccSetOption(rcc_context ctx, rcc_option option, rcc_option_value value);
rcc_option_type rccOptionGetType(rcc_context ctx, rcc_option option);
rcc_option_range *rccOptionGetRange(rcc_context ctx, rcc_option option);
const char *rccGetOptionName(rcc_option option);
const char *rccGetOptionValueName(rcc_option option, rcc_option_value value);
rcc_option rccGetOptionByName(const char *name);
rcc_option_value rccGetOptionValueByName(rcc_option option, const char *name);
/* lngconfig.c */
rcc_language_config rccCheckConfig(rcc_context ctx, rcc_language_id language_id);
rcc_language_config rccGetConfig(rcc_context ctx, rcc_language_id language_id);
rcc_language_config rccGetUsableConfig(rcc_context ctx, rcc_language_id language_id);
rcc_language_config rccGetConfigByName(rcc_context ctx, const char *name);
rcc_language_config rccGetCurrentConfig(rcc_context ctx);
rcc_language_id rccConfigGetLanguage(rcc_language_config config);
const char *rccConfigGetLanguageName(rcc_language_config config);
int rccConfigGetCharsetNumber(rcc_language_config config);
int rccConfigGetClassCharsetNumber(rcc_language_config config, rcc_class_id class_id);
int rccConfigGetEngineNumber(rcc_language_config config);
const char *rccConfigGetEngineName(rcc_language_config config, rcc_engine_id engine_id);
const char *rccConfigGetCharsetName(rcc_language_config config, rcc_charset_id charset_id);
const char *rccConfigGetClassCharsetName(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id);
rcc_engine_id rccConfigGetEngineByName(rcc_language_config config, const char *name);
rcc_charset_id rccConfigGetCharsetByName(rcc_language_config config, const char *name);
rcc_charset_id rccConfigGetClassCharsetByName(rcc_language_config config, rcc_class_id class_id, const char *name);
int rccConfigIsDisabledCharset(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id);
rcc_engine_id rccConfigGetSelectedEngine(rcc_language_config config);
const char *rccConfigGetSelectedEngineName(rcc_language_config config);
rcc_engine_id rccConfigGetCurrentEngine(rcc_language_config config);
const char *rccConfigGetCurrentEngineName(rcc_language_config config);
rcc_charset_id rccConfigGetSelectedCharset(rcc_language_config config, rcc_class_id class_id);
const char *rccConfigGetSelectedCharsetName(rcc_language_config config, rcc_class_id class_id);
rcc_charset_id rccConfigGetCurrentCharset(rcc_language_config config, rcc_class_id class_id);
const char *rccConfigGetCurrentCharsetName(rcc_language_config config, rcc_class_id class_id);
int rccConfigSetEngine(rcc_language_config config, rcc_engine_id engine_id);
int rccConfigSetCharset(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id);
int rccConfigSetEngineByName(rcc_language_config config, const char *name);
int rccConfigSetCharsetByName(rcc_language_config config, rcc_class_id class_id, const char *name);
rcc_charset_id rccConfigGetLocaleCharset(rcc_language_config config, const char *locale_variable);
rcc_charset_id rccConfigGetLocaleClassCharset(rcc_language_config config, rcc_class_id class_id, const char *locale_variable);
/* curconfig.c */
int rccGetCharsetNumber(rcc_context ctx);
int rccGetClassCharsetNumber(rcc_context ctx, rcc_class_id class_id);
int rccGetEngineNumber(rcc_context ctx);
const char *rccGetEngineName(rcc_context ctx, rcc_engine_id engine_id);
const char *rccGetCharsetName(rcc_context ctx, rcc_charset_id charset_id);
const char *rccGetClassCharsetName(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id);
rcc_engine_id rccGetEngineByName(rcc_context ctx, const char *name);
rcc_charset_id rccGetCharsetByName(rcc_context ctx, const char *name);
rcc_charset_id rccGetClassCharsetByName(rcc_context ctx, rcc_class_id class_id, const char *name);
int rccIsDisabledCharset(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id);
rcc_engine_id rccGetSelectedEngine(rcc_context ctx);
const char *rccGetSelectedEngineName(rcc_context ctx);
rcc_engine_id rccGetCurrentEngine(rcc_context ctx);
const char *rccGetCurrentEngineName(rcc_context ctx);
rcc_charset_id rccGetSelectedCharset(rcc_context ctx, rcc_class_id class_id);
const char *rccGetSelectedCharsetName(rcc_context ctx, rcc_class_id class_id);
rcc_charset_id rccGetCurrentCharset(rcc_context ctx, rcc_class_id class_id);
const char *rccGetCurrentCharsetName(rcc_context ctx, rcc_class_id class_id);
int rccSetEngine(rcc_context ctx, rcc_engine_id engine_id);
int rccSetCharset(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id);
int rccSetEngineByName(rcc_context ctx, const char *name);
int rccSetCharsetByName(rcc_context ctx, rcc_class_id class_id, const char *name);
rcc_charset_id rccGetLocaleCharset(rcc_context ctx, const char *locale_variable);
rcc_charset_id rccGetLocaleClassCharset(rcc_context ctx, rcc_class_id class_id, const char *locale_variable);
rcc_autocharset_id rccDetectCharset(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len);
/*******************************************************************************
************************ Language Configuaration *******************************
*******************************************************************************/
/*******************************************************************************
************************ RCC_STRING Manipulations ******************************
*******************************************************************************/
/* string.c */
typedef char *rcc_string;
typedef const char *rcc_const_string;
size_t rccStringCheck(const char *str);
size_t rccStringSizedCheck(const char *str, size_t len);
rcc_language_id rccStringGetLanguage(rcc_const_string str);
const char *rccStringGetString(rcc_const_string str);
char *rccStringExtractString(rcc_const_string str);
const char *rccGetString(const char *str);
const char *rccSizedGetString(const char *str, size_t len);
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 **************************************
*******************************************************************************/
/* rcciconv.c */
typedef struct rcc_iconv_t *rcc_iconv;
rcc_iconv rccIConvOpen(const char *from, const char *to);
void rccIConvClose(rcc_iconv icnv);
char *rccIConv(rcc_iconv icnv, const char *buf, size_t len, size_t *rlen);
/* rcctranslate.c */
typedef struct rcc_translate_t *rcc_translate;
rcc_translate rccTranslateOpen(const char *from, const char *to);
void rccTranslateClose(rcc_translate translate);
/*
* Set translation timeout
*
* @param translate is translating context
* @param us is timeout in microseconds (0 - no timeout)
* @return non-zero value is returned in the case of errror
*/
int rccTranslateSetTimeout(rcc_translate translate, unsigned long us);
/*
* Allows translation engine to perform pending task after the main program is
* being terminated
*
* @param translate is translating context
* @return non-zero value is returned in the case of errror
*/
int rccTranslateAllowOfflineMode(rcc_translate translate);
char *rccTranslate(rcc_translate translate, const char *buf);
/* rccspell.c */
typedef struct rcc_speller_t *rcc_speller;
typedef enum rcc_speller_result_t {
RCC_SPELLER_INCORRECT = 0,
RCC_SPELLER_ALMOST_PARENT,
RCC_SPELLER_ALMOST_CORRECT,
RCC_SPELLER_PARENT,
RCC_SPELLER_CORRECT
} rcc_speller_result;
int rccSpellerResultIsOwn(rcc_speller_result res);
int rccSpellerResultIsPrecise(rcc_speller_result res);
int rccSpellerResultIsCorrect(rcc_speller_result res);
rcc_speller rccSpellerCreate(const char *lang);
void rccSpellerFree(rcc_speller speller);
int rccSpellerAddParent(rcc_speller speller, rcc_speller parent);
rcc_speller_result rccSpeller(rcc_speller speller, const char *word);
/* recode.c */
rcc_language_id rccDetectLanguage(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len);
rcc_autocharset_id rccConfigDetectCharset(rcc_language_config config, rcc_class_id class_id, const char *buf, size_t len);
rcc_string rccSizedFrom(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len);
char *rccSizedTo(rcc_context ctx, rcc_class_id class_id, rcc_const_string buf, size_t *rlen);
char *rccSizedRecode(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);
rcc_string rccSizedFromCharset(rcc_context ctx, const char *charset, const char *buf, size_t len);
char *rccSizedToCharset(rcc_context ctx, const char *charset, rcc_const_string buf, size_t *rlen);
char *rccSizedRecodeToCharset(rcc_context ctx, rcc_class_id class_id, const char *charset, rcc_const_string buf, size_t len, size_t *rlen);
rcc_string rccSizedRecodeFromCharset(rcc_context ctx, rcc_class_id class_id, const char *charset, const char *buf, size_t len, size_t *rlen);
char *rccSizedRecodeCharsets(rcc_context ctx, const char *from, const char *to, const char *buf, size_t len, size_t *rlen);
rcc_string rccConfigSizedFrom(rcc_language_config config, rcc_class_id class_id, const char *buf, size_t len);
char *rccConfigSizedTo(rcc_language_config config, rcc_class_id class_id, rcc_const_string buf, size_t *rlen);
char *rccConfigSizedRecode(rcc_language_config config, rcc_class_id from, rcc_class_id to, const char *buf, size_t len, size_t *rlen);
rcc_string rccConfigSizedRecodeFromCharset(rcc_language_config config, rcc_class_id class_id, const char *charset, const char *buf, size_t len, size_t *rlen);
char *rccConfigSizedRecodeToCharset(rcc_language_config config, rcc_class_id class_id, const char *charset, rcc_const_string buf, size_t len, size_t *rlen);
#define rccFrom(ctx, class_id, buf) rccSizedFrom(ctx, class_id, buf, 0)
#define rccTo(ctx, class_id, buf) rccSizedTo(ctx, class_id, buf, NULL)
#define rccRecode(ctx, from, to, buf) rccSizedRecode(ctx, from, to, buf, 0, NULL)
#define rccFromCharset(ctx, charset, buf) rccSizedFromCharset(ctx, charset, buf, 0)
#define rccToCharset(ctx, charset, buf) rccSizedToCharset(ctx, charset, buf, NULL)
#define rccRecodeToCharset(ctx, class_id, charset, buf) rccSizedRecodeToCharset(ctx, class_id, charset, buf, 0, NULL)
#define rccRecodeFromCharset(ctx, class_id, charset, buf) rccSizedRecodeFromCharset(ctx, class_id, charset, buf, 0, NULL)
#define rccRecodeCharsets(ctx, from, to, buf) rccSizedRecodeCharsets(ctx, from, to, buf, 0, NULL)
#define rccConfigFrom(ctx, class_id, buf) rccConfigSizedFrom(ctx, class_id, buf, 0)
#define rccConfigTo(ctx, class_id, buf) rccConfigSizedTo(ctx, class_id, buf, NULL)
#define rccConfigRecode(ctx, from, to, buf) rccConfigSizedRecode(ctx, from, to, buf, 0, NULL)
#define rccConfigRecodeToCharset(ctx, class_id, charset, buf) rccConfigSizedRecodeToCharset(ctx, class_id, charset, buf, 0, NULL)
#define rccConfigRecodeFromCharset(ctx, class_id, charset, buf) rccConfigSizedRecodeFromCharset(ctx, class_id, charset, buf, 0, NULL)
/*******************************************************************************
******************************** Options ***************************************
*******************************************************************************/
/* xml.c */
typedef void *rcc_config;
rcc_config rccGetConfiguration();
int rccSave(rcc_context ctx, const char *name);
int rccLoad(rcc_context ctx, const char *name);
/*******************************************************************************
**************************** Engine Plugins ************************************
*******************************************************************************/
typedef rcc_engine *(*rcc_plugin_engine_info_function)(const char *lang);
rcc_engine_internal rccEngineGetInternal(rcc_engine_context ctx);
rcc_language *rccEngineGetLanguage(rcc_engine_context ctx);
rcc_context rccEngineGetRccContext(rcc_engine_context ctx);
rcc_engine *rccEngineGetInfo(rcc_engine_context ctx);
rcc_autocharset_id rccEngineGetAutoCharsetByName(rcc_engine_context ctx, const char *name);
/*******************************************************************************
**************************** Configuration *************************************
*******************************************************************************/
#define RCC_CC_FLAG_HAVE_BERKLEY_DB 0x01
#define RCC_CC_FLAG_HAVE_DYNAMIC_ENGINES 0x02
#define RCC_CC_FLAG_HAVE_ENCA 0x04
#define RCC_CC_FLAG_HAVE_RCD 0x08
#define RCC_CC_FLAG_HAVE_LIBTRANSLATE 0x10
struct rcc_compiled_configuration_t {
unsigned long flags;
};
typedef struct rcc_compiled_configuration_t rcc_compiled_configuration_s;
typedef const struct rcc_compiled_configuration_t *rcc_compiled_configuration;
rcc_compiled_configuration rccGetCompiledConfiguration();
int rccLocaleGetClassByName(const char *locale);
int rccLocaleGetLanguage(char *result, const char *lv, unsigned int n);
int rccLocaleGetCharset(char *result, const char *lv, unsigned int n);
#define RCC_OPTION_TRANSLATE_SKIP_PARRENT RCC_OPTION_TRANSLATE_SKIP_PARENT
#define RCC_SPELLER_ALMOST_PARRENT RCC_SPELLER_ALMOST_PARENT
#define RCC_SPELLER_PARRENT RCC_SPELLER_PARENT
#define rccSpellerAddParrent rccSpellerAddParent
#ifdef __cplusplus
}
#endif
#endif /* _LIBRCC_H */
rcc_option_t
rcc_option_t
Definition librcc.h:459
RCC_OPTION_OFFLINE
@ RCC_OPTION_OFFLINE
Definition librcc.h:468
RCC_OPTION_TRANSLATE
@ RCC_OPTION_TRANSLATE
Definition librcc.h:466
RCC_OPTION_LEARNING_MODE
@ RCC_OPTION_LEARNING_MODE
Definition librcc.h:460
RCC_OPTION_ALL
@ RCC_OPTION_ALL
Definition librcc.h:470
RCC_OPTION_AUTODETECT_LANGUAGE
@ RCC_OPTION_AUTODETECT_LANGUAGE
Definition librcc.h:465
RCC_OPTION_AUTOENGINE_SET_CURRENT
@ RCC_OPTION_AUTOENGINE_SET_CURRENT
Definition librcc.h:464
RCC_OPTION_TIMEOUT
@ RCC_OPTION_TIMEOUT
Definition librcc.h:467
RCC_MAX_OPTIONS
@ RCC_MAX_OPTIONS
Definition librcc.h:469
RCC_OPTION_AUTODETECT_FS_TITLES
@ RCC_OPTION_AUTODETECT_FS_TITLES
Definition librcc.h:461
RCC_OPTION_AUTODETECT_FS_NAMES
@ RCC_OPTION_AUTODETECT_FS_NAMES
Definition librcc.h:462
RCC_OPTION_CONFIGURED_LANGUAGES_ONLY
@ RCC_OPTION_CONFIGURED_LANGUAGES_ONLY
Definition librcc.h:463
rcc_engine_list
rcc_engine_ptr rcc_engine_list[RCC_MAX_ENGINES+1]
Definition librcc.h:228
rccLocaleGetLanguage
int rccLocaleGetLanguage(char *result, const char *lv, unsigned int n)
rccSizedGetString
const char * rccSizedGetString(const char *str, size_t len)
rccGetClassFullName
const char * rccGetClassFullName(rcc_context ctx, rcc_class_id class_id)
rccGetOptionValueByName
rcc_option_value rccGetOptionValueByName(rcc_option option, const char *name)
rccStringNCmp
int rccStringNCmp(const char *str1, const char *str2, size_t n)
rccConfigIsDisabledCharset
int rccConfigIsDisabledCharset(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id)
rcc_speller
struct rcc_speller_t * rcc_speller
Definition librcc.h:1193
rccEngineGetInfo
rcc_engine * rccEngineGetInfo(rcc_engine_context ctx)
rccGetClassName
const char * rccGetClassName(rcc_context ctx, rcc_class_id class_id)
rccConfigSetEngine
int rccConfigSetEngine(rcc_language_config config, rcc_engine_id engine_id)
rccTranslate
char * rccTranslate(rcc_translate translate, const char *buf)
rccConfigGetClassCharsetByName
rcc_charset_id rccConfigGetClassCharsetByName(rcc_language_config config, rcc_class_id class_id, const char *name)
RCC_MAX_LANGUAGES
#define RCC_MAX_LANGUAGES
Definition librcc.h:31
rccGetClassCharsetName
const char * rccGetClassCharsetName(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id)
rccSetLanguageByName
int rccSetLanguageByName(rcc_context ctx, const char *name)
rccGetOptionByName
rcc_option rccGetOptionByName(const char *name)
rccInitDefaultContext
int rccInitDefaultContext(const char *locale_variable, unsigned int max_languages, unsigned int max_classes, rcc_class_ptr defclasses, rcc_init_flags flags)
rccRegisterClass
rcc_class_id rccRegisterClass(rcc_context ctx, rcc_class *cl)
rccGetCharsetByName
rcc_charset_id rccGetCharsetByName(rcc_context ctx, const char *name)
rcc_option_type
enum rcc_option_type_t rcc_option_type
rccGetCurrentCharsetName
const char * rccGetCurrentCharsetName(rcc_context ctx, rcc_class_id class_id)
rccEngineGetInternal
rcc_engine_internal rccEngineGetInternal(rcc_engine_context ctx)
rccSpellerResultIsPrecise
int rccSpellerResultIsPrecise(rcc_speller_result res)
rccIConvClose
void rccIConvClose(rcc_iconv icnv)
rccGetEngineNumber
int rccGetEngineNumber(rcc_context ctx)
rcc_class_ptr
const struct rcc_class_t * rcc_class_ptr
Definition librcc.h:93
rccConfigGetClassCharsetNumber
int rccConfigGetClassCharsetNumber(rcc_language_config config, rcc_class_id class_id)
rccGetSelectedCharsetName
const char * rccGetSelectedCharsetName(rcc_context ctx, rcc_class_id class_id)
rccLocaleGetClassByName
int rccLocaleGetClassByName(const char *locale)
rcc_option_range
struct rcc_option_range_t rcc_option_range
rcc_option_translate
enum rcc_option_translate_t rcc_option_translate
rccSizedRecodeFromCharset
rcc_string rccSizedRecodeFromCharset(rcc_context ctx, rcc_class_id class_id, const char *charset, const char *buf, size_t len, size_t *rlen)
rccStringNCaseCmp
int rccStringNCaseCmp(const char *str1, const char *str2, size_t n)
rcc_engine_init_function
rcc_engine_internal(* rcc_engine_init_function)(rcc_engine_context ctx)
Definition librcc.h:200
rccSpellerResultIsCorrect
int rccSpellerResultIsCorrect(rcc_speller_result res)
rccGetCurrentLanguageName
const char * rccGetCurrentLanguageName(rcc_context ctx)
rccIsDisabledCharsetName
int rccIsDisabledCharsetName(rcc_context ctx, rcc_class_id class_id, const char *charset)
rccLockConfiguration
int rccLockConfiguration(rcc_context ctx, unsigned int lock_code)
rcc_charset_id
unsigned char rcc_charset_id
Definition librcc.h:58
rccRegisterAdditionalCharsets
int rccRegisterAdditionalCharsets(rcc_context ctx, rcc_class_id class_id, rcc_charset *charsets)
rcc_relation_id
unsigned char rcc_relation_id
Definition librcc.h:51
rccConfigGetCharsetName
const char * rccConfigGetCharsetName(rcc_language_config config, rcc_charset_id charset_id)
rccSpellerFree
void rccSpellerFree(rcc_speller speller)
rccGetCurrentConfig
rcc_language_config rccGetCurrentConfig(rcc_context ctx)
rcc_class_type
enum rcc_class_type_t rcc_class_type
rccSizedRecodeCharsets
char * rccSizedRecodeCharsets(rcc_context ctx, const char *from, const char *to, const char *buf, size_t len, size_t *rlen)
rccGetLocaleCharset
rcc_charset_id rccGetLocaleCharset(rcc_context ctx, const char *locale_variable)
rccConfigGetSelectedEngine
rcc_engine_id rccConfigGetSelectedEngine(rcc_language_config config)
rccSave
int rccSave(rcc_context ctx, const char *name)
rcc_engine
struct rcc_engine_t rcc_engine
Definition librcc.h:226
rcc_string
char * rcc_string
Definition librcc.h:1032
rcc_option_range_type
enum rcc_option_range_type_t rcc_option_range_type
rccFreeContext
void rccFreeContext(rcc_context ctx)
rccConfigGetCurrentCharsetName
const char * rccConfigGetCurrentCharsetName(rcc_language_config config, rcc_class_id class_id)
rccGetCharsetNumber
int rccGetCharsetNumber(rcc_context ctx)
rccConfigDetectCharset
rcc_autocharset_id rccConfigDetectCharset(rcc_language_config config, rcc_class_id class_id, const char *buf, size_t len)
rcc_const_string
const char * rcc_const_string
Definition librcc.h:1038
rccIsDisabledCharset
int rccIsDisabledCharset(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id)
rccRegisterLanguageAlias
rcc_alias_id rccRegisterLanguageAlias(rcc_context ctx, rcc_language_alias *alias)
rcc_class
const struct rcc_class_t rcc_class
Definition librcc.h:376
rccCreateContext
rcc_context rccCreateContext(const char *locale_variable, unsigned int max_languages, unsigned int max_classes, rcc_class_ptr defclasses, rcc_init_flags flags)
rccGetLanguageNumber
int rccGetLanguageNumber(rcc_context ctx)
rccConfigGetLanguage
rcc_language_id rccConfigGetLanguage(rcc_language_config config)
rcc_class_type_t
rcc_class_type_t
Definition librcc.h:312
RCC_CLASS_STANDARD
@ RCC_CLASS_STANDARD
Definition librcc.h:314
RCC_CLASS_TRANSLATE_FROM
@ RCC_CLASS_TRANSLATE_FROM
Definition librcc.h:319
RCC_CLASS_INVALID
@ RCC_CLASS_INVALID
Definition librcc.h:313
RCC_CLASS_FS
@ RCC_CLASS_FS
Definition librcc.h:316
RCC_CLASS_KNOWN
@ RCC_CLASS_KNOWN
Definition librcc.h:315
RCC_CLASS_TRANSLATE_CURRENT
@ RCC_CLASS_TRANSLATE_CURRENT
Definition librcc.h:318
RCC_CLASS_TRANSLATE_LOCALE
@ RCC_CLASS_TRANSLATE_LOCALE
Definition librcc.h:317
rccEngineGetRccContext
rcc_context rccEngineGetRccContext(rcc_engine_context ctx)
rcc_option_value
int rcc_option_value
Definition librcc.h:436
rccOptionSetDefault
int rccOptionSetDefault(rcc_context ctx, rcc_option option)
rccStringCaseCmp
int rccStringCaseCmp(const char *str1, const char *str2)
rccGetConfiguration
rcc_config rccGetConfiguration()
rccTranslateSetTimeout
int rccTranslateSetTimeout(rcc_translate translate, unsigned long us)
rccOptionIsDefault
int rccOptionIsDefault(rcc_context ctx, rcc_option option)
rccConfigGetCurrentEngine
rcc_engine_id rccConfigGetCurrentEngine(rcc_language_config config)
rccConfigGetCharsetNumber
int rccConfigGetCharsetNumber(rcc_language_config config)
rccSpeller
rcc_speller_result rccSpeller(rcc_speller speller, const char *word)
rccGetSelectedLanguageName
const char * rccGetSelectedLanguageName(rcc_context ctx)
rccGetLanguageName
const char * rccGetLanguageName(rcc_context ctx, rcc_language_id language_id)
rccCheckConfig
rcc_language_config rccCheckConfig(rcc_context ctx, rcc_language_id language_id)
rcc_language_alias
struct rcc_language_alias_t rcc_language_alias
Definition librcc.h:250
rccConfigGetCurrentEngineName
const char * rccConfigGetCurrentEngineName(rcc_language_config config)
rccRegisterLanguageRelation
rcc_relation_id rccRegisterLanguageRelation(rcc_context ctx, rcc_language_relation *relation)
rcc_option_translate_t
rcc_option_translate_t
Definition librcc.h:447
RCC_OPTION_TRANSLATE_TO_ENGLISH
@ RCC_OPTION_TRANSLATE_TO_ENGLISH
Definition librcc.h:450
RCC_OPTION_TRANSLATE_OFF
@ RCC_OPTION_TRANSLATE_OFF
Definition librcc.h:448
RCC_OPTION_TRANSLATE_SKIP_RELATED
@ RCC_OPTION_TRANSLATE_SKIP_RELATED
Definition librcc.h:451
RCC_OPTION_TRANSLATE_FULL
@ RCC_OPTION_TRANSLATE_FULL
Definition librcc.h:453
RCC_OPTION_TRANSLATE_TRANSLITERATE
@ RCC_OPTION_TRANSLATE_TRANSLITERATE
Definition librcc.h:449
rcc_class_id
int rcc_class_id
Definition librcc.h:75
rccSetEngineByName
int rccSetEngineByName(rcc_context ctx, const char *name)
rccInit
int rccInit()
rccGetCurrentEngine
rcc_engine_id rccGetCurrentEngine(rcc_context ctx)
rccLocaleGetCharset
int rccLocaleGetCharset(char *result, const char *lv, unsigned int n)
rccGetCompiledConfiguration
rcc_compiled_configuration rccGetCompiledConfiguration()
rccConfigGetLocaleClassCharset
rcc_charset_id rccConfigGetLocaleClassCharset(rcc_language_config config, rcc_class_id class_id, const char *locale_variable)
rccSpellerResultIsOwn
int rccSpellerResultIsOwn(rcc_speller_result res)
rccGetConfigByName
rcc_language_config rccGetConfigByName(rcc_context ctx, const char *name)
rccLoad
int rccLoad(rcc_context ctx, const char *name)
rccConfigGetSelectedCharset
rcc_charset_id rccConfigGetSelectedCharset(rcc_language_config config, rcc_class_id class_id)
rcc_option_type_t
rcc_option_type_t
Definition librcc.h:476
RCC_OPTION_TYPE_INVISIBLE
@ RCC_OPTION_TYPE_INVISIBLE
Definition librcc.h:477
RCC_OPTION_TYPE_STANDARD
@ RCC_OPTION_TYPE_STANDARD
Definition librcc.h:478
RCC_OPTION_TYPE_MAX
@ RCC_OPTION_TYPE_MAX
Definition librcc.h:479
rccSetCharsetByName
int rccSetCharsetByName(rcc_context ctx, rcc_class_id class_id, const char *name)
rcc_compiled_configuration
const struct rcc_compiled_configuration_t * rcc_compiled_configuration
Definition librcc.h:1539
rccSetLanguage
int rccSetLanguage(rcc_context ctx, rcc_language_id language_id)
rccSetOption
int rccSetOption(rcc_context ctx, rcc_option option, rcc_option_value value)
rccGetCurrentCharset
rcc_charset_id rccGetCurrentCharset(rcc_context ctx, rcc_class_id class_id)
rccConfigSizedRecodeToCharset
char * rccConfigSizedRecodeToCharset(rcc_language_config config, rcc_class_id class_id, const char *charset, rcc_const_string buf, size_t len, size_t *rlen)
rccGetCurrentEngineName
const char * rccGetCurrentEngineName(rcc_context ctx)
rcc_init_flags
unsigned int rcc_init_flags
Definition librcc.h:116
rccGetSelectedLanguage
rcc_language_id rccGetSelectedLanguage(rcc_context ctx)
rccConfigGetClassCharsetName
const char * rccConfigGetClassCharsetName(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id)
rccInitDb4
int rccInitDb4(rcc_context ctx, const char *name, rcc_db4_flags flags)
rccGetClassCharsetByName
rcc_charset_id rccGetClassCharsetByName(rcc_context ctx, rcc_class_id class_id, const char *name)
rcc_db4_flags
unsigned int rcc_db4_flags
Definition librcc.h:160
rccIConv
char * rccIConv(rcc_iconv icnv, const char *buf, size_t len, size_t *rlen)
rccGetString
const char * rccGetString(const char *str)
rccConfigGetEngineNumber
int rccConfigGetEngineNumber(rcc_language_config config)
RCC_MAX_CLASSES
#define RCC_MAX_CLASSES
Definition librcc.h:33
rccGetCharsetName
const char * rccGetCharsetName(rcc_context ctx, rcc_charset_id charset_id)
rccGetOptionName
const char * rccGetOptionName(rcc_option option)
rcc_language_relation
struct rcc_language_relation_t rcc_language_relation
Definition librcc.h:268
rccConfigSizedFrom
rcc_string rccConfigSizedFrom(rcc_language_config config, rcc_class_id class_id, const char *buf, size_t len)
rccFS
char * rccFS(rcc_context ctx, rcc_class_id from, rcc_class_id to, const char *fspath, const char *path, const char *filename)
rcc_speller_result
enum rcc_speller_result_t rcc_speller_result
rccSizedRecodeToCharset
char * rccSizedRecodeToCharset(rcc_context ctx, rcc_class_id class_id, const char *charset, rcc_const_string buf, size_t len, size_t *rlen)
rccConfigSizedTo
char * rccConfigSizedTo(rcc_language_config config, rcc_class_id class_id, rcc_const_string buf, size_t *rlen)
rccStringCmp
int rccStringCmp(const char *str1, const char *str2)
rcc_language_ptr
rcc_language * rcc_language_ptr
Definition librcc.h:239
rccGetSelectedCharset
rcc_charset_id rccGetSelectedCharset(rcc_context ctx, rcc_class_id class_id)
rccGetCurrentLanguage
rcc_language_id rccGetCurrentLanguage(rcc_context ctx)
rcc_language_id
unsigned char rcc_language_id
Definition librcc.h:43
rccGetClassNumber
int rccGetClassNumber(rcc_context ctx)
rccSpellerCreate
rcc_speller rccSpellerCreate(const char *lang)
rccStringExtractString
char * rccStringExtractString(rcc_const_string str)
rccGetEngineByName
rcc_engine_id rccGetEngineByName(rcc_context ctx, const char *name)
rccStringCheck
size_t rccStringCheck(const char *str)
rccGetClassType
rcc_class_type rccGetClassType(rcc_context ctx, rcc_class_id class_id)
rcc_language_list
rcc_language_ptr rcc_language_list[RCC_MAX_LANGUAGES+1]
Definition librcc.h:240
rccConfigSizedRecodeFromCharset
rcc_string rccConfigSizedRecodeFromCharset(rcc_language_config config, rcc_class_id class_id, const char *charset, const char *buf, size_t len, size_t *rlen)
rccSizedToCharset
char * rccSizedToCharset(rcc_context ctx, const char *charset, rcc_const_string buf, size_t *rlen)
rcc_speller_result_t
rcc_speller_result_t
Definition librcc.h:1198
RCC_SPELLER_INCORRECT
@ RCC_SPELLER_INCORRECT
Definition librcc.h:1199
RCC_SPELLER_CORRECT
@ RCC_SPELLER_CORRECT
Definition librcc.h:1203
RCC_SPELLER_ALMOST_CORRECT
@ RCC_SPELLER_ALMOST_CORRECT
Definition librcc.h:1201
RCC_SPELLER_PARENT
@ RCC_SPELLER_PARENT
Definition librcc.h:1202
RCC_SPELLER_ALMOST_PARENT
@ RCC_SPELLER_ALMOST_PARENT
Definition librcc.h:1200
rcc_language_config
struct rcc_language_config_t * rcc_language_config
Definition librcc.h:92
rccConfigSetCharsetByName
int rccConfigSetCharsetByName(rcc_language_config config, rcc_class_id class_id, const char *name)
rccTranslateAllowOfflineMode
int rccTranslateAllowOfflineMode(rcc_translate translate)
rcc_compiled_configuration_s
struct rcc_compiled_configuration_t rcc_compiled_configuration_s
Definition librcc.h:1538
rccConfigGetLocaleCharset
rcc_charset_id rccConfigGetLocaleCharset(rcc_language_config config, const char *locale_variable)
rccDetectLanguage
rcc_language_id rccDetectLanguage(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len)
rccConfigSetCharset
int rccConfigSetCharset(rcc_language_config config, rcc_class_id class_id, rcc_charset_id charset_id)
rccFree
void rccFree()
rccConfigGetCharsetByName
rcc_charset_id rccConfigGetCharsetByName(rcc_language_config config, const char *name)
rcc_engine_ptr
rcc_engine * rcc_engine_ptr
Definition librcc.h:227
rccRegisterDisabledCharsets
int rccRegisterDisabledCharsets(rcc_context ctx, rcc_class_id class_id, rcc_charset *charsets)
rccStringGetLanguage
rcc_language_id rccStringGetLanguage(rcc_const_string str)
rcc_language_alias_ptr
rcc_language_alias * rcc_language_alias_ptr
Definition librcc.h:251
rccLanguageRegisterEngine
rcc_engine_id rccLanguageRegisterEngine(rcc_language *language, rcc_engine *engine)
rccSizedTo
char * rccSizedTo(rcc_context ctx, rcc_class_id class_id, rcc_const_string buf, size_t *rlen)
rccGetConfig
rcc_language_config rccGetConfig(rcc_context ctx, rcc_language_id language_id)
rcc_engine_free_function
void(* rcc_engine_free_function)(rcc_engine_context ctx)
Definition librcc.h:212
rccSetEngine
int rccSetEngine(rcc_context ctx, rcc_engine_id engine_id)
rccGetRealLanguageName
const char * rccGetRealLanguageName(rcc_context ctx, rcc_language_id language_id)
rccSizedFrom
rcc_string rccSizedFrom(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len)
rcc_class_list
rcc_class_ptr rcc_class_list[RCC_MAX_CLASSES+1]
Definition librcc.h:377
rccTranslateClose
void rccTranslateClose(rcc_translate translate)
rcc_alias_id
unsigned char rcc_alias_id
Definition librcc.h:47
rccGetEngineName
const char * rccGetEngineName(rcc_context ctx, rcc_engine_id engine_id)
rccConfigSetEngineByName
int rccConfigSetEngineByName(rcc_language_config config, const char *name)
rcc_translate
struct rcc_translate_t * rcc_translate
Definition librcc.h:1141
rcc_language_alias_list
rcc_language_alias_ptr rcc_language_alias_list[RCC_MAX_ALIASES+1]
Definition librcc.h:252
rccEngineGetLanguage
rcc_language * rccEngineGetLanguage(rcc_engine_context ctx)
rcc_iconv
struct rcc_iconv_t * rcc_iconv
Definition librcc.h:1108
rcc_charset
const char * rcc_charset
Definition librcc.h:181
rcc_class_default_charset
const struct rcc_class_default_charset_t rcc_class_default_charset
Definition librcc.h:329
rccSizedFromCharset
rcc_string rccSizedFromCharset(rcc_context ctx, const char *charset, const char *buf, size_t len)
rcc_autocharset_id
unsigned char rcc_autocharset_id
Definition librcc.h:64
rccGetClassCharsetNumber
int rccGetClassCharsetNumber(rcc_context ctx, rcc_class_id class_id)
rccGetSelectedEngineName
const char * rccGetSelectedEngineName(rcc_context ctx)
rccGetOption
rcc_option_value rccGetOption(rcc_context ctx, rcc_option option)
rccConfigGetEngineName
const char * rccConfigGetEngineName(rcc_language_config config, rcc_engine_id engine_id)
rccConfigGetEngineByName
rcc_engine_id rccConfigGetEngineByName(rcc_language_config config, const char *name)
RCC_MAX_ENGINES
#define RCC_MAX_ENGINES
Definition librcc.h:30
rccConfigGetSelectedEngineName
const char * rccConfigGetSelectedEngineName(rcc_language_config config)
rccLanguageRegisterCharset
rcc_charset_id rccLanguageRegisterCharset(rcc_language *language, rcc_charset charset)
rccOptionGetRange
rcc_option_range * rccOptionGetRange(rcc_context ctx, rcc_option option)
rccIConvOpen
rcc_iconv rccIConvOpen(const char *from, const char *to)
rccGetSelectedEngine
rcc_engine_id rccGetSelectedEngine(rcc_context ctx)
rccUnlockConfiguration
int rccUnlockConfiguration(rcc_context ctx, unsigned int lock_code)
rccConfigGetCurrentCharset
rcc_charset_id rccConfigGetCurrentCharset(rcc_language_config config, rcc_class_id class_id)
rccSizedRecode
char * rccSizedRecode(rcc_context ctx, rcc_class_id from, rcc_class_id to, const char *buf, size_t len, size_t *rlen)
rcc_engine_function
rcc_autocharset_id(* rcc_engine_function)(rcc_engine_context ctx, const char *buf, int len)
Definition librcc.h:208
rccSpellerAddParent
int rccSpellerAddParent(rcc_speller speller, rcc_speller parent)
RCC_MAX_CHARSETS
#define RCC_MAX_CHARSETS
Definition librcc.h:29
rccConfigGetSelectedCharsetName
const char * rccConfigGetSelectedCharsetName(rcc_language_config config, rcc_class_id class_id)
rcc_engine_context
struct rcc_engine_context_t * rcc_engine_context
Definition librcc.h:86
rccGetOptionValueName
const char * rccGetOptionValueName(rcc_option option, rcc_option_value value)
RCC_MAX_ALIASES
#define RCC_MAX_ALIASES
Definition librcc.h:32
rcc_engine_id
unsigned char rcc_engine_id
Definition librcc.h:71
rccStringSizedCheck
size_t rccStringSizedCheck(const char *str, size_t len)
rccConfigSizedRecode
char * rccConfigSizedRecode(rcc_language_config config, rcc_class_id from, rcc_class_id to, const char *buf, size_t len, size_t *rlen)
rcc_language
struct rcc_language_t rcc_language
Definition librcc.h:238
rccRegisterLanguage
rcc_language_id rccRegisterLanguage(rcc_context ctx, rcc_language *language)
rccDetectCharset
rcc_autocharset_id rccDetectCharset(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len)
rcc_engine_internal
void * rcc_engine_internal
Definition librcc.h:191
rccStringGetString
const char * rccStringGetString(rcc_const_string str)
rccGetLocaleClassCharset
rcc_charset_id rccGetLocaleClassCharset(rcc_context ctx, rcc_class_id class_id, const char *locale_variable)
rccGetUsableConfig
rcc_language_config rccGetUsableConfig(rcc_context ctx, rcc_language_id language_id)
rccGetLanguageByName
rcc_language_id rccGetLanguageByName(rcc_context ctx, const char *name)
rccTranslateOpen
rcc_translate rccTranslateOpen(const char *from, const char *to)
rcc_option_range_type_t
rcc_option_range_type_t
Definition librcc.h:485
RCC_OPTION_RANGE_TYPE_MAX
@ RCC_OPTION_RANGE_TYPE_MAX
Definition librcc.h:490
RCC_OPTION_RANGE_TYPE_RANGE
@ RCC_OPTION_RANGE_TYPE_RANGE
Definition librcc.h:487
RCC_OPTION_RANGE_TYPE_BOOLEAN
@ RCC_OPTION_RANGE_TYPE_BOOLEAN
Definition librcc.h:486
RCC_OPTION_RANGE_TYPE_MENU
@ RCC_OPTION_RANGE_TYPE_MENU
Definition librcc.h:489
RCC_OPTION_RANGE_TYPE_FLAGS
@ RCC_OPTION_RANGE_TYPE_FLAGS
Definition librcc.h:488
rcc_charset_list
rcc_charset rcc_charset_list[RCC_MAX_CHARSETS+1]
Definition librcc.h:185
rccOptionGetType
rcc_option_type rccOptionGetType(rcc_context ctx, rcc_option option)
rcc_option
enum rcc_option_t rcc_option
rcc_context
struct rcc_context_t * rcc_context
Definition librcc.h:78
rccGetRealLanguage
rcc_language_id rccGetRealLanguage(rcc_context ctx, rcc_language_id language_id)
rcc_config
void * rcc_config
Definition librcc.h:1474
rccEngineGetAutoCharsetByName
rcc_autocharset_id rccEngineGetAutoCharsetByName(rcc_engine_context ctx, const char *name)
rccConfigGetLanguageName
const char * rccConfigGetLanguageName(rcc_language_config config)
rccSetCharset
int rccSetCharset(rcc_context ctx, rcc_class_id class_id, rcc_charset_id charset_id)
RCC_OPTION_TRANSLATE_SKIP_PARENT
#define RCC_OPTION_TRANSLATE_SKIP_PARENT
Definition rcc-recode.c:50
rcc_class_default_charset_t
Definition librcc.h:325
rcc_class_default_charset_t::charset
const char * charset
Definition librcc.h:327
rcc_class_default_charset_t::lang
const char * lang
Definition librcc.h:326
rcc_class_t
Definition librcc.h:368
rcc_class_t::defvalue
const char * defvalue
Definition librcc.h:371
rcc_class_t::flags
const unsigned long flags
Definition librcc.h:374
rcc_class_t::name
const char * name
Definition librcc.h:369
rcc_class_t::defcharset
rcc_class_default_charset * defcharset
Definition librcc.h:372
rcc_class_t::class_type
const rcc_class_type class_type
Definition librcc.h:370
rcc_class_t::fullname
const char * fullname
Definition librcc.h:373
rcc_compiled_configuration_t
Definition librcc.h:1535
rcc_compiled_configuration_t::flags
unsigned long flags
Definition librcc.h:1536
rcc_engine_t
Definition librcc.h:219
rcc_engine_t::init_func
rcc_engine_init_function init_func
Definition librcc.h:221
rcc_engine_t::charsets
rcc_charset_list charsets
Definition librcc.h:224
rcc_engine_t::title
const char * title
Definition librcc.h:220
rcc_engine_t::func
rcc_engine_function func
Definition librcc.h:223
rcc_engine_t::free_func
rcc_engine_free_function free_func
Definition librcc.h:222
rcc_language_alias_t
Definition librcc.h:246
rcc_language_alias_t::alias
const char * alias
Definition librcc.h:247
rcc_language_alias_t::lang
const char * lang
Definition librcc.h:248
rcc_language_relation_t
Definition librcc.h:264
rcc_language_relation_t::lang
const char * lang
Definition librcc.h:265
rcc_language_relation_t::parent
const char * parent
Definition librcc.h:266
rcc_language_t
Definition librcc.h:233
rcc_language_t::engines
rcc_engine_list engines
Definition librcc.h:236
rcc_language_t::sn
const char * sn
Definition librcc.h:234
rcc_language_t::charsets
rcc_charset_list charsets
Definition librcc.h:235
rcc_option_range_t
Definition librcc.h:496
rcc_option_range_t::type
rcc_option_range_type type
Definition librcc.h:497
rcc_option_range_t::max
rcc_option_value max
Definition librcc.h:499
rcc_option_range_t::min
rcc_option_value min
Definition librcc.h:498
rcc_option_range_t::step
rcc_option_value step
Definition librcc.h:500