diff options
Diffstat (limited to 'src/curconfig.c')
-rw-r--r-- | src/curconfig.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/curconfig.c b/src/curconfig.c index 72aa4c1..ac1b722 100644 --- a/src/curconfig.c +++ b/src/curconfig.c @@ -160,3 +160,12 @@ rcc_charset_id rccGetLocaleCharset(rcc_context ctx, const char *locale_variable) } return rccConfigGetLocaleCharset(ctx->current_config, locale_variable); } + +rcc_autocharset_id rccDetectCharset(rcc_context ctx, rcc_class_id class_id, const char *buf, size_t len) { + if (!ctx) { + if (rcc_default_ctx) ctx = rcc_default_ctx; + else return -1; + } + + return rccConfigDetectCharset(ctx->current_config, class_id, buf, len); +} |