NWSMGenericWildMatch

Indicates if a string matches a search pattern.

Syntax

  #include <smsutapi.h> 
   
  NWBOOLEAN NWSMGenericWildMatch ( 
     UINT32   nameSpaceType, 
     void    *pattern, 
     void    *string);
  

Parameters

nameSpaceType

(IN) Specifies the name space type of the string and pattern (see nameSpaceType Values).

pattern

(IN) Points to the pattern to search for (see Wildcard Values).

string

(IN) Points to the string to analyze.

Return Values

The following table lists the return values associated with the function.

TRUE

string meets the pattern specifications.

FALSE

string does not match the pattern.

Remarks

NWSMGenericWildMatch supports strings in UTF-8 format.

pattern can contain the following wild cards: ASTERICKS, QUESTION, SQUESTION, or SPERIOD.

If you need double-byte enabling, call NWSMMatchName.

See Also

NWSMIsWild

NWSMGenericWildMatch Example

  #include <smsutapi.h> 
   
  CCODE isWildMatch; 
  char patternBuf[15], stringBuf[15]; /* Arbitrary size. */ 
  STRING pattern = (STRING)patternBuf, string = stringBuf; 
   
  UINT32 nameSpace=DOSNameSpace;
  isWildMatch = NWSMGenericWildMatch(nameSpace,pattern,string);