git/string-list.c

#include "git-compat-util.h"
#include "string-list.h"

void string_list_init_nodup(struct string_list *list)
{}

void string_list_init_dup(struct string_list *list)
{}

/* if there is no exact match, point to the index where the entry could be
 * inserted */
static int get_entry_index(const struct string_list *list, const char *string,
		int *exact_match)
{}

/* returns -1-index if already exists */
static int add_entry(int insert_at, struct string_list *list, const char *string)
{}

struct string_list_item *string_list_insert(struct string_list *list, const char *string)
{}

void string_list_remove(struct string_list *list, const char *string,
			int free_util)
{}

int string_list_has_string(const struct string_list *list, const char *string)
{}

int string_list_find_insert_index(const struct string_list *list, const char *string,
				  int negative_existing_index)
{}

struct string_list_item *string_list_lookup(struct string_list *list, const char *string)
{}

void string_list_remove_duplicates(struct string_list *list, int free_util)
{}

int for_each_string_list(struct string_list *list,
			 string_list_each_func_t fn, void *cb_data)
{}

void filter_string_list(struct string_list *list, int free_util,
			string_list_each_func_t want, void *cb_data)
{}

static int item_is_not_empty(struct string_list_item *item, void *data UNUSED)
{}

void string_list_remove_empty_items(struct string_list *list, int free_util)
{}

void string_list_clear(struct string_list *list, int free_util)
{}

void string_list_clear_func(struct string_list *list, string_list_clear_func_t clearfunc)
{}

void string_list_setlen(struct string_list *list, size_t nr)
{}

struct string_list_item *string_list_append_nodup(struct string_list *list,
						  char *string)
{}

struct string_list_item *string_list_append(struct string_list *list,
					    const char *string)
{}

/*
 * Encapsulate the compare function pointer because ISO C99 forbids
 * casting from void * to a function pointer and vice versa.
 */
struct string_list_sort_ctx
{};

static int cmp_items(const void *a, const void *b, void *ctx)
{}

void string_list_sort(struct string_list *list)
{}

struct string_list_item *unsorted_string_list_lookup(struct string_list *list,
						     const char *string)
{}

int unsorted_string_list_has_string(struct string_list *list,
				    const char *string)
{}

void unsorted_string_list_delete_item(struct string_list *list, int i, int free_util)
{}

int string_list_split(struct string_list *list, const char *string,
		      int delim, int maxsplit)
{}

int string_list_split_in_place(struct string_list *list, char *string,
			       const char *delim, int maxsplit)
{}