SYNOPSIS
int match_id (string given, string pattern)
int match_id (string given, string * ids [, string * ads)
DESCRIPTION
This function tests if the string <given> matches a particular
object-id. The object id may be given either as <pattern> as generated
by gen_id_pattern(), or as list of id-strings <ids> and optional
adjectives <ads>.
The function returns non-zero on a match, or 0 on a mismatch.
EXAMPLE
match_id("blue thing", ({ "thing " }), ({ "blue "})) --> 1
match_id("black thing", ({ "thing " }), ({ "blue "})) --> 0
string pattern;
pattern = gen_id_pattern( ({"thing" }), ({"blue"}) );
match_id("blue thing", pattern) --> 1
match_id("black thing", pattern) --> 0
match_id("thing", pattern) --> 1