/usr/include/libspreadsheet-1.12/spreadsheet/criteria.h is in gnumeric 1.12.32-1+b1.
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 | #ifndef _GNM_CRITERIA_H_
#define _GNM_CRITERIA_H_
#include <gnumeric.h>
#include <position.h>
#include <value.h>
#include <number-match.h>
#include <sheet.h>
#include <cell.h>
#include <gutils.h>
#include <workbook.h>
#include <collect.h>
#include <goffice/goffice.h>
#include <string.h>
G_BEGIN_DECLS
typedef struct _GnmCriteria GnmCriteria;
typedef gboolean (*GnmCriteriaFunc) (GnmValue const *x, GnmCriteria *crit);
struct _GnmCriteria {
GnmCriteriaFunc fun;
GnmValue *x;
int column; /* absolute */
CellIterFlags iter_flags;
GODateConventions const *date_conv;
GORegexp rx;
gboolean has_rx;
unsigned ref_count; /* for boxed type */
};
GType gnm_criteria_get_type (void);
typedef struct {
int row; /* absolute */
GSList *conditions;
} GnmDBCriteria;
GnmCriteria *parse_criteria (GnmValue const *crit_val,
GODateConventions const *date_conv,
gboolean anchor_end);
void free_criteria (GnmCriteria *criteria);
void free_criterias (GSList *criterias);
GSList *find_rows_that_match (Sheet *sheet, int first_col,
int first_row, int last_col, int last_row,
GSList *criterias, gboolean unique_only);
GSList *parse_database_criteria (GnmEvalPos const *ep,
GnmValue const *database, GnmValue const *criteria);
int find_column_of_field (GnmEvalPos const *ep,
GnmValue const *database, GnmValue const *field);
GnmValue *gnm_ifs_func (GPtrArray *data, GPtrArray *crits, GnmValue const *vals,
float_range_function_t fun, GnmStdError err,
GnmEvalPos const *ep, CollectFlags flags);
G_END_DECLS
#endif
|