HTML Tokenizing Utils
Detailed Description
Functions used to break apart an html string into tokens
- Class HTMLTokenizer Used by students to break html strings into tokens.
- Class HTMLToken The token that is returned when the student requests to get the next token from an HTMLTokenizer.
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
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.