Return the first case‐insensitive match of subString, or 0.
Synopsis
Declared in <bdlb_string.h>
static
char const*
strstrCaseless(
char const* string,
int stringLen,
char const* subString,
int subStringLen);
Description
Return the address providing non‐modifiable access to the first position in the specified string having stringLen characters at which the specified subString having subStringLen characters is found using case‐insensitive comparison, or 0 if there is no such position. If subStringLen is 0, subString may be null and string is returned. The behavior is undefined unless 0 <= stringLen and 0 <= subStringLen. See {`bdlb_stringviewutil`} for an identically named method having similar semantics taking (and returning) bsl::string_view.
Return Value
address of the first match, or 0 if not found
Parameters
Name |
Description |
string |
haystack string |
stringLen |
length of |
subString |
needle substring |
subStringLen |
length of |
Created with MrDocs