Unit xomPublicFunctions
Uses Classes, Interfaces, Objects and Records Types Constants Variables
Description
Overview
Functions and Procedures
function IntToByteStr (AInt: Integer): String; |
function ByteStrToInt (const AStr: String): Integer; |
function EncodeString (const sString: WideString): String; |
function DecodeString (const sString: String): WideString; |
procedure EncodeToStream (const sString: WideString; AStream: TStream); |
function DecodeFromStream (AStream: TStream): WideString; |
function ShiftString (const AString: String; Amount: Integer = 1): String; |
function Md5 (const AString: AnsiString; ADigestString: AnsiString = ''): String; |
function StreamSignature (AStream: TStream): String; |
function SignatureForFile(const AFileName: WideString; AWithDate: Boolean = False): AnsiString; |
function CompressString (const sString: WideString): String; |
function DecompressString (const sString: String): WideString; |
procedure CompressStream (ASource, ATarget: TStream; ACompressionLevel: Integer = 1); |
procedure DecompressStream (ASource, ATarget: TStream); |
function VarIsDate(AVariant: Variant): Boolean; |
Description
Functions and Procedures
function IntToByteStr (AInt: Integer): String; |
|
streams
|
function ByteStrToInt (const AStr: String): Integer; |
|
|
function EncodeString (const sString: WideString): String; |
|
encode a string
|
function DecodeString (const sString: String): WideString; |
|
decode an encoded string to its original value
|
procedure EncodeToStream (const sString: WideString; AStream: TStream); |
|
encode a string to an output stream
|
function DecodeFromStream (AStream: TStream): WideString; |
|
decode an encoded stream back to a original string value
|
function ShiftString (const AString: String; Amount: Integer = 1): String; |
|
shift each character in a string with a specific number of positions in the ASCII table; e.g. A shifted 2 = C
|
function Md5 (const AString: AnsiString; ADigestString: AnsiString = ''): String; |
|
encode a string to a MD5 string using a specifc digest string
|
function StreamSignature (AStream: TStream): String; |
|
create a 32 character unique signature code for a stream
|
function SignatureForFile(const AFileName: WideString; AWithDate: Boolean = False): AnsiString; |
|
create a 32 character unique signature code for a filename
|
function CompressString (const sString: WideString): String; |
|
compress a string
|
function DecompressString (const sString: String): WideString; |
|
decompress a a string
|
procedure CompressStream (ASource, ATarget: TStream; ACompressionLevel: Integer = 1); |
|
compress a stream
|
procedure DecompressStream (ASource, ATarget: TStream); |
|
de-compress a stream
|
function VarIsDate(AVariant: Variant): Boolean; |
|
returns if a Variant is date format
|
Generated by PasDoc 0.15.0.
|