Class TextAdapter
Utility class for operations with text
Inheritance
System.Object
TextAdapter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Media.PDF.Text
Assembly: Azos.Media.dll
Syntax
public static class TextAdapter
Properties
TrivialEncoding
Declaration
public static Encoding TrivialEncoding { get; }
Property Value
Type | Description |
---|---|
System.Text.Encoding |
UnicodeEncoding
Declaration
public static Encoding UnicodeEncoding { get; }
Property Value
Type | Description |
---|---|
System.Text.Encoding |
Methods
FixEscapes(String)
Declaration
public static string FixEscapes(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text |
Returns
Type | Description |
---|---|
System.String |
FormatFloat(Double)
Formats given float with a dot as fraction part delimeter and foors it to 4 digits after dot
Declaration
public static string FormatFloat(double number)
Parameters
Type | Name | Description |
---|---|---|
System.Double | number |
Returns
Type | Description |
---|---|
System.String |
FormatHexStringLiteral(Byte[])
Converts the specified byte array into a byte array representing a unicode hex string literal.
Declaration
public static byte[] FormatHexStringLiteral(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | The bytes of the string. |
Returns
Type | Description |
---|---|
System.Byte[] | The PDF bytes. |