Mon, 20 Apr 2020 10:14:32 -0500
Convert README to markdown
| 73 | 1 | /* |
| 2 | * libtu/stringstore.h | |
| 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 | 5 | * |
| 6 | * You may distribute and modify this library under the terms of either | |
| 7 | * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. | |
| 8 | */ | |
| 9 | ||
| 10 | #ifndef LIBTU_STRINGSTORE_H | |
| 11 | #define LIBTU_STRINGSTORE_H | |
| 12 | ||
| 13 | typedef void* StringId; | |
| 14 | ||
| 15 | #define STRINGID_NONE ((StringId)0) | |
| 16 | ||
| 74 | 17 | extern const char *stringstore_get(StringId id); |
| 73 | 18 | extern StringId stringstore_find(const char *str); |
| 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 | 22 | extern void stringstore_free(StringId id); |
| 104 | 23 | extern void stringstore_ref(StringId id); |
| 73 | 24 | |
| 25 | #endif /* LIBTU_STRINGSTORE_H */ |