|
The Micro C++ Library
|
Implementation of UN*X wildcards. More...
#include <micxx.hxx>
Static Public Member Functions | |
| static bool | match (const char *wildcard, const char *test) |
| This function implements the UN*X wildcards. | |
| static bool | match (const std::string &wildcard, const std::string &test) |
| Same as match(wildcard.c_str(), test.c_str()). | |
Implementation of UN*X wildcards.
Supported wild-characters: *, ?, sets like [a-z] and negation !.
Examples:
"[a-g]l*i?n" matches "florian""[!abc]*e" matches "smile""[-z]" matches "a"| static bool micxx::Wildcard::match | ( | const char * | wildcard, |
| const char * | test | ||
| ) | [static] |
This function implements the UN*X wildcards.
true, if wildcard matches test, false otherwise. | static bool micxx::Wildcard::match | ( | const std::string & | wildcard, |
| const std::string & | test | ||
| ) | [static] |