private void Dispose(bool bDisposing) { if (!bDisposed) { bDisposed = true; if (oChunk != null) { oChunk.Dispose(); oChunk = null; } if (sText != null) { sText.Dispose(); sText = null; } bHTML = null; if (oE != null) { oE.Dispose(); oE = null; } if (oTP != null) { oTP.Dispose(); oTP = null; } } }
/// <summary> /// Inits tag parser /// </summary> /// <param name="p_oChunk"></param> /// <param name="p_sText"></param> internal void Init(HTMLparser p_oP,HTMLchunk p_oChunk,DynaString p_sText,byte[] p_bHTML,int p_iDataLength,HTMLentities p_oE,HTMLheuristics p_oHE) { oP=p_oP; oChunk=p_oChunk; sText=p_sText; bHTML=p_bHTML; iDataLength=p_iDataLength; // we don't want to be too close to end of data when dealing with heuristics iMaxHeuDataLength=iDataLength-MIN_DATA_SIZE_FOR_HEURISTICS; oE=p_oE; oHE=p_oHE; }
private void Dispose(bool bDisposing) { if(!bDisposed) { bDisposed=true; bHTML=null; oChunk=null; sText=null; oE=null; oP=null; } }
/// <summary> /// This function will decode any entities found in a string - not fast! /// </summary> /// <returns>Possibly decoded string</returns> public static string DecodeEntities(string sData) { return(HTMLentities.DecodeEntities(sData)); }
private void Dispose(bool bDisposing) { if(!bDisposed) { bDisposed=true; if(oChunk!=null) { oChunk.Dispose(); oChunk=null; } if(sText!=null) { sText.Dispose(); sText=null; } bHTML=null; if(oE!=null) { oE.Dispose(); oE=null; } if(oTP!=null) { oTP.Dispose(); oTP=null; } } }