Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Wildcard Class Reference

#include <acsutilWildcard.h>

List of all members.

Static Public Member Functions

int wildcardfit (const char *wildcard, const char *test)

Static Private Member Functions

int set (const char **wildcard, const char **test)
int asterisk (const char **wildcard, const char **test)


Detailed Description

Class which implements UNIX style wildcards and tests to see if strings match the wildcard.


Member Function Documentation

int Wildcard::asterisk const char **  wildcard,
const char **  test
[static, private]
 

Scans an asterisk.

Parameters:
wildcard UNIX style wildcard to be used
test String we will test against the wildcard.
Returns:
???

int Wildcard::set const char **  wildcard,
const char **  test
[static, private]
 

Scans a set of characters and returns 0 if the set mismatches at this position in the teststring and 1 if it is matching wildcard is set to the closing ] and test is unmodified if mismatched and otherwise the char pointer is pointing to the next character

Parameters:
wildcard UNIX style wildcard to be used
test String we will test against the wildcard.
Returns:
0 if the set mismatches. 1 otherwise.

int Wildcard::wildcardfit const char *  wildcard,
const char *  test
[static]
 

This function implements the UN*X wildcards.

Parameters:
wildcard Wildcard to be used.
test Value which we want to see if it matches the wildcard.
Returns:
0 if wildcard does not match *test. 1 - if wildcard matches test.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:36:59 2009 for ACS C++ API by doxygen 1.3.8