rfc:str_contains
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:str_contains [2020/02/17 11:58] – philippta | rfc:str_contains [2020/02/17 12:01] – philippta | ||
---|---|---|---|
Line 35: | Line 35: | ||
str_contains(" | str_contains(" | ||
str_contains(" | str_contains(" | ||
+ | |||
+ | // $needle is an empty string | ||
+ | str_contains(" | ||
+ | str_contains("", | ||
</ | </ | ||
Line 42: | Line 46: | ||
In a recent discussion in the internals mailing list, we came to the conclusion, there is no need for a multibyte variant of this function (e.g. '' | In a recent discussion in the internals mailing list, we came to the conclusion, there is no need for a multibyte variant of this function (e.g. '' | ||
- | Concerning the case-insensitivity for this function: This might be a feature for the future, as the relevance for that is much less compared to the case-sensitive function. With that in mind, the only valid variants would be str_contains/ | + | Concerning the case-insensitivity for this function: This might be a feature for the future, as the relevance for that is much less compared to the case-sensitive function. With that in mind, the only valid variants would be str_contains/ |
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== |
rfc/str_contains.txt · Last modified: 2020/08/01 23:41 by carusogabriel