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
);

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 3.0.0