HTML Tokenizing Utils


Classes

class  HTMLToken
class  HTMLTokenizer

Enumerations

enum  HTMLTokenType {
  TAG_START, TAG_END, COMMENT, TEXT,
  END
}

Functions

string TypeToString (HTMLTokenType type)

Detailed Description

Functions used to break apart an html string into tokens

Enumeration Type Documentation

A enumeration used to determine whether an HTMLToken is a TAG or TEXT.

Enumerator:
TAG_START  Returned when the token is of the form <x ...>, where "x" could be anything.
TAG_END  Returned when the token is of the form </x ...>, where "x" could be anything.
COMMENT  Returned when the token is a comment tag of the form .
TEXT  Returned when the token is not a tag but is some text.
END  Returned when there are no more tokens to return.

Definition at line 12 of file HTMLToken.h.


Function Documentation

string TypeToString ( HTMLTokenType  type  ) 

Convert an HTMLTokenType to a String representation. This is mostly useful for debugging purposes.

Definition at line 5 of file HTMLToken.cpp.

References END, TAG_END, TAG_START, and TEXT.


Generated on Wed Jul 7 16:30:29 2010 for CS240Utils by  doxygen 1.5.8