Attribute tokens are used to contain attribute key/value pairs whereever they may occur.
More...
#include <nsHTMLTokens.h>
List of all members.
Detailed Description
Attribute tokens are used to contain attribute key/value pairs whereever they may occur.
Typically, they should occur only in start tokens. However, we may expand that ability when XML tokens become commonplace.
gess 3/25/98
Constructor & Destructor Documentation
CAttributeToken::CAttributeToken |
( |
|
) |
|
CAttributeToken::CAttributeToken |
( |
const nsAString & |
aString |
) |
|
CAttributeToken::~CAttributeToken |
( |
|
) |
[inline] |
Member Function Documentation
virtual void CAttributeToken::AppendSourceTo |
( |
nsAString & |
anOutputString |
) |
[virtual] |
harishd 03/23/00
- Returns:
- reference to string containing string value
Reimplemented from CToken.
virtual nsresult CAttributeToken::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.
const nsSubstring& CAttributeToken::GetKey |
( |
void |
|
) |
[inline] |
virtual void CAttributeToken::GetSource |
( |
nsString_external & |
anOutputString |
) |
[virtual] |
virtual const nsSubstring& CAttributeToken::GetStringValue |
( |
void |
|
) |
[virtual] |
Retrieve string value of the token gess5/11/98.
- Returns:
- reference to string containing string value
Implements CToken.
virtual PRInt32 CAttributeToken::GetTokenType |
( |
void |
|
) |
[virtual] |
Getter which retrieves type of token gess5/11/98.
- Returns:
- int containing token type
Reimplemented from CToken.
const nsSubstring& CAttributeToken::GetValue |
( |
void |
|
) |
[inline] |
virtual void CAttributeToken::SetKey |
( |
const nsAString & |
aKey |
) |
[virtual] |
virtual size_t CAttributeToken::SizeOf |
( |
|
) |
const [inline, protected, virtual] |
Returns the size of the token object.
Implements CToken.
Member Data Documentation
The documentation for this class was generated from the following file: