aboutsummaryrefslogtreecommitdiff
path: root/src/functionmatches.h
blob: fa4cd4d6c414792de18bcfd478503231dffdb1b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (C) 2007-2014 Xagasoft, All rights reserved.
 *
 * This file is part of the Xagasoft Build and is released under the
 * terms of the license contained in the file LICENSE.
 */

#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::String &sTxt, const Bu::String &sMatches );
    bool matchlist( const Bu::String &sTxt, VarList &lParams );
    virtual Bu::String getName() const;
    virtual Variable call( Variable &input, VarList lParams );

};

#endif