summaryrefslogtreecommitdiff
path: root/common/ctsvc_localize.h
blob: 3e07d781db862252fda10d4385a1a214dba88346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Contacts Service Helper
 *
 * Copyright (c) 2010 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
#ifndef __TIZEN_SOCIAL_CTSVC_LOCALIZE_H__
#define __TIZEN_SOCIAL_CTSVC_LOCALIZE_H__

#include <unicode/utypes.h>

enum SORTTYPE{
	CTSVC_SORT_NUMBER,		// 0
	CTSVC_SORT_PRIMARY, 	// 1
	CTSVC_SORT_SECONDARY, 	// 2
	CTSVC_SORT_WESTERN,		// 3
	CTSVC_SORT_KOREAN,		// 4
	CTSVC_SORT_JAPANESE,	// 5
	CTSVC_SORT_CJK,			// 6
	CTSVC_SORT_OTHERS = 100,// 0
};

int ctsvc_check_utf8(char c);
int ctsvc_check_language(UChar *word);
int ctsvc_check_language_type(const char *src);
int ctsvc_get_name_sort_type(const char *src);
int ctsvc_get_language_type(const char *system_lang);
const char *ctsvc_get_language(int lang);
void ctsvc_extra_normalize(UChar *word, int32_t word_size);
int ctsvc_get_chosung(const char *src, char *dest, int dest_size);
int ctsvc_convert_japanese_to_hiragana(const char *src, char **dest);
int ctsvc_convert_japanese_to_hiragana_unicode(UChar *src, UChar *dest, int dest_size);
int ctsvc_get_korean_search_pattern(const char *src, char *dest, int dest_size);

#endif // __TIZEN_SOCIAL_CTSVC_LOCALIZE_H__