Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ...

Pattern Class Reference
[C++ API]

#include <shwild.hpp>

List of all members.


Detailed Description

Facade for the shwild C API.
Examples:

example_cpp_2.cpp.


Public Member Functions

 Pattern (char const *pattern, unsigned flags=0)
 Parses and precompiles the given pattern, according to the behaviour specified by the given flags.
 Pattern (slice_t const *pattern, unsigned flags=0)
 Parses and precompiles the given pattern, according to the behaviour specified by the given flags.
 Pattern (slice_t const &pattern, unsigned flags=0)
 Parses and precompiles the given pattern, according to the behaviour specified by the given flags.
 ~Pattern ()
 Releases any resources associated with the instance.
bool match (char const *string) const
 Match the given string against the precompiled pattern maintained as member state.
bool match (slice_t const *string) const
 Match the given string against the precompiled pattern maintained as member state.
bool match (slice_t const &string) const
 Match the given string against the precompiled pattern maintained as member state.


Constructor & Destructor Documentation

Pattern char const *  pattern,
unsigned  flags = 0
[explicit]
 

Parses and precompiles the given pattern, according to the behaviour specified by the given flags.

Note:
If the parsing fails, an instance of PatternException is thrown

Pattern slice_t const *  pattern,
unsigned  flags = 0
[explicit]
 

Parses and precompiles the given pattern, according to the behaviour specified by the given flags.

Note:
If the parsing fails, an instance of PatternException is thrown

Pattern slice_t const &  pattern,
unsigned  flags = 0
[explicit]
 

Parses and precompiles the given pattern, according to the behaviour specified by the given flags.

Note:
If the parsing fails, an instance of PatternException is thrown

~Pattern  ) 
 

Releases any resources associated with the instance.


Member Function Documentation

bool match slice_t const &  string  )  const
 

Match the given string against the precompiled pattern maintained as member state.

bool match slice_t const *  string  )  const
 

Match the given string against the precompiled pattern maintained as member state.

bool match char const *  string  )  const
 

Match the given string against the precompiled pattern maintained as member state.


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

shwild Library documentation © Matthew Wilson and Sean Kelly, 2004-2006 SourceForge.net Logo