{========================================================================} {= (c) 1995-98 SwiftSoft Ronald Dittrich =} {========================================================================} {= All Rights Reserved =} {========================================================================} {= D 01099 Dresden = Tel.: +0351-8012255 =} {= Loewenstr.7a = info@swiftsoft.de =} {========================================================================} {= Actual versions on http://www.swiftsoft.de/mmtools.html =} {========================================================================} {= This code is for reference purposes only and may not be copied or =} {= distributed in any format electronic or otherwise except one copy =} {= for backup purposes. =} {= =} {= No Delphi Component Kit or Component individually or in a collection=} {= subclassed or otherwise from the code in this unit, or associated =} {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =} {= without express permission from SwiftSoft. =} {= =} {= For more licence informations please refer to the associated =} {= HelpFile. =} {========================================================================} {= $Date: 20.01.1998 - 18:00:00 $ =} {========================================================================} unit MMString; {$I COMPILER.INC} interface uses {$IFDEF WIN32} Windows, Messages, {$ELSE} WinProcs, WinTypes, {$ENDIF} SysUtils; {$IFNDEF WIN32} procedure SetLength(var StrX: string; Len: integer); procedure SetString(var StrX: string; Buffer: PChar; Len: integer); function Trim(const StrX: string): string; function TrimLeft(const StrX: string): string; function TrimRight(const StrX: string): string; {$ENDIF} function Replicate(const StrX: string; NoTimes: Byte): string; procedure DeleteLeft(var strX: string; Border: Char); procedure DeleteRight(var strX: string; Border: Char); procedure PadEnds(var StrX: string; ch: Char; Len: integer); procedure PadLeft(var StrX: string; ch: Char; Len: integer); procedure PadRight(var StrX: string; ch: Char; Len: integer); function LeftEnd(const StrX: string; Border: Char): string; function RightEnd(const StrX: string; Border: Char): string; function LeftStr(const StrX: string; Len: integer): string; function RightStr(const StrX: string; Len: integer): string; function Equal(const StrX1, StrX2: string): Boolean; function Encrypt(const StrX: string; Key: Word): string; function Decrypt(const StrX: string; Key: Word): string; implementation