projects
/
mstardict
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported version 0.2-1
[mstardict]
/
src
/
lib
/
collation.h
1
#ifndef _COLLATION_H_
2
#define _COLLATION_H_
3
4
typedef enum {
5
UTF8_GENERAL_CI = 0,
6
UTF8_UNICODE_CI,
7
UTF8_BIN,
8
UTF8_CZECH_CI,
9
UTF8_DANISH_CI,
10
UTF8_ESPERANTO_CI,
11
UTF8_ESTONIAN_CI,
12
UTF8_HUNGARIAN_CI,
13
UTF8_ICELANDIC_CI,
14
UTF8_LATVIAN_CI,
15
UTF8_LITHUANIAN_CI,
16
UTF8_PERSIAN_CI,
17
UTF8_POLISH_CI,
18
UTF8_ROMAN_CI,
19
UTF8_ROMANIAN_CI,
20
UTF8_SLOVAK_CI,
21
UTF8_SLOVENIAN_CI,
22
UTF8_SPANISH_CI,
23
UTF8_SPANISH2_CI,
24
UTF8_SWEDISH_CI,
25
UTF8_TURKISH_CI,
26
COLLATE_FUNC_NUMS
27
} CollateFunctions;
28
29
extern int utf8_collate_init(CollateFunctions func);
30
extern int utf8_collate_init_all();
31
extern int utf8_collate(const char *str1, const char *str2, CollateFunctions func);
32
extern void utf8_collate_end();
33
34
35
#endif