4 * Copyright (c) 2010 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #ifndef __CTSVC_LOCALIZE_H__
20 #define __CTSVC_LOCALIZE_H__
22 #include <unicode/utypes.h>
24 #include "ctsvc_localize_jp.h"
25 #include "ctsvc_localize_kor.h"
28 CTSVC_SORT_OTHERS = 0,
33 CTSVC_SORT_KOREAN, /* 5 */
38 CTSVC_SORT_ARMENIAN, /* 10 */
40 CTSVC_SORT_DEVANAGARI, /* hindi */
43 CTSVC_SORT_THAI, /* 15 */
48 CTSVC_SORT_TAMIL, /* 20 */
53 CTSVC_SORT_LAO, /* 25 */
59 char* ctsvc_get_langset();
60 void ctsvc_set_langset(char *new_langset);
62 int ctsvc_get_name_sort_type(const char *src);
63 int ctsvc_get_sort_type_from_language(int language);
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);
70 #endif /* __CTSVC_LOCALIZE_H__ */