This started by me wanting something like what patch 8 does. That wasn't too hard, except we had no strcasestr(), and also our regex engine (which I didn't really want to pull into the mix anyway) doesn't have a flag that requests case-insensitive matching. So I wanted to add strcasestr(), but then I stumbled on a bunch of stuff that should be cleaned up in str-land.
v2: Include Simon's R-b in the first 8 patches, incorporating most of the minor comments. Patches 9 and 10 are new in v2. Rasmus Villemoes (10): sh: clean up asm/string.h string: correct prototype of strchrnul() string: correct documentation for strstr and strnstr string: remove unused strswab() function string: remove more pointless __HAVE_ARCH_STR* string: add strcasestr() test: string: add test of new strcasestr() function cmd: config: allow simple filtering of output doc: document 'config' command test: add test of 'config' command arch/sh/include/asm/string.h | 51 -------------------------- cmd/config.c | 26 ++++++++++++-- doc/usage/cmd/config.rst | 40 +++++++++++++++++++++ include/linux/string.h | 13 ++----- lib/string.c | 70 ++++++++++++++++-------------------- test/cmd/Makefile | 1 + test/cmd/config.c | 28 +++++++++++++++ test/lib/string.c | 24 +++++++++++-- 8 files changed, 146 insertions(+), 107 deletions(-) create mode 100644 doc/usage/cmd/config.rst create mode 100644 test/cmd/config.c -- 2.55.0

