Public Member Functions | Static Public Member Functions | Protected Member Functions

CNewlineToken Class Reference

Newline tokens contain, you guessed it, newlines. More...

#include <nsHTMLTokens.h>

Inheritance diagram for CNewlineToken:
Collaboration diagram for CNewlineToken:

List of all members.

Public Member Functions

 CNewlineToken ()
virtual nsresult Consume (PRUnichar aChar, nsScanner &aScanner, PRInt32 aMode)
 Causes token to consume data from given scanner.
virtual PRInt32 GetTokenType (void)
 Getter which retrieves type of token gess5/11/98.
virtual const nsSubstringGetStringValue (void)
 Retrieve string value of the token gess5/11/98.

Static Public Member Functions

static void AllocNewline ()
static void FreeNewline ()

Protected Member Functions

virtual size_t SizeOf () const
 Returns the size of the token object.

Detailed Description

Newline tokens contain, you guessed it, newlines.

They consume newline (CR/LF) either alone or in pairs.

gess 3/25/98


Constructor & Destructor Documentation

CNewlineToken::CNewlineToken (  ) 

Member Function Documentation

static void CNewlineToken::AllocNewline (  )  [static]
virtual nsresult CNewlineToken::Consume ( PRUnichar  aChar,
nsScanner &  aScanner,
PRInt32  aMode 
) [virtual]

Causes token to consume data from given scanner.

Note that behavior varies wildly between CToken subclasses. gess5/11/98

Parameters:
aChar -- most recent char consumed
aScanner -- input source where token should get data
Returns:
error code (0 means ok)

Reimplemented from CToken.

static void CNewlineToken::FreeNewline (  )  [static]
virtual const nsSubstring& CNewlineToken::GetStringValue ( void   )  [virtual]

Retrieve string value of the token gess5/11/98.

Returns:
reference to string containing string value

Implements CToken.

virtual PRInt32 CNewlineToken::GetTokenType ( void   )  [virtual]

Getter which retrieves type of token gess5/11/98.

Returns:
int containing token type

Reimplemented from CToken.

virtual size_t CNewlineToken::SizeOf (  )  const [inline, protected, virtual]

Returns the size of the token object.

Implements CToken.


The documentation for this class was generated from the following file: