Wildcard

NAME
SYNOPSIS
Detailed Description
Member Function Documentation
Author

NAME

Wildcard −

SYNOPSIS

#include <acsutilWildcard.h>

Static Public Member Functions

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

Static Private Member Functions

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

static 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

static 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:

???

static 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.

static 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.

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.