3 #ifndef SWIG__COMMON__NDS_BASH_PATTERN_HH
4 #define SWIG__COMMON__NDS_BASH_PATTERN_HH
7 #include "bash_pattern.h"
16 explicit bash_pattern(
const std::string& expression )
17 : compiled_expr(::bash_pattern_compile( expression.c_str( ) ) )
21 explicit bash_pattern(
const char* expression )
22 : compiled_expr(::bash_pattern_compile(
23 ( expression ? expression :
"" ) ) )
31 ::bash_pattern_free( compiled_expr );
36 matches(
const char* text )
38 return ::bash_pattern_matches( compiled_expr, text );
42 typedef ::bash_pattern bash_pattern_t;
44 bash_pattern_t* compiled_expr;