Make sstr() unicode compliant to fix bug #313 "Run SQL file dialog fails for German umlauts in file"

This commit is contained in:
Ansgar Becker
2008-06-24 20:22:00 +00:00
parent ab790b4072
commit 173aca5009

View File

@ -39,7 +39,7 @@ type
function IsValidDelimiter(var s: WideString): WideString;
type TParseSQLProcessCommand = procedure(command: WideString; parameter: WideString) of object;
function parsesql(sql: WideString; delimiter: WideString; processcommand: TParseSQLProcessCommand = nil) : TWideStringList;
function sstr(str: String; len: Integer) : String;
function sstr(str: WideString; len: Integer) : WideString;
function encrypt(str: String): String;
function decrypt(str: String): String;
function htmlentities(str: String): String;
@ -666,7 +666,7 @@ end;
@param integer Wished Length of string
@return string
}
function sstr(str: String; len: Integer) : String;
function sstr(str: WideString; len: Integer) : WideString;
begin
if length(str) >= len then
begin