mirror of
https://github.com/claunia/Claunia.Encoding.git
synced 2025-12-16 19:24:43 +00:00
Added code to get a list of available encodings.
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Claunia.Encoding
|
||||
/// <summary>
|
||||
/// Represents an Apple Lisa character encoding of Unicode characters.
|
||||
/// </summary>
|
||||
public class LisaRoman : System.Text.Encoding
|
||||
public class LisaRoman : Encoding
|
||||
{
|
||||
const string _bodyname = "lisa";
|
||||
const int _codepage = 0;
|
||||
@@ -50,28 +50,28 @@ namespace Claunia.Encoding
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the current encoding can be used by browser clients for displaying content.
|
||||
/// </summary>
|
||||
public bool IsBrowserDisplay {
|
||||
public override bool IsBrowserDisplay {
|
||||
get { return browserDisplay; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the current encoding can be used by browser clients for saving content.
|
||||
/// </summary>
|
||||
public bool IsBrowserSave {
|
||||
public override bool IsBrowserSave {
|
||||
get { return browserSave; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the current encoding can be used by mail and news clients for displaying content.
|
||||
/// </summary>
|
||||
public bool IsMailNewsDisplay {
|
||||
public override bool IsMailNewsDisplay {
|
||||
get { return mailNewsDisplay; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the current encoding can be used by mail and news clients for saving content.
|
||||
/// </summary>
|
||||
public bool IsMailNewsSave {
|
||||
public override bool IsMailNewsSave {
|
||||
get { return mailNewsSave; }
|
||||
}
|
||||
|
||||
@@ -79,35 +79,35 @@ namespace Claunia.Encoding
|
||||
/// Gets a value indicating whether the current encoding is read-only.
|
||||
/// </summary>
|
||||
/// <value>The is single byte.</value>
|
||||
public bool IsReadOnly {
|
||||
public override bool IsReadOnly {
|
||||
get { return readOnly; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the current encoding uses single-byte code points.
|
||||
/// </summary>
|
||||
public bool IsSingleByte {
|
||||
public override bool IsSingleByte {
|
||||
get { return singleByte; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the code page identifier of the current Encoding.
|
||||
/// </summary>
|
||||
public int CodePage {
|
||||
public override int CodePage {
|
||||
get { return _codepage; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a name for the current encoding that can be used with mail agent body tags
|
||||
/// </summary>
|
||||
public string BodyName {
|
||||
public override string BodyName {
|
||||
get { return _bodyname; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a name for the current encoding that can be used with mail agent header tags
|
||||
/// </summary>
|
||||
public string HeaderName {
|
||||
public override string HeaderName {
|
||||
get { return _headername; }
|
||||
}
|
||||
|
||||
@@ -121,14 +121,14 @@ namespace Claunia.Encoding
|
||||
/// <summary>
|
||||
/// Gets the human-readable description of the current encoding.
|
||||
/// </summary>
|
||||
public string EncodingName {
|
||||
public override string EncodingName {
|
||||
get { return _encodingname; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Windows operating system code page that most closely corresponds to the current encoding.
|
||||
/// </summary>
|
||||
public int WindowsCodePage {
|
||||
public override int WindowsCodePage {
|
||||
get { return _windowsCodepage; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user