Encoding
Overview
Class to deal with conversions to/from different character encodings
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
-
Mapped to:
- Encoding .NET, .NET Core 6.0, .NET Standard 2.0
- Charset Cooper
- Encoding Island
- NSNumber Toffee, ToffeeV2
ASCII
ASCII encoding instance.
class property ASCII: not nullable Encoding read;
class Encoding! ASCII { get; }
static var ASCII: Encoding { get{} }
class Encoding ASCII { __get; }
Shared ReadOnly Property ASCII() As Encoding
AsNSStringEncoding Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Toffee, ToffeeV2
method AsNSStringEncoding: NSStringEncoding
NSStringEncoding AsNSStringEncoding()
func AsNSStringEncoding() -> NSStringEncoding
Function AsNSStringEncoding() As NSStringEncoding
Default
The system default encoding. This is the encoding files are expected to be in, if they have no other encoding.
class property Default: not nullable Encoding read;
class Encoding! Default { get; }
static var Default: Encoding { get{} }
class Encoding Default { __get; }
Shared ReadOnly Property Default() As Encoding
Parameters:
- aBytes:
Parameters:
- aBytes:
- aSkipBytes:
Get the bytes data from a string, if includeBOM is true, it includes the byte order marker if relevant for this encoding.
Parameters:
- aValue:
- aIncludeBOM:
Get the bytes data from a string, including byte order marker.
Parameters:
- aValue:
GetBytes (String) includeBOM(Boolean): not nullable array of Byte .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aValue:
- aIncludeBOM:
GetEncoding
Get an encoding by it's name. System/platform dependent.
Parameters:
- aName:
Convert a byte array back to string, in the given encoding.
Parameters:
- aValue:
Parameters:
- aValue:
- aOffset:
Convert a byte array back to string, in the given encoding.
Parameters:
- aValue:
- aOffset:
- aCount:
GetString (not nullable NSData): String Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator
Convert a byte array back to string, in the given encoding.
method GetString(aValue: not nullable NSData): String
String GetString(NSData! aValue)
func GetString(_ aValue: NSData) -> String
Function GetString(aValue As NSData) As String
Parameters:
- aValue:
GetString (not nullable ImmutableBinary): String Cooper, Island, Toffee, ToffeeV2
Convert a byte array back to string, in the given encoding.
method GetString(aValue: not nullable ImmutableBinary): String
String GetString(ImmutableBinary! aValue)
func GetString(_ aValue: ImmutableBinary) -> String
String GetString(ImmutableBinary aValue)
Function GetString(aValue As ImmutableBinary) As String
Parameters:
- aValue:
Parameters:
- aValue:
- aOffset:
Parameters:
- aValue:
- aOffset:
- aCount:
GetString (not nullable ImmutableBinary): String .NET, .NET Core 6.0, .NET Standard 2.0
method GetString(aValue: not nullable ImmutableBinary): String
String GetString(ImmutableBinary! aValue)
func GetString(_ aValue: ImmutableBinary) -> String
Function GetString(aValue As ImmutableBinary) As String
Parameters:
- aValue:
isUTF16BE
property isUTF16BE: Boolean read;
Boolean isUTF16BE { get; }
var isUTF16BE: Boolean { get{} }
Boolean isUTF16BE { __get; }
ReadOnly Property isUTF16BE() As Boolean
isUTF16LE
property isUTF16LE: Boolean read;
Boolean isUTF16LE { get; }
var isUTF16LE: Boolean { get{} }
Boolean isUTF16LE { __get; }
ReadOnly Property isUTF16LE() As Boolean
isUTF32BE
property isUTF32BE: Boolean read;
Boolean isUTF32BE { get; }
var isUTF32BE: Boolean { get{} }
Boolean isUTF32BE { __get; }
ReadOnly Property isUTF32BE() As Boolean
isUTF32LE
property isUTF32LE: Boolean read;
Boolean isUTF32LE { get; }
var isUTF32LE: Boolean { get{} }
Boolean isUTF32LE { __get; }
ReadOnly Property isUTF32LE() As Boolean
isUTF8
True if this encoding is utf8.
property isUTF8: Boolean read;
Boolean isUTF8 { get; }
var isUTF8: Boolean { get{} }
Boolean isUTF8 { __get; }
ReadOnly Property isUTF8() As Boolean
Name
Name of the encoding.
property Name: not nullable String read;
String! Name { get; }
var Name: String { get{} }
String Name { __get; }
ReadOnly Property Name() As String
UTF16BE
UTF16 in big endian order (note: this is fairly rare compared to little endian)
class property UTF16BE: not nullable Encoding read;
class Encoding! UTF16BE { get; }
static var UTF16BE: Encoding { get{} }
class Encoding UTF16BE { __get; }
Shared ReadOnly Property UTF16BE() As Encoding
UTF16LE
UTF16 in little endian order
class property UTF16LE: not nullable Encoding read;
class Encoding! UTF16LE { get; }
static var UTF16LE: Encoding { get{} }
class Encoding UTF16LE { __get; }
Shared ReadOnly Property UTF16LE() As Encoding
UTF32BE
UTF32 in big endian order (note: this is fairly rare compared to little endian)
class property UTF32BE: not nullable Encoding read;
class Encoding! UTF32BE { get; }
static var UTF32BE: Encoding { get{} }
class Encoding UTF32BE { __get; }
Shared ReadOnly Property UTF32BE() As Encoding
UTF32LE
UTF32 in little endian order
class property UTF32LE: not nullable Encoding read;
class Encoding! UTF32LE { get; }
static var UTF32LE: Encoding { get{} }
class Encoding UTF32LE { __get; }
Shared ReadOnly Property UTF32LE() As Encoding
UTF8
UTF8 Encoding.
isUTF16BE
property isUTF16BE: Boolean read;
Boolean isUTF16BE { get; }
var isUTF16BE: Boolean { get{} }
Boolean isUTF16BE { __get; }
ReadOnly Property isUTF16BE() As Boolean
isUTF16LE
property isUTF16LE: Boolean read;
Boolean isUTF16LE { get; }
var isUTF16LE: Boolean { get{} }
Boolean isUTF16LE { __get; }
ReadOnly Property isUTF16LE() As Boolean
isUTF32BE
property isUTF32BE: Boolean read;
Boolean isUTF32BE { get; }
var isUTF32BE: Boolean { get{} }
Boolean isUTF32BE { __get; }
ReadOnly Property isUTF32BE() As Boolean
isUTF32LE
property isUTF32LE: Boolean read;
Boolean isUTF32LE { get; }
var isUTF32LE: Boolean { get{} }
Boolean isUTF32LE { __get; }
ReadOnly Property isUTF32LE() As Boolean
isUTF8
True if this encoding is utf8.
property isUTF8: Boolean read;
Boolean isUTF8 { get; }
var isUTF8: Boolean { get{} }
Boolean isUTF8 { __get; }
ReadOnly Property isUTF8() As Boolean
Name
Name of the encoding.
property Name: not nullable String read;
String! Name { get; }
var Name: String { get{} }
String Name { __get; }
ReadOnly Property Name() As String
ASCII
ASCII encoding instance.
class property ASCII: not nullable Encoding read;
class Encoding! ASCII { get; }
static var ASCII: Encoding { get{} }
class Encoding ASCII { __get; }
Shared ReadOnly Property ASCII() As Encoding
Default
The system default encoding. This is the encoding files are expected to be in, if they have no other encoding.
class property Default: not nullable Encoding read;
class Encoding! Default { get; }
static var Default: Encoding { get{} }
class Encoding Default { __get; }
Shared ReadOnly Property Default() As Encoding
UTF16BE
UTF16 in big endian order (note: this is fairly rare compared to little endian)
class property UTF16BE: not nullable Encoding read;
class Encoding! UTF16BE { get; }
static var UTF16BE: Encoding { get{} }
class Encoding UTF16BE { __get; }
Shared ReadOnly Property UTF16BE() As Encoding
UTF16LE
UTF16 in little endian order
class property UTF16LE: not nullable Encoding read;
class Encoding! UTF16LE { get; }
static var UTF16LE: Encoding { get{} }
class Encoding UTF16LE { __get; }
Shared ReadOnly Property UTF16LE() As Encoding
UTF32BE
UTF32 in big endian order (note: this is fairly rare compared to little endian)
class property UTF32BE: not nullable Encoding read;
class Encoding! UTF32BE { get; }
static var UTF32BE: Encoding { get{} }
class Encoding UTF32BE { __get; }
Shared ReadOnly Property UTF32BE() As Encoding
UTF32LE
UTF32 in little endian order
class property UTF32LE: not nullable Encoding read;
class Encoding! UTF32LE { get; }
static var UTF32LE: Encoding { get{} }
class Encoding UTF32LE { __get; }
Shared ReadOnly Property UTF32LE() As Encoding
UTF8
UTF8 Encoding.
Parameters:
- aBytes:
Parameters:
- aBytes:
- aSkipBytes:
GetEncoding
Get an encoding by it's name. System/platform dependent.
Parameters:
- aName:
AsNSStringEncoding Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Toffee, ToffeeV2
method AsNSStringEncoding: NSStringEncoding
NSStringEncoding AsNSStringEncoding()
func AsNSStringEncoding() -> NSStringEncoding
Function AsNSStringEncoding() As NSStringEncoding
Get the bytes data from a string, if includeBOM is true, it includes the byte order marker if relevant for this encoding.
Parameters:
- aValue:
- aIncludeBOM:
Get the bytes data from a string, including byte order marker.
Parameters:
- aValue:
Convert a byte array back to string, in the given encoding.
Parameters:
- aValue:
Parameters:
- aValue:
- aOffset:
Convert a byte array back to string, in the given encoding.
Parameters:
- aValue:
- aOffset:
- aCount:
GetString (not nullable NSData): String Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator
Convert a byte array back to string, in the given encoding.
method GetString(aValue: not nullable NSData): String
String GetString(NSData! aValue)
func GetString(_ aValue: NSData) -> String
Function GetString(aValue As NSData) As String
Parameters:
- aValue:
GetString (not nullable ImmutableBinary): String Cooper, Island, Toffee, ToffeeV2
Convert a byte array back to string, in the given encoding.
method GetString(aValue: not nullable ImmutableBinary): String
String GetString(ImmutableBinary! aValue)
func GetString(_ aValue: ImmutableBinary) -> String
String GetString(ImmutableBinary aValue)
Function GetString(aValue As ImmutableBinary) As String
Parameters:
- aValue:
GetBytes (String) includeBOM(Boolean): not nullable array of Byte .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- aValue:
- aIncludeBOM:
Parameters:
- aValue:
- aOffset:
Parameters:
- aValue:
- aOffset:
- aCount:
GetString (not nullable ImmutableBinary): String .NET, .NET Core 6.0, .NET Standard 2.0
method GetString(aValue: not nullable ImmutableBinary): String
String GetString(ImmutableBinary! aValue)
func GetString(_ aValue: ImmutableBinary) -> String
Function GetString(aValue As ImmutableBinary) As String
Parameters:
- aValue: