HTML::CharsetFunctions Struct Reference

#include <HTMLEscape.hpp>

Inheritance diagram for HTML::CharsetFunctions:

HTML::CharsetASCII List of all members.

Detailed Description

This structure holds pointers to functions providing parsing helper functions.

Inheritance criteria is based on charset


Public Member Functions

virtual int findAChar (const tchar *const input, const int length, const tchar ch) const=0
 Find the the position for the given char in the input string this function is charset and encoding independent.
virtual int findAttributeMark (const tchar *const input, const int length) const =0
 Find the first attribute marker from string (started by " or ' in ASCII) this function is charset and encoding independent.
virtual int findAttributeName (const tchar *const input, const int length, int &attributeStartPos) const=0
 Find the current attribute name this function is charset and encoding independent.
virtual unsigned int findLength (const tchar *const input) const =0
 Find the length of the input string this function is charset and encoding independent.
virtual int findNextAttribute (const tchar *const input, const int length, int &attribStartPos) const =0
 Find next attribute this function is charset and encoding independent.
virtual int findNextAttributeContent (const tchar *const input, const int length, int &attribStartPos) const =0
 Find next attribute content this function is charset and encoding independent.
virtual int findNextStartTag (const tchar *const input, const int length) const =0
 Find the next start tag (started by '<' in ASCII) this function is charset and encoding independent.
virtual int findNextTagEnd (const tchar *const input, const int length) const =0
 Find the current tag end (started by '>' in ASCII) this function is charset and encoding independent.
virtual int findSpecificTagEnd (const char *tagName, const unsigned int tagNameLen, const tchar *const input, const int length) const=0
 Find the a specific tag end (started by '</' in ASCII) this function is charset and encoding independent.
virtual int findTagName (const tchar *const input, const int length, int &tagStartPos) const =0
 Find the current tag name this function is charset and encoding independent.
virtual char const *const lastFoundAttributeName () const=0
 Get the last found attribute name.
virtual const int & lastFoundAttributeNameLength () const=0
 Get the last found attribute length.
virtual char const *const lastFoundTagName () const=0
 Get the last found tag name.
virtual const int & lastFoundTagNameLength () const=0
 Get the last found tag length.


Member Function Documentation

virtual int HTML::CharsetFunctions::findAChar ( const tchar *const  input,
const int  length,
const tchar  ch 
) const [pure virtual]

Find the the position for the given char in the input string this function is charset and encoding independent.

Parameters:
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
Returns:
the char position in the source string

Implemented in HTML::CharsetASCII.

virtual int HTML::CharsetFunctions::findAttributeMark ( const tchar *const  input,
const int  length 
) const [pure virtual]

Find the first attribute marker from string (started by " or ' in ASCII) this function is charset and encoding independent.

Parameters:
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
Returns:
the position for the next attribute mark (just before '"' or ''') in byte, or -1 if not found.

Implemented in HTML::CharsetASCII.

virtual int HTML::CharsetFunctions::findAttributeName ( const tchar *const  input,
const int  length,
int &  attributeStartPos 
) const [pure virtual]

Find the current attribute name this function is charset and encoding independent.

Parameters:
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
attributeStartPos The position of the first char in the attribute name
Returns:
the position for the current attribute name end (just after the last char of the name) in byte, or -1 if not found.

Implemented in HTML::CharsetASCII.

virtual unsigned int HTML::CharsetFunctions::findLength ( const tchar *const  input  )  const [pure virtual]

Find the length of the input string this function is charset and encoding independent.

Parameters:
input The input string pointer
Returns:
the string length in bytes

Implemented in HTML::CharsetASCII.

virtual int HTML::CharsetFunctions::findNextAttribute ( const tchar *const  input,
const int  length,
int &  attribStartPos 
) const [pure virtual]

Find next attribute this function is charset and encoding independent.

Parameters:
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
attribStartPos The found attribute position in the given stream
Returns:
the position for the current attribute name end (just after the last char of the name) in byte, or -1 if not found.

Implemented in HTML::CharsetASCII.

virtual int HTML::CharsetFunctions::findNextAttributeContent ( const tchar *const  input,
const int  length,
int &  attribStartPos 
) const [pure virtual]

Find next attribute content this function is charset and encoding independent.

Parameters:
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
attribStartPos The first found attribute content position in the given stream
Returns:
the position for the current attribute end position end (just after the last char of the name) in byte, or -1 if not found.

Implemented in HTML::CharsetASCII.

virtual int HTML::CharsetFunctions::findNextStartTag ( const tchar *const  input,
const int  length 
) const [pure virtual]

Find the next start tag (started by '<' in ASCII) this function is charset and encoding independent.

Parameters:
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
Returns:
the position for the next start tag (just before '<') in byte, or -1 if not found.

Implemented in HTML::CharsetASCII.

virtual int HTML::CharsetFunctions::findNextTagEnd ( const tchar *const  input,
const int  length 
) const [pure virtual]

Find the current tag end (started by '>' in ASCII) this function is charset and encoding independent.

Parameters:
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
Returns:
the position for the current tag end (just before '>') in byte, or -1 if not found.

Implemented in HTML::CharsetASCII.

virtual int HTML::CharsetFunctions::findSpecificTagEnd ( const char *  tagName,
const unsigned int  tagNameLen,
const tchar *const  input,
const int  length 
) const [pure virtual]

Find the a specific tag end (started by '</' in ASCII) this function is charset and encoding independent.

Parameters:
tagName The tagName to look for
tagNameLen The length of the provided tag name
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
Returns:
the position for the searched tag end (just after '<') in byte, or -1 if not found.

Implemented in HTML::CharsetASCII.

virtual int HTML::CharsetFunctions::findTagName ( const tchar *const  input,
const int  length,
int &  tagStartPos 
) const [pure virtual]

Find the current tag name this function is charset and encoding independent.

Parameters:
input The input string pointer
length The input length (if not known, set it to zero, it will be calculated automatically) in byte
tagStartPos The position of the first char in the tag name
Returns:
the position for the current tag name end (just after the last char of the name) in byte, or -1 if not found.

Implemented in HTML::CharsetASCII.

virtual char const* const HTML::CharsetFunctions::lastFoundAttributeName (  )  const [pure virtual]

Get the last found attribute name.

Warning:
The return can be different from read attribute name, in order to speed up attributeging
Returns:
the last attribute name in an char array (not tchar)

Implemented in HTML::CharsetASCII.

virtual const int& HTML::CharsetFunctions::lastFoundAttributeNameLength (  )  const [pure virtual]

Get the last found attribute length.

Warning:
The return can be different from read attribute name's length, in order to speed up attributeging
Returns:
the last attribute name length

Implemented in HTML::CharsetASCII.

virtual char const* const HTML::CharsetFunctions::lastFoundTagName (  )  const [pure virtual]

Get the last found tag name.

Warning:
The return can be different from read tag name, in order to speed up tagging
Returns:
the last tag name in an char array (not tchar)

Implemented in HTML::CharsetASCII.

virtual const int& HTML::CharsetFunctions::lastFoundTagNameLength (  )  const [pure virtual]

Get the last found tag length.

Warning:
The return can be different from read tag name's length, in order to speed up tagging
Returns:
the last tag name length

Implemented in HTML::CharsetASCII.


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

(C) An X-Ryl669 project 2007

This document describes Unlimited Zooming Interface source code. UZI stands for Unlimited Zooming Interface, and source code license is