GETENV: check for proper UTF-8.
[gnumeric.git] / src / sort.h
blobefb38a3e5ba0f20cce00631eaa64bc2ad3bb907e
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_SORT_H_
3 # define _GNM_SORT_H_
5 #include "gnumeric.h"
7 G_BEGIN_DECLS
9 typedef struct {
10 int offset;
11 gboolean asc;
12 gboolean cs;
13 gboolean val;
14 } GnmSortClause;
16 struct _GnmSortData {
17 Sheet *sheet;
18 GnmRange *range;
19 int num_clause;
20 GnmSortClause *clauses;
21 gboolean top;
22 gboolean retain_formats;
23 char *locale;
26 GType gnm_sort_data_get_type (void);
27 void gnm_sort_data_destroy (GnmSortData *data);
28 GnmSortData *gnm_sort_data_copy (GnmSortData *data);
29 void gnm_sort_position (GnmSortData *data, int *perm, GOCmdContext *cc);
30 int *gnm_sort_contents (GnmSortData *data, GOCmdContext *cc);
31 int *gnm_sort_permute_invert (int const *perm, int length);
33 G_END_DECLS
35 #endif /* _GNM_SORT_H_ */