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

C++ API
[shwild API]


Detailed Description

The C++ API provides convenient overloads of the C API functions for use in C++, along with the Pattern class that provides a convenient interface to compiled patterns.


Classes

class  PatternException
 Exception thrown by the Pattern constructor. More...
class  Pattern
 Facade for the shwild C API. More...

Typedefs

typedef shwild_slice_t slice_t
 C++ synonym for shwild_slice_t.

Functions

int match (char const *pattern, char const *string, unsigned flags=0)
 C++ overload synonym for shwild_match().
int compile_pattern (char const *pattern, unsigned flags, shwild_handle_t *phCompiledPattern)
 C++ overload synonym for shwild_compile_pattern().
int match_pattern (shwild_handle_t hCompiledPattern, char const *string)
 C++ overload synonym for shwild_match_pattern().
void destroy_pattern (shwild_handle_t hCompiledPattern)
 C++ overload synonym for shwild_destroy_pattern().


Typedef Documentation

typedef shwild_slice_t slice_t

C++ synonym for shwild_slice_t.


Function Documentation

int shwild::compile_pattern ( char const *  pattern,
unsigned  flags,
shwild_handle_t phCompiledPattern 
) [inline]

C++ overload synonym for shwild_compile_pattern().

void shwild::destroy_pattern ( shwild_handle_t  hCompiledPattern  )  [inline]

C++ overload synonym for shwild_destroy_pattern().

int shwild::match ( char const *  pattern,
char const *  string,
unsigned  flags = 0 
) [inline]

C++ overload synonym for shwild_match().

int shwild::match_pattern ( shwild_handle_t  hCompiledPattern,
char const *  string 
) [inline]

C++ overload synonym for shwild_match_pattern().


b64 Library documentation © Synesis Software Pty Ltd, 2004-2012