std-strmember, std-strimember


Synopsis

(std-strmember <match> <strlst>) ;case sensitive wcmatch member

(std-strimember <match> <strlst>) ;case insensitive

Description

STD-STRMEMBER works like member, with the extension that WCMATCH is used instead of = for the comparison. match is any valid regular expression suitable for WCMATCH.

It returns the list including the first found element or nil if no element in strlst matches.

STD-STRIMEMBER uses a case insensitive regular expression search - STD-WCIMATCH.

Note

STD-STRIMEMBER is dependent on the current stdlib codepage, which defaults to "iso8859-1". This will only affect characters above (CHR 127).

Example

(std-strmember "Test*" '("0" "Testname" "Testlayer")) 
	=> ("Testname" "Testlayer")

Arguments

match: any valid regular expression suitable for WCMATCH.

strlst: a list of strings

Return Value

A list of strings or nil..

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR