IEncoding
type
IEncoding = interface(IInterface) ['{82D0D9E6-E641-4CA9-AE8F-611010E3A34D}']
function GetMaxCharCount(
TotalByteCount: Integer): Integer;
function GetMaxByteCount(
TotalCharCount: Integer): Integer;
function GetPreamble: TArray<Byte>;
function GetPreambleRecommended: Boolean;
function GetByteCount(
const s: string): Integer;
function GetByteCount(
const Chars: TArray<Char>): Integer;
function GetByteCount(
const Chars: TArray<Char>;
Offset: Integer;
TotalCharCount: Integer): Integer;
function GetBytes(
const s: string): TArray<Byte>;
function GetBytes(
const Chars: TArray<Char>): TArray<Byte>;
function GetBytes(
const Chars: TArray<Char>;
Offset: Integer;
TotalCharCount: Integer): TArray<Byte>;
function GetCharCount(
const Bytes: TArray<Byte>): Integer;
function GetCharCount(
const Bytes: TArray<Byte>;
Offset: Integer;
TotalByteCount: Integer): Integer;
function GetCharCount(
const Bytes: TArray<Byte>;
var BytesUsed: Integer): Integer;
function GetCharCount(
const Bytes: TArray<Byte>;
Offset: Integer;
TotalByteCount: Integer;
var BytesUsed: Integer): Integer;
function TryGetCharCount(
const Bytes: TArray<Byte>;
var CharsUsed: Integer): Boolean;
function TryGetCharCount(
const Bytes: TArray<Byte>;
Offset: Integer;
TotalByteCount: Integer;
var CharsUsed: Integer): Boolean;
function TryGetCharCount(
const Bytes: TArray<Byte>;
var BytesUsed: Integer;
var CharsUsed: Integer): Boolean;
function TryGetCharCount(
const Bytes: TArray<Byte>;
Offset: Integer;
TotalByteCount: Integer;
var BytesUsed: Integer;
var CharsUsed: Integer): Boolean;
function GetString(
const Bytes: TArray<Byte>): string;
function GetString(
const Bytes: TArray<Byte>;
Offset: Integer;
TotalByteCount: Integer): string;
function TryGetString(
const Bytes: TArray<Byte>;
out Text: string): Boolean;
function TryGetString(
const Bytes: TArray<Byte>;
Offset: Integer;
TotalByteCount: Integer;
out Text: string): Boolean;
function Equals(
const Encoding: IEncoding): Boolean;
function GetName: string;
function GetPreferredMimeType: string;
property PreambleRecommended: Boolean read;
property Name: string read;
property PreferredMimeType: string read;
end;
Ancestor: IInterface.
Defined in: DSGenUtil
⏱ Last Modified: Tue 2:20:51 pm