summaryrefslogtreecommitdiffstats
path: root/zix
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-18 22:45:51 +0000
committerDavid Robillard <d@drobilla.net>2011-09-18 22:45:51 +0000
commit6d65e1a7ed66fb8b08db74ffe9e572730c932616 (patch)
treec4b310857ae538c6fe471085d243c6a3ceca55b9 /zix
parentd6b4400d4de76e6678bf19d958b1d7bf788cafa2 (diff)
downloadzix-6d65e1a7ed66fb8b08db74ffe9e572730c932616.tar.gz
zix-6d65e1a7ed66fb8b08db74ffe9e572730c932616.tar.bz2
zix-6d65e1a7ed66fb8b08db74ffe9e572730c932616.zip
Export API functions
git-svn-id: http://svn.drobilla.net/zix/trunk@18 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'zix')
-rw-r--r--zix/strindex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zix/strindex.h b/zix/strindex.h
index e6195d7..628b92a 100644
--- a/zix/strindex.h
+++ b/zix/strindex.h
@@ -32,12 +32,14 @@ typedef struct _ZixStrindex ZixStrindex;
Construct a new strindex that contains all suffixes of the string @a s.
A copy of @a s is taken and stored for the lifetime of the strindex.
*/
+ZIX_API
ZixStrindex*
zix_strindex_new(const char* s);
/**
Destroy @a t.
*/
+ZIX_API
void
zix_strindex_free(ZixStrindex* strindex);
@@ -45,6 +47,7 @@ zix_strindex_free(ZixStrindex* strindex);
Check if the string in @a strindex contains the substring @a str.
If such a substring is found, @a match is pointed at an occurrence of it.
*/
+ZIX_API
ZixStatus
zix_strindex_find(ZixStrindex* strindex, const char* str, char** match);