summaryrefslogtreecommitdiff
path: root/src/basic/string-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-12 14:31:49 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:50:22 +0200
commitc687cd959206402ddc1032137566818f0fdd9beb (patch)
tree69921b0065e58ce86bfe096fefd2361205417387 /src/basic/string-util.h
parent766ca0d270976412d9c414a5ec2ea13172557e99 (diff)
journalctl: make matching optionally case sensitive
Case sensitive or case insensitive matching can be requested using --case-sensitive[=yes|no]. Unless specified, matching is case sensitive if the pattern contains any uppercase letters, and case insensitive otherwise. This matches what forward-search does in emacs, and recently also --ignore-case in less. This works surprisingly well, because usually when one is wants to do case-sensitive matching, the pattern is usually camel-cased. In the less frequent case when case-sensitive matching is required with an all-lowercase pattern, --case-sensitive can be used to override the automatic logic.
Diffstat (limited to 'src/basic/string-util.h')
0 files changed, 0 insertions, 0 deletions