This file is indexed.

/usr/include/chise.h is in libchise-dev 0.3.0-2ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/* Copyright (C) 2003,2004,2005 MORIOKA Tomohiko
   This file is part of the CHISE Library.

   The CHISE Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The CHISE Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the CHISE Library; if not, write to the Free
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
   02111-1307 USA.  */

#ifndef _CHISE_H
#define _CHISE_H

#ifdef __cplusplus
extern "C" {
#endif

#include <db.h>
#include <errno.h>

extern const unsigned char chise_db_dir[];
extern const unsigned char chise_system_db_dir[];

typedef enum CHISE_DS_Type
{
  CHISE_DS_NONE,
  CHISE_DS_Berkeley_DB
} CHISE_DS_Type;

typedef struct CHISE_DS CHISE_DS;

CHISE_DS*
CHISE_DS_open (CHISE_DS_Type type, const unsigned char *location,
	       int subtype, int modemask);

int CHISE_DS_close (CHISE_DS *ds);

unsigned char* chise_ds_location (CHISE_DS *ds);

int
chise_ds_foreach_char_feature_name (CHISE_DS *ds,
				    int (*func) (CHISE_DS *ds,
						 unsigned char *name));


typedef int CHISE_Char_ID;


typedef DBT CHISE_Value;

static inline int
chise_value_size (const CHISE_Value *s)
{
  return s->size;
}

static inline char *
chise_value_data (const CHISE_Value *s)
{
  return (char *)s->data;
}

static inline char *
chise_value_to_c_string (const CHISE_Value *s)
{
  return (char *)s->data;
}


typedef struct CHISE_Feature_Table CHISE_Feature_Table;
typedef CHISE_Feature_Table* CHISE_Feature;

CHISE_Feature
chise_ds_get_feature (CHISE_DS *ds, const unsigned char *name);

static inline int
chise_ds_load_char_feature_value (CHISE_DS *ds,
				  CHISE_Char_ID cid,
				  const unsigned char *name,
				  CHISE_Value *valdatum);

int chise_feature_setup_db (CHISE_Feature feature, int writable);

int chise_feature_sync (CHISE_Feature feature);

int chise_char_set_feature_value (CHISE_Char_ID cid,
				  CHISE_Feature feature,
				  unsigned char *value);

int chise_char_load_feature_value (CHISE_Char_ID cid,
				   CHISE_Feature feature,
				   CHISE_Value *valdatum);

static inline int
chise_ds_load_char_feature_value (CHISE_DS *ds,
				  CHISE_Char_ID cid,
				  const unsigned char *name,
				  CHISE_Value *valdatum)
{
  return
    chise_char_load_feature_value (cid, chise_ds_get_feature (ds, name),
				   valdatum);
}

unsigned char*
chise_char_gets_feature_value (CHISE_Char_ID cid,
			       CHISE_Feature feature,
			       unsigned char *dst, size_t size);

int
chise_feature_foreach_char_with_value (CHISE_Feature feature,
				       int (*func) (CHISE_Char_ID cid,
						    CHISE_Feature feature,
						    CHISE_Value *valdatum));

#if 0
int
chise_feature_foreach_char_with_str (CHISE_Feature feature,
				     int (*func) (CHISE_Char_ID cid,
						  CHISE_Feature feature,
						  unsigned char *str));
#endif


typedef struct CHISE_CCS_Table CHISE_CCS_Table;
typedef CHISE_CCS_Table* CHISE_CCS;

CHISE_CCS
chise_ds_get_ccs (CHISE_DS *ds, const unsigned char *name);

static inline CHISE_Char_ID
chise_ds_decode_char (CHISE_DS *ds,
		      const unsigned char *ccs, int code_point);

int chise_ccs_setup_db (CHISE_CCS ccs, int writable);

int chise_ccs_sync (CHISE_CCS ccs);

int chise_ccs_set_decoded_char (CHISE_CCS ccs,
				int code_point, CHISE_Char_ID cid);

CHISE_Char_ID chise_ccs_decode (CHISE_CCS ccs, int code_point);

static inline CHISE_Char_ID
chise_ds_decode_char (CHISE_DS *ds,
		      const unsigned char *name, int code_point)
{
  return
    chise_ccs_decode (chise_ds_get_ccs (ds, name), code_point);
}


typedef struct CHISE_Property_Table CHISE_Property_Table;
typedef CHISE_Property_Table* CHISE_Property;

CHISE_Property_Table*
chise_ds_get_property (CHISE_DS *ds, const unsigned char *property);

int chise_property_setup_db (CHISE_Property property, int writable);

int chise_property_sync (CHISE_Property property);

int chise_feature_set_property_value (CHISE_Feature feature,
				      CHISE_Property property,
				      unsigned char *value);

int chise_feature_load_property_value (CHISE_Feature feature,
				       CHISE_Property_Table *table,
				       CHISE_Value *valdatum);

unsigned char*
chise_feature_gets_property_value (CHISE_Feature feature,
				   CHISE_Property_Table *table,
				   unsigned char *buf, size_t size);

#ifdef __cplusplus
}
#endif

#endif /* !_CHISE_H */