summaryrefslogtreecommitdiffstats
path: root/statgen/test.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 /statgen/test.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 'statgen/test.c')
-rw-r--r--statgen/test.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/statgen/test.c b/statgen/test.c
index 936b491..46d4951 100644
--- a/statgen/test.c
+++ b/statgen/test.c
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include "charset_auto_russian.h"
+#include "librcd.tmp.c"
main(int argc, char *argv[]) {
FILE *f;
@@ -37,11 +37,7 @@ main(int argc, char *argv[]) {
}
if (strlen(phrase)<5) continue;
- a[autocharset_russian_uc(phrase,strlen(phrase))]++;
-// a[autocharset_russian(phrase,strlen(phrase))]++;
-
-// a[autocharset_russian(word+st,len+1-st)]++;
-// puts(word);
+ a[rcdGetRussianCharset(phrase,0)]++;
}
printf("Win: %lu, Koi: %lu, Alt: %lu, UTF: %lu\n",a[0],a[1],a[3],a[2]);
@@ -70,9 +66,7 @@ main(int argc, char *argv[]) {
}
if (strlen(phrase)<5) continue;
- i=autocharset_russian_uc(phrase,strlen(phrase));
-// i=autocharset_russian(phrase,strlen(phrase));
-// i=autocharset_russian(word+st,len+1-st);
+ i=rcdGetRussianCharset(phrase,0);
if (i!=max) {
if (i==0) printf("Win: %s\n",phrase);
else if (i==1) printf("Koi: %s\n",phrase);