The Micro C++ Library
micxx::Wildcard Class Reference

Implementation of UN*X wildcards. More...

#include <micxx.hxx>

List of all members.

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()).

Detailed Description

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"
Author:
Norbert Klose
Date:
June, 2007

Member Function Documentation

static bool micxx::Wildcard::match ( const char *  wildcard,
const char *  test 
) [static]

This function implements the UN*X wildcards.

Returns:
true, if wildcard matches test, false otherwise.
static bool micxx::Wildcard::match ( const std::string &  wildcard,
const std::string &  test 
) [static]

The documentation for this class was generated from the following file: