C# Класс CsQuery.Output.HtmlEncoderBase

Abstract base class for custom HTML encoder implementations
Наследование: IHtmlEncoder
Показать файл Открыть проект

Открытые методы

Метод Описание
Encode ( string html, TextWriter output ) : void

Encodes text as HTML, writing the processed output to the TextWriter.

Защищенные методы

Метод Описание
TryEncode ( char c, string &encoded ) : bool

Determines of a character must be encoded; if so, encodes it as the output parameter and returns true; if not, returns false.

TryEncodeAstralPlane ( int c, string &encoded ) : bool

Determines of a character must be encoded (for unicode chars using astral planes); if so, encodes it as the output parameter and returns true; if not, returns false. This method will be passed the integral representation of the mult-byte unicode character. If the method returns false, then the character will be output as the orginal two-byte sequence.

Описание методов

Encode() публичный Метод

Encodes text as HTML, writing the processed output to the TextWriter.
public Encode ( string html, TextWriter output ) : void
html string /// The text to be encoded. ///
output System.IO.TextWriter /// The target for the ouput. ///
Результат void

TryEncode() защищенный абстрактный Метод

Determines of a character must be encoded; if so, encodes it as the output parameter and returns true; if not, returns false.
protected abstract TryEncode ( char c, string &encoded ) : bool
c char /// The text string to encode. ///
encoded string /// [out] The encoded string. ///
Результат bool

TryEncodeAstralPlane() защищенный абстрактный Метод

Determines of a character must be encoded (for unicode chars using astral planes); if so, encodes it as the output parameter and returns true; if not, returns false. This method will be passed the integral representation of the mult-byte unicode character. If the method returns false, then the character will be output as the orginal two-byte sequence.
protected abstract TryEncodeAstralPlane ( int c, string &encoded ) : bool
c int /// The text string to encode. ///
encoded string /// [out] The encoded string. ///
Результат bool