blob: 7757a445dfd82943d6a1cf2b65b0ddd011c01c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|