change the path of socket & inotify file
[platform/core/pim/contacts-service.git] / common / ctsvc_localize.h
1 /*
2  * Contacts Service
3  *
4  * Copyright (c) 2010 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19 #ifndef __CTSVC_LOCALIZE_H__
20 #define __CTSVC_LOCALIZE_H__
21
22 #include <unicode/utypes.h>
23
24 #include "ctsvc_localize_jp.h"
25 #include "ctsvc_localize_kor.h"
26
27 enum SORTTYPE {
28         CTSVC_SORT_OTHERS = 0,
29         CTSVC_SORT_NUMBER,
30         CTSVC_SORT_PRIMARY,
31         CTSVC_SORT_SECONDARY,
32         CTSVC_SORT_WESTERN,
33         CTSVC_SORT_KOREAN,   /* 5 */
34         CTSVC_SORT_JAPANESE,
35         CTSVC_SORT_CJK,
36         CTSVC_SORT_CYRILLIC,
37         CTSVC_SORT_GREEK,
38         CTSVC_SORT_ARMENIAN, /* 10 */
39         CTSVC_SORT_ARABIC,
40         CTSVC_SORT_DEVANAGARI, /* hindi */
41         CTSVC_SORT_GEORGIAN,
42         CTSVC_SORT_TURKISH,
43         CTSVC_SORT_THAI,     /* 15 */
44         CTSVC_SORT_BENGALI,
45         CTSVC_SORT_PUNJABI,
46         CTSVC_SORT_MALAYALAM,
47         CTSVC_SORT_TELUGU,
48         CTSVC_SORT_TAMIL,    /* 20 */
49         CTSVC_SORT_ORIYA,
50         CTSVC_SORT_SINHALA,
51         CTSVC_SORT_GUJARATI,
52         CTSVC_SORT_KANNADA,
53         CTSVC_SORT_LAO,      /* 25 */
54         CTSVC_SORT_HEBREW,
55         CTSVC_SORT_BURMESE,
56         CTSVC_SORT_KHMER,
57 };
58
59 char* ctsvc_get_langset();
60 void ctsvc_set_langset(char *new_langset);
61
62 int ctsvc_get_name_sort_type(const char *src);
63 int ctsvc_get_sort_type_from_language(int language);
64
65 int ctsvc_get_language_type(const char *system_lang);
66 const char *ctsvc_get_language_locale(int lang);
67 void ctsvc_extra_normalize(UChar *word, int32_t word_size);
68 void ctsvc_extra_index_normalize(UChar *word, int32_t word_size);
69
70 #endif /* __CTSVC_LOCALIZE_H__ */