From 348d6d919c7d128cd6300e9a7f02483850edd079 Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 23 Aug 2019 20:47:41 -0500 Subject: vendor: update vendor.{h,c} Mostly new match rules. Signed-off-by: Burt P --- deps/sysobj_early/include/strstr_word.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'deps/sysobj_early/include/strstr_word.h') 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 -- cgit v1.2.3