/rusxmms/librcd

To get this branch, use:
bzr branch http://suren.me/webbzr/rusxmms/librcd

« back to all changes in this revision

Viewing changes to statgen/test.c

  • Committer: Suren A. Chilingaryan
  • Date: 2005-06-28 16:37:40 UTC
  • Revision ID: Arch-1:ds@dside.dyndns.org--darksoft-2004%librcd--main--0.1--patch-1
0.1.6
* Function name is changed to conform LibRCC naming conventions
* AutoConf Improvements
* Release Script
* Other minor changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include <stdio.h>
2
 
#include "charset_auto_russian.h"
 
2
#include "librcd.tmp.c"
3
3
 
4
4
main(int argc, char *argv[]) {
5
5
    FILE *f;
37
37
        }
38
38
        if (strlen(phrase)<5) continue;
39
39
 
40
 
        a[autocharset_russian_uc(phrase,strlen(phrase))]++;
41
 
//      a[autocharset_russian(phrase,strlen(phrase))]++;
42
 
 
43
 
//      a[autocharset_russian(word+st,len+1-st)]++;
44
 
//      puts(word);
 
40
        a[rcdGetRussianCharset(phrase,0)]++;
45
41
    }
46
42
 
47
43
    printf("Win: %lu, Koi: %lu, Alt: %lu, UTF: %lu\n",a[0],a[1],a[3],a[2]);
70
66
        }
71
67
        if (strlen(phrase)<5) continue;
72
68
 
73
 
        i=autocharset_russian_uc(phrase,strlen(phrase));
74
 
//      i=autocharset_russian(phrase,strlen(phrase));
75
 
//      i=autocharset_russian(word+st,len+1-st);
 
69
        i=rcdGetRussianCharset(phrase,0);
76
70
        if (i!=max) {
77
71
            if (i==0) printf("Win: %s\n",phrase);
78
72
            else if (i==1) printf("Koi: %s\n",phrase);