/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 src/librcd.h

  • 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:
5
5
extern "C" {
6
6
#endif
7
7
 
8
 
enum russian_charsets {
 
8
enum rcd_russian_charset_t {
9
9
    RUSSIAN_CHARSET_WIN = 0,
10
10
    RUSSIAN_CHARSET_KOI,
11
11
    RUSSIAN_CHARSET_UTF8,
12
12
    RUSSIAN_CHARSET_ALT
13
13
};
 
14
typedef enum rcd_russian_charset_t rcd_russian_charset;
14
15
 
15
16
 
16
17
/*
17
 
get_russian_charset
 
18
rcdGetRussianCharset
18
19
    Detects encoding of russian text passed in buf variable. Support 
19
20
    UTF-8, CP1251, CP866 and KOI8-R encoding.
20
21
    
29
30
        3 - CP866
30
31
*/
31
32
 
32
 
enum russian_charsets get_russian_charset(const char *buf,int len);
 
33
rcd_russian_charset rcdGetRussianCharset(const char *buf, int len);
33
34
 
34
35
#ifdef __cplusplus
35
36
}
36
37
#endif
37
38
 
 
39
/* Backward compatibility */
 
40
#ifndef _LIBRCD_C
 
41
# define russian_charsets rcd_russian_charset
 
42
# define get_russian_charset rcdGetRussianCharset
 
43
#endif /* ! _LIBRCD_C */
 
44
 
38
45
#endif /* _LIBRCD_H */