From fb28f6800864176be2ffca29e8e664b641f33170 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 21 Dec 2009 18:04:02 +0000 Subject: m3 is copied into trunk, we should be good to go, now. --- src/functionmatches.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/functionmatches.h (limited to 'src/functionmatches.h') diff --git a/src/functionmatches.h b/src/functionmatches.h new file mode 100644 index 0000000..7757a44 --- /dev/null +++ b/src/functionmatches.h @@ -0,0 +1,23 @@ +#ifndef FUNCTION_MATCHES_H +#define FUNCTION_MATCHES_H + +#include "function.h" + +class FunctionMatches : public Function +{ +public: + FunctionMatches(); + virtual ~FunctionMatches(); + + /** + * Really basic globbing function, it doesn't handle character classes, + * just * and ?. We can expand on it later, it may be handy. + */ + bool globcmp( const Bu::FString &sTxt, const Bu::FString &sMatches ); + bool matchlist( const Bu::FString &sTxt, VarList &lParams ); + virtual Bu::FString getName() const; + virtual Variable call( Variable &input, VarList lParams ); + +}; + +#endif -- cgit v1.2.3