summaryrefslogtreecommitdiffstats
path: root/src/librcd.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-06-28 16:37:40 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-06-28 16:37:40 +0000
commite491cf8ad72d6752af8dac345d3bbc491e21a13a (patch)
treedb41b453a116c64cbac10f51aeec3c68d954cce6 /src/librcd.c
parent70fbe7822024d0acc68df3607ff25bf8d7a71751 (diff)
downloadlibrcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.gz
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.bz2
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.xz
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.zip
0.1.6
* Function name is changed to conform LibRCC naming conventions * AutoConf Improvements * Release Script * Other minor changes
Diffstat (limited to 'src/librcd.c')
-rw-r--r--src/librcd.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/librcd.c b/src/librcd.c
index 2a99378..18681ae 100644
--- a/src/librcd.c
+++ b/src/librcd.c
@@ -1,5 +1,6 @@
#include <stdio.h>
+#define _LIBRCD_C
#include "librcd.h"
#define NF_VALUE -2
@@ -254,10 +255,16 @@ static int check_utf8(const unsigned char *buf, int len) {
}
-enum russian_charsets get_russian_charset(const char *buf,int len) {
+
+rcd_russian_charset rcdGetRussianCharset(const char *buf,int len) {
long l;
l = STRNLEN(buf,len);
if (check_utf8(buf,l)>1) return RUSSIAN_CHARSET_UTF8;
return is_win_charset2(buf,l);
}
+
+/* Compatibility */
+rcd_russian_charset get_russian_charset(const char *buf,int len) {
+ return rcdGetRussianCharset(buf, len);
+}