summaryrefslogtreecommitdiff
path: root/usr/src/lib/iconv_modules/hi_IN/include/iscii-common.h
blob: 58edf5af6a43d245dc2d262843f8e1a1dbb3705d (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
/*
 * Copyright(c) 2001 Sun Microsystems, Inc.
 * All rights reserved.
 */

#ifndef _ISCII_COMMON_H_
#define _ISCII_COMMON_H_

#define ucs_t  unsigned long

#define uchar unsigned char

#define NUKTA      0
#define EXT        -1
#define HALANT     -2
#define DOUBLE_DANDA -3

#define ISC_INV    0xd9  /* Consonant Invisible */

#define ISC_halant 0xe8
#define ISC_nukta  0xe9
#define ISC_danda  0xea
#define ISC_atr    0xef  /* Attribute code */
#define ISC_ext    0xf0  /* Extension code */

#define UNI_DOUBLE_DANDA 0x0965

#define UNI_ZWNJ   0x200C /* Zero Width Non Joiner */
#define UNI_ZWJ    0x200D /* Zero Width Joiner */
#define UNI_INV    0x200E /* map INV to Unicode LRM, same as Apple implementation */

#define EXT_RANGE_BEGIN  0xA1
#define EXT_RANGE_END    0xEE
#define is_valid_ext_code(v)  ((v) >= EXT_RANGE_BEGIN && (v) <= EXT_RANGE_END)

typedef enum { DEV, BNG, GMK, GJR, ORI, TML, TLG, KND, MLM, NUM_ISCII } ISCII;

typedef struct _entry {
    uchar   iscii;
    ucs_t   ucs;
    int     count;
} Entry;


#endif