str: New str_matchx function optionally reports possible prefix.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 13 Apr 2006 20:52:59 +0000 (21:52 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 13 Apr 2006 20:52:59 +0000 (21:52 +0100)
commit26f325c05cf0aa292589458b5c1aa8b5f5ab92ba
tree266c2a76a5bfa92b6cfee4905704b5a94a06a9fb
parentd45be1af09ff22a4778172ee2e55745c2c3229ed
str: New str_matchx function optionally reports possible prefix.

It can be useful (trust me) to know whether a string is a possible
prefix of something which matches a glob pattern.  The function
str_matchx is like str_match (which is now a compatibility veneer) and
takes a flags word; the option STRF_PREFIX reports success if it hits
the end of the target string while trying to find a match.
man/str.3
str.c
str.h