embmisc.c


Function embMiscMatchPattern

Does a simple OR'd test of matches to (possibly wildcarded) words. The words are tested one at a time until a match is found. Whitespace and , ; | characters can separate the words in the pattern.

Synopsis

Prototype
AjBool embMiscMatchPattern (
      const AjPStr str,
      const AjPStr pattern
);

TypeNameRead/WriteDescription
const AjPStrstrInputstring to test
const AjPStrpatternInputpattern to match with
AjBool RETURNajTrue = found a match

Input
str:(Input)string to test
pattern:(Input)pattern to match with
Returns
AjBool:ajTrue = found a match

Description

Does a simple OR'd test of matches to (possibly wildcarded) words. The words are tested one at a time until a match is found. Whitespace and , ; | characters can separate the words in the pattern.

Usage

See source code

Example

In preparation

Errors

See source code

Dependencies

See source code

See Also

See other functions in this section

Availability

In release 5.0.0