summaryrefslogtreecommitdiff
path: root/deps/sysobj_early/include/strstr_word.h
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-08-23 20:47:41 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-08-28 13:15:48 +0200
commit348d6d919c7d128cd6300e9a7f02483850edd079 (patch)
tree1013fff352c89d285cbec91a73aacc1a885ef876 /deps/sysobj_early/include/strstr_word.h
parenta08f2a909f7a67f7ca81354a88b7c2e47dc6f19f (diff)
vendor: update vendor.{h,c}
Mostly new match rules. Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'deps/sysobj_early/include/strstr_word.h')
-rw-r--r--deps/sysobj_early/include/strstr_word.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/deps/sysobj_early/include/strstr_word.h b/deps/sysobj_early/include/strstr_word.h
index f607b2ed..f17e78ff 100644
--- a/deps/sysobj_early/include/strstr_word.h
+++ b/deps/sysobj_early/include/strstr_word.h
@@ -18,13 +18,18 @@
*
*/
-/* versions of strstr() and strcasestr() where the match must be preceded and
- * succeded by a non-alpha-numeric character. */
-
#ifndef __STRSTR_WORD_H__
#define __STRSTR_WORD_H__
+/* versions of strstr() and strcasestr() where the match must be preceded and
+ * succeded by a non-alpha-numeric character. */
char *strstr_word(const char *haystack, const char *needle);
char *strcasestr_word(const char *haystack, const char *needle);
+/* word boundary at start only (prefix), or end only (suffix) */
+char *strstr_word_prefix(const char *haystack, const char *needle);
+char *strcasestr_word_prefix(const char *haystack, const char *needle);
+char *strstr_word_suffix(const char *haystack, const char *needle);
+char *strcasestr_word_suffix(const char *haystack, const char *needle);
+
#endif