You've already forked lazarus-ccr
Fix: Overload "IsStrEmpty" for RawByteString and UnicodeString.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6678 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -50,11 +50,17 @@ Type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function IsStrEmpty(Const AStr:String):Boolean;
|
function IsStrEmpty(Const AStr : RawByteString):Boolean;overload;
|
||||||
|
function IsStrEmpty(Const AStr : UnicodeString):Boolean;overload;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
function IsStrEmpty(Const AStr:String):Boolean;
|
function IsStrEmpty(Const AStr : RawByteString):Boolean;
|
||||||
|
begin
|
||||||
|
Result := ( Length(Trim(AStr)) = 0 );
|
||||||
|
end;
|
||||||
|
|
||||||
|
function IsStrEmpty(Const AStr : UnicodeString):Boolean;
|
||||||
begin
|
begin
|
||||||
Result := ( Length(Trim(AStr)) = 0 );
|
Result := ( Length(Trim(AStr)) = 0 );
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user