C# 클래스 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
상속: IDisposable
파일 보기 프로젝트 열기: arktronic/sevenauth 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddTag() 공개 메소드

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
리턴 bool

Dispose() 공개 메소드

Disposes of resources
public Dispose ( ) : void
리턴 void

GetAttr() 공개 메소드

public GetAttr ( int iAttrID ) : string
iAttrID int
리턴 string

GetAttrData() 공개 메소드

public GetAttrData ( int iAttrID ) : byte[]
iAttrID int
리턴 byte[]

GetString() 공개 메소드

Returns string for ID returned by GetMatch
public GetString ( int iID ) : string
iID int ID
리턴 string

GetStringData() 공개 메소드

public GetStringData ( int iID ) : byte[]
iID int
리턴 byte[]

GetTwoCharString() 공개 메소드

public GetTwoCharString ( byte cChar1, byte cChar2 ) : string
cChar1 byte
cChar2 byte
리턴 string

MatchAttr() 공개 메소드

public MatchAttr ( byte bChar, int iTagID ) : short
bChar byte
iTagID int
리턴 short

MatchTag() 공개 메소드

public MatchTag ( byte cChar1, byte cChar2 ) : short
cChar1 byte
cChar2 byte
리턴 short