C# Class Majestic12.HTMLheuristics

This class will control HTML tag heuristics that will allow faster matching of tags to avoid long cycles as well as creation of same strings over and over again. This is effectively a fancy hash lookup table with attributes being hashed in context of tag
Inheritance: IDisposable
Afficher le fichier Open project: arktronic/sevenauth Class Usage Examples

Méthodes publiques

Méthode Description
AddTag ( string p_sTag, string sAttributeNames ) : bool

Adds tag to list of tracked tags (don't add too many, if you have got multiple same first 2 chars then duplicates won't be added, so make sure the first added tags are the MOST LIKELY to be found)

Dispose ( ) : void

Disposes of resources

GetAttr ( int iAttrID ) : string
GetAttrData ( int iAttrID ) : byte[]
GetString ( int iID ) : string

Returns string for ID returned by GetMatch

GetStringData ( int iID ) : byte[]
GetTwoCharString ( byte cChar1, byte cChar2 ) : string
MatchAttr ( byte bChar, int iTagID ) : short
MatchTag ( byte cChar1, byte cChar2 ) : short

Private Methods

Méthode Description
AddAttribute ( string sAttr, short usID, short usAttrID ) : void
AddTag ( string sTag, short usID, short usDataID ) : bool
Dispose ( bool bDisposing ) : void
HTMLheuristics ( ) : System

Static constructor

SetHash ( char cChar1, char cChar2, short usID ) : bool

Method Details

AddTag() public méthode

Adds tag to list of tracked tags (don't add too many, if you have got multiple same first 2 chars then duplicates won't be added, so make sure the first added tags are the MOST LIKELY to be found)
public AddTag ( string p_sTag, string sAttributeNames ) : bool
p_sTag string
sAttributeNames string Comma delimited list of attributed
Résultat bool

Dispose() public méthode

Disposes of resources
public Dispose ( ) : void
Résultat void

GetAttr() public méthode

public GetAttr ( int iAttrID ) : string
iAttrID int
Résultat string

GetAttrData() public méthode

public GetAttrData ( int iAttrID ) : byte[]
iAttrID int
Résultat byte[]

GetString() public méthode

Returns string for ID returned by GetMatch
public GetString ( int iID ) : string
iID int ID
Résultat string

GetStringData() public méthode

public GetStringData ( int iID ) : byte[]
iID int
Résultat byte[]

GetTwoCharString() public méthode

public GetTwoCharString ( byte cChar1, byte cChar2 ) : string
cChar1 byte
cChar2 byte
Résultat string

MatchAttr() public méthode

public MatchAttr ( byte bChar, int iTagID ) : short
bChar byte
iTagID int
Résultat short

MatchTag() public méthode

public MatchTag ( byte cChar1, byte cChar2 ) : short
cChar1 byte
cChar2 byte
Résultat short