stringstore.h

Mon, 20 Apr 2020 10:14:32 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 20 Apr 2020 10:14:32 -0500
changeset 119
87e3bb5086e8
parent 107
da2a985da6ee
permissions
-rw-r--r--

Convert README to markdown

73
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
1 /*
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
2 * libtu/stringstore.h
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
3 *
107
da2a985da6ee Clean-up and pending updates
Tuomo Valkonen <tuomov@iki.fi>
parents: 105
diff changeset
4 * Copyright (c) Tuomo Valkonen 2004-2007.
73
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
5 *
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
6 * You may distribute and modify this library under the terms of either
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
7 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
8 */
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
9
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
10 #ifndef LIBTU_STRINGSTORE_H
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
11 #define LIBTU_STRINGSTORE_H
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
12
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
13 typedef void* StringId;
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
14
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
15 #define STRINGID_NONE ((StringId)0)
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
16
74
60cb620a0341 trunk: changeset 1575
tuomov
parents: 73
diff changeset
17 extern const char *stringstore_get(StringId id);
73
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
18 extern StringId stringstore_find(const char *str);
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
19 extern StringId stringstore_alloc(const char *str);
105
de53cada1423 Added stringstore_find/alloc_n
Tuomo Valkonen <tuomov@iki.fi>
parents: 104
diff changeset
20 extern StringId stringstore_find_n(const char *str, uint l);
de53cada1423 Added stringstore_find/alloc_n
Tuomo Valkonen <tuomov@iki.fi>
parents: 104
diff changeset
21 extern StringId stringstore_alloc_n(const char *str, uint l);
73
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
22 extern void stringstore_free(StringId id);
104
abbac137bdac Added stringstore_ref
Tuomo Valkonen <tuomov@iki.fi>
parents: 74
diff changeset
23 extern void stringstore_ref(StringId id);
73
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
24
401322031c7e trunk: changeset 1574
tuomov
parents:
diff changeset
25 #endif /* LIBTU_STRINGSTORE_H */

mercurial