00001 /*========================================================================== 00002 * Copyright (c) 2001 Carnegie Mellon University. All Rights Reserved. 00003 * 00004 * Use of the Lemur Toolkit for Language Modeling and Information Retrieval 00005 * is subject to the terms of the software license set forth in the LICENSE 00006 * file included with this software, and also available at 00007 * http://www.lemurproject.org/license.html 00008 * 00009 *========================================================================== 00010 */ 00011 00012 00013 #ifndef _STRINGSETH_ 00014 #define _STRINGSETH_ 00015 00016 #ifdef __cplusplus 00017 extern "C" { 00018 #endif /* __cplusplus */ 00019 00020 #include <stdio.h> 00021 00022 typedef struct { 00023 int size; /* the current size of the table */ 00024 int count; /* number of things currently in the table */ 00025 char ** table; /* the table itself */ 00026 } String_set; 00027 00028 String_set * string_set_create(void); 00029 char * string_set_add(const char * source_string, String_set * ss); 00030 char * string_set_lookup(const char * source_string, String_set * ss); 00031 void string_set_delete(String_set *ss); 00032 void string_set_display(FILE * fp, String_set *ss); 00033 00034 #ifdef __cplusplus 00035 } 00036 #endif /* __cplusplus */ 00037 00038 #endif