]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/esi/CustomParser.h
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef SQUID_ESICUSTOMPARSER_H
10 #define SQUID_ESICUSTOMPARSER_H
15 #include "esi/Parser.h"
17 #include "sbuf/SBuf.h"
18 #include "SquidString.h"
23 class ESICustomParser
: public ESIParser
27 ESICustomParser(ESIParserClient
*);
30 bool parse(char const *dataToParse
, size_t const lengthOfData
, bool const endOfStream
);
31 long int lineNumber() const;
32 char const * errorString() const;
37 static Trie
*SearchTrie
;
38 static Trie
*GetTrie();
45 char const *findTag(char const *a
, size_t b
);
46 ESIParserClient
*theClient
;
48 /* cheap n dirty - buffer it all */
50 /* TODO: make a class of this type code */
54 #endif /* SQUID_ESICUSTOMPARSER_H */