/* PSPP - a program for statistical analysis.
- Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This is a convenient wrapper around a "struct hmap" for storing strings. */
#include <stdbool.h>
-#include <libpspp/hmap.h>
+#include "libpspp/hmap.h"
/* A node in the string set. */
struct stringi_set_node
static inline bool stringi_set_is_empty (const struct stringi_set *);
bool stringi_set_contains (const struct stringi_set *, const char *);
+bool stringi_set_contains_len (const struct stringi_set *, const char *,
+ size_t length);
struct stringi_set_node *stringi_set_find_node (const struct stringi_set *,
- const char *);
+ const char *);
+struct stringi_set_node *stringi_set_find_node_len (const struct stringi_set *,
+ const char *,
+ size_t length);
bool stringi_set_insert (struct stringi_set *, const char *);
bool stringi_set_insert_nocopy (struct stringi_set *, char *);
void stringi_set_intersect (struct stringi_set *, const struct stringi_set *);
void stringi_set_subtract (struct stringi_set *, const struct stringi_set *);
+char **stringi_set_get_array (const struct stringi_set *);
+char **stringi_set_get_sorted_array (const struct stringi_set *);
+
static inline const struct stringi_set_node *stringi_set_first (
const struct stringi_set *);
static inline const struct stringi_set_node *stringi_set_next (