mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 03:06:08 +01:00
93d145bb01
+ 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
31 lines
751 B
C++
31 lines
751 B
C++
//----------------------------------------------------------------------
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
// by the OpenBeOS license.
|
|
//---------------------------------------------------------------------
|
|
/*!
|
|
\file sniffer/DisjList.h
|
|
Mime Sniffer Disjunction List declarations
|
|
*/
|
|
#ifndef _sk_sniffer_disj_list_h_
|
|
#define _sk_sniffer_disj_list_h_
|
|
|
|
class BPositionIO;
|
|
|
|
namespace Sniffer {
|
|
|
|
//! Abstract class defining methods acting on a list of ORed patterns
|
|
class DisjList {
|
|
public:
|
|
DisjList();
|
|
virtual ~DisjList();
|
|
virtual bool Sniff(BPositionIO *data) const = 0;
|
|
|
|
void SetCaseInsensitive(bool how);
|
|
bool IsCaseInsensitive();
|
|
protected:
|
|
bool fCaseInsensitive;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // _sk_sniffer_disj_list_h_
|