1999-01-09 04:09:02 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-01-09 04:09:02 +03:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MODULE NOTES:
|
|
|
|
* @update gess 4/1/98
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NSITOKENIZER__
|
|
|
|
#define __NSITOKENIZER__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
class nsScanner;
|
|
|
|
|
|
|
|
#define NS_ITOKENIZER_IID \
|
2013-08-12 19:28:41 +04:00
|
|
|
{ 0Xae98a348, 0X5e91, 0X41a8, \
|
|
|
|
{ 0Xa5, 0Xb4, 0Xd2, 0X20, 0Xf3, 0X1f, 0Xc4, 0Xab } }
|
1999-01-26 04:24:31 +03:00
|
|
|
|
1999-01-09 04:09:02 +03:00
|
|
|
/***************************************************************
|
|
|
|
Notes:
|
|
|
|
***************************************************************/
|
|
|
|
|
2002-01-09 04:37:50 +03:00
|
|
|
|
1999-01-09 04:09:02 +03:00
|
|
|
class nsITokenizer : public nsISupports {
|
|
|
|
public:
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOKENIZER_IID)
|
1999-01-26 04:24:31 +03:00
|
|
|
|
2013-08-12 19:28:41 +04:00
|
|
|
NS_IMETHOD WillTokenize(bool aIsFinalChunk)=0;
|
2011-09-29 10:19:26 +04:00
|
|
|
NS_IMETHOD ConsumeToken(nsScanner& aScanner,bool& aFlushTokens)=0;
|
1999-01-09 04:09:02 +03:00
|
|
|
};
|
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsITokenizer, NS_ITOKENIZER_IID)
|
|
|
|
|
2002-01-09 04:37:50 +03:00
|
|
|
#define NS_DECL_NSITOKENIZER \
|
2015-03-21 19:28:04 +03:00
|
|
|
NS_IMETHOD WillTokenize(bool aIsFinalChunk) override;\
|
|
|
|
NS_IMETHOD ConsumeToken(nsScanner& aScanner,bool& aFlushTokens) override;\
|
1999-01-09 04:09:02 +03:00
|
|
|
|
|
|
|
|
2002-01-09 04:37:50 +03:00
|
|
|
#endif
|