StauffConsulting.Essentials.| C#: |
public sealed abstract class CharEncoding :
object
|
| VB: |
Public NotInheritable MustInherit Class CharEncoding
Inherits Object
|
| Type Ancestry: | Object |
Add |
Adds a character mapping. |
Add |
|
EntitiesToAscii |
Converts (some) entities in the given string to reasonable ASCII equivalents. |
EntitiesToUnicode |
Converts any entities in a given string into their Unicode equivalents. |
RemoveUnicode |
Removes a character mapping. |
ToCsharpLiteral |
Converts a string to its C# string literal representation. |
UnicodeToAscii |
Converts (some) non-ASCII characters in the given Unicode string to reasonable ASCII equivalents. |
UnicodeToEntities |
Converts to entities any Unicode characters in the given string that have an entity representation. |
| C#: |
static Void Add(string entity,
string unicode,
string ascii)
|
| VB: |
Shared Function Add(ByVal entity As String, ByVal [unicode] As String, ByVal ascii As String) As Void
|
Parameters
entity | may be null; otherwise must begin with an ampersand and end with a semicolon |
unicode | usually 1 character; may be null |
ascii | usually 1 character; may be null |
| C#: |
static Void Add(string namedEntity,
string decimalEntity,
string hexEntity,
string unicode,
string ascii)
|
| VB: |
Shared Function Add(ByVal namedEntity As String, ByVal decimalEntity As String, ByVal hexEntity As String, ByVal [unicode] As String, ByVal ascii As String) As Void
|
Parameters
namedEntity | |
decimalEntity | |
hexEntity | |
unicode | |
ascii |
| C#: |
static String EntitiesToAscii(string input)
|
| VB: |
Shared Function EntitiesToAscii(ByVal input As String) As [String]
|
Parameters
input |
| C#: |
static String EntitiesToUnicode(string input)
|
| VB: |
Shared Function EntitiesToUnicode(ByVal input As String) As [String]
|
Parameters
input |
| C#: |
static Void RemoveUnicode(string entity,
char unicode)
|
| VB: |
Shared Function RemoveUnicode(ByVal entity As String, ByVal [unicode] As Char) As Void
|
Parameters
entity | |
unicode |
| C#: |
static String ToCsharpLiteral(string input)
|
| VB: |
Shared Function ToCsharpLiteral(ByVal input As String) As [String]
|
Parameters
input |
| C#: |
static String UnicodeToAscii(string input)
|
| VB: |
Shared Function UnicodeToAscii(ByVal input As String) As [String]
|
Parameters
input |
| C#: |
static String UnicodeToEntities(string input)
|
| VB: |
Shared Function UnicodeToEntities(ByVal input As String) As [String]
|
Parameters
input |