|
|
@ -90,7 +90,8 @@ void Bs2BmBadcharsNocase(const uint8_t *needle, uint16_t needle_len, uint8_t *ba
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* \retval ptr to start of the match; NULL if no match
|
|
|
|
* \retval ptr to start of the match; NULL if no match
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
uint8_t * Bs2Bm(const uint8_t *haystack, uint32_t haystack_len, const uint8_t *needle, uint16_t needle_len, uint8_t badchars[])
|
|
|
|
uint8_t *Bs2Bm(const uint8_t *haystack, uint32_t haystack_len, const uint8_t *needle,
|
|
|
|
|
|
|
|
uint16_t needle_len, const uint8_t badchars[])
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const uint8_t *h, *n;
|
|
|
|
const uint8_t *h, *n;
|
|
|
|
const uint8_t *hmax = haystack + haystack_len;
|
|
|
|
const uint8_t *hmax = haystack + haystack_len;
|
|
|
@ -139,7 +140,8 @@ uint8_t * Bs2Bm(const uint8_t *haystack, uint32_t haystack_len, const uint8_t *n
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* \retval ptr to start of the match; NULL if no match
|
|
|
|
* \retval ptr to start of the match; NULL if no match
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
uint8_t *Bs2BmNocase(const uint8_t *haystack, uint32_t haystack_len, const uint8_t *needle, uint16_t needle_len, uint8_t badchars[])
|
|
|
|
uint8_t *Bs2BmNocase(const uint8_t *haystack, uint32_t haystack_len, const uint8_t *needle,
|
|
|
|
|
|
|
|
uint16_t needle_len, const uint8_t badchars[])
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const uint8_t *h, *n;
|
|
|
|
const uint8_t *h, *n;
|
|
|
|
const uint8_t *hmax = haystack + haystack_len;
|
|
|
|
const uint8_t *hmax = haystack + haystack_len;
|
|
|
|