Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/parser/htmlparser/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  CParserContext.h

  Sprache: C
 

/* 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/. */


/**
 * MODULE NOTES:
 * @update  gess 4/1/98
 *
 */


#ifndef CParserContext_h
#define CParserContext_h

#include "nsIParser.h"
#include "nsIRequest.h"
#include "nsScanner.h"
#include "nsString.h"
#include "nsCOMPtr.h"

class nsITokenizer;

/**
 * Note that the parser is given FULL access to all
 * data in a parsercontext. Hey, that what it's for!
 */


/**
 * Legacy enum kept around for now to accommodate fragment vs. not fragment
 * paths in nsParser.
 */

enum eAutoDetectResult {
  eUnknownDetect,
  ePrimaryDetect,
};

/**
 * Legacy enum kept around for now to accommodate fragment vs. not fragment
 * paths in nsParser.
 */

enum nsDTDMode { eDTDMode_full_standards, eDTDMode_autodetect };

class CParserContext {
 public:
  CParserContext(nsIURI* aURI, eParserCommands aCommand);
  CParserContext(const nsAString& aBuffer, eParserCommands aCommand,
                 bool aLastBuffer);

  ~CParserContext();

  void SetMimeType(const nsACString& aMimeType);

  nsCOMPtr<nsIRequest>
      mRequest;  // provided by necko to differnciate different input streams
                 // why is mRequest strongly referenced? see bug 102376.
  nsScanner mScanner;

  nsCString mMimeType;
  nsDTDMode mDTDMode;

  eParserDocType mDocType;
  eStreamState mStreamListenerState;
  eAutoDetectResult mAutoDetectStatus = eUnknownDetect;
  eParserCommands mParserCommand;

  bool mMultipart;
  bool mCopyUnused;
};

#endif  // CParserContext_h

Messung V0.5 in Prozent
C=94 H=89 G=91

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.