|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 |
|
7 /** |
|
8 * MODULE NOTES: |
|
9 * @update gess 4/1/98 |
|
10 * |
|
11 */ |
|
12 |
|
13 #ifndef __NSITOKENIZER__ |
|
14 #define __NSITOKENIZER__ |
|
15 |
|
16 #include "nsISupports.h" |
|
17 |
|
18 class nsScanner; |
|
19 |
|
20 #define NS_ITOKENIZER_IID \ |
|
21 { 0Xae98a348, 0X5e91, 0X41a8, \ |
|
22 { 0Xa5, 0Xb4, 0Xd2, 0X20, 0Xf3, 0X1f, 0Xc4, 0Xab } } |
|
23 |
|
24 /*************************************************************** |
|
25 Notes: |
|
26 ***************************************************************/ |
|
27 |
|
28 |
|
29 class nsITokenizer : public nsISupports { |
|
30 public: |
|
31 NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOKENIZER_IID) |
|
32 |
|
33 NS_IMETHOD WillTokenize(bool aIsFinalChunk)=0; |
|
34 NS_IMETHOD ConsumeToken(nsScanner& aScanner,bool& aFlushTokens)=0; |
|
35 }; |
|
36 |
|
37 NS_DEFINE_STATIC_IID_ACCESSOR(nsITokenizer, NS_ITOKENIZER_IID) |
|
38 |
|
39 #define NS_DECL_NSITOKENIZER \ |
|
40 NS_IMETHOD WillTokenize(bool aIsFinalChunk);\ |
|
41 NS_IMETHOD ConsumeToken(nsScanner& aScanner,bool& aFlushTokens);\ |
|
42 |
|
43 |
|
44 #endif |