C# 클래스 Majestic12.HTMLentities

Implements parsing of entities
파일 보기 프로젝트 열기: arktronic/sevenauth 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
oAllEntities FastHash
sEntityReverseLookup string[]

공개 메소드들

메소드 설명
Dispose ( ) : void

비공개 메소드들

메소드 설명
ChangeToEntities ( string sLine, int iFrom, bool bChangeDangerousCharsOnly ) : string

Parses line and changes known entiry characters into proper HTML entiries

CheckForEntity ( byte bHTML, int &iCurPos ) : char

This function will be called when & is found, and it will peek forward to check if its entity, should there be a success indicated by non-zero returned, the pointer will be left at the new byte after entity

CheckForEntity ( byte bHTML, int &iCurPos, int iDataLength ) : char
DecodeEntities ( ) : char

This function will decode any entities found in a string - not fast!

DecodeEntities ( string sData ) : string
Dispose ( bool bDisposing ) : void
HTMLentities ( ) : System
InitEntities ( int &iMinEntityLen, int &iMaxEntityLen, string &sEntityReverseLookup ) : FastHash

Initialises list of entities

InitMiniEntities ( ) : void

Inits mini-entities mode: only "nbsp" will be converted into space, all other entities will be left as is

ParseUInt ( byte bBuf, int iFrom, int iLength ) : uint

Parses an unsigned integer number from byte buffer

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

프로퍼티 상세

oAllEntities 공개적으로 정적으로 프로퍼티

Supported HTML entities
public static FastHash,Majestic12 oAllEntities
리턴 FastHash

sEntityReverseLookup 공개적으로 정적으로 프로퍼티

Array to provide reverse lookup for entities
public static string[] sEntityReverseLookup
리턴 string[]