Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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/. */
7 /**
8 * MODULE NOTES:
9 * @update gess 4/1/98
10 *
11 */
13 #ifndef __NSITOKENIZER__
14 #define __NSITOKENIZER__
16 #include "nsISupports.h"
18 class nsScanner;
20 #define NS_ITOKENIZER_IID \
21 { 0Xae98a348, 0X5e91, 0X41a8, \
22 { 0Xa5, 0Xb4, 0Xd2, 0X20, 0Xf3, 0X1f, 0Xc4, 0Xab } }
24 /***************************************************************
25 Notes:
26 ***************************************************************/
29 class nsITokenizer : public nsISupports {
30 public:
31 NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOKENIZER_IID)
33 NS_IMETHOD WillTokenize(bool aIsFinalChunk)=0;
34 NS_IMETHOD ConsumeToken(nsScanner& aScanner,bool& aFlushTokens)=0;
35 };
37 NS_DEFINE_STATIC_IID_ACCESSOR(nsITokenizer, NS_ITOKENIZER_IID)
39 #define NS_DECL_NSITOKENIZER \
40 NS_IMETHOD WillTokenize(bool aIsFinalChunk);\
41 NS_IMETHOD ConsumeToken(nsScanner& aScanner,bool& aFlushTokens);\
44 #endif