|
@@ -11,6 +11,11 @@
|
|
*********************************************************************
|
|
*********************************************************************
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function IsLeadChar(Ch: WideChar): Boolean;
|
|
|
|
+begin
|
|
|
|
+ Result := (Ch >= #$D800) and (Ch <= #$DFFF);
|
|
|
|
+end;
|
|
|
|
+
|
|
function Trim(const S: widestring): widestring;
|
|
function Trim(const S: widestring): widestring;
|
|
var
|
|
var
|
|
Ofs, Len: sizeint;
|
|
Ofs, Len: sizeint;
|
|
@@ -180,6 +185,7 @@ begin
|
|
result:=(Ch<=#$FF) and (ansichar(byte(ch)) in CSet);
|
|
result:=(Ch<=#$FF) and (ansichar(byte(ch)) in CSet);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+
|
|
{$macro on}
|
|
{$macro on}
|
|
{$define INWIDESTRINGREPLACE}
|
|
{$define INWIDESTRINGREPLACE}
|
|
{$define SRString:=WideString}
|
|
{$define SRString:=WideString}
|