mirror of
https://review.haiku-os.org/haiku
synced 2025-02-09 07:09:09 +01:00
+ Renamed Expr class to DisjList, which is more descriptive as to its function + Added ' and " to the list of allowed characters in an unquoted string. + Added updated sniffer rule grammar to doxygen for the Parser class git-svn-id: file:///srv/svn/repos/haiku/trunk/current@685 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
804 B
C++
38 lines
804 B
C++
//----------------------------------------------------------------------
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
// by the OpenBeOS license.
|
|
//---------------------------------------------------------------------
|
|
/*!
|
|
\file sniffer/RPattern.h
|
|
Mime Sniffer RPattern declarations
|
|
*/
|
|
#ifndef _sk_sniffer_r_pattern_h_
|
|
#define _sk_sniffer_r_pattern_h_
|
|
|
|
#include <sniffer/Range.h>
|
|
|
|
class BPositionIO;
|
|
|
|
namespace Sniffer {
|
|
|
|
class Err;
|
|
class Pattern;
|
|
|
|
//! A Pattern and a Range, bundled into one.
|
|
class RPattern {
|
|
public:
|
|
RPattern(Range range, Pattern *pattern);
|
|
~RPattern();
|
|
|
|
status_t InitCheck() const;
|
|
Err* GetErr() const;
|
|
|
|
bool Sniff(BPositionIO *data, bool caseInsensitive) const;
|
|
private:
|
|
Range fRange;
|
|
Pattern *fPattern;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // _sk_sniffer_r_pattern_h_
|