|
@@ -2,21 +2,29 @@ program comparetext;
|
|
|
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}
|
|
|
{$ifdef mswindows}{$apptype console}{$endif}
|
|
|
{$ifdef go32v2}
|
|
|
+ {$define USE_INTERNAL_UNICODE}
|
|
|
+{$endif}
|
|
|
+
|
|
|
+{$ifdef USE_INTERNAL_UNICODE}
|
|
|
{$define USE_FPWIDESTRING_UNIT}
|
|
|
{$define USE_UNICODEDUCET_UNIT}
|
|
|
+ {$define USE_CPALL_UNIT}
|
|
|
{$endif}
|
|
|
uses
|
|
|
-{$ifdef USE_FPWIDESTRING_UNIT}
|
|
|
+ {$ifndef USE_INTERNAL_UNICODE}
|
|
|
+ {$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
|
|
+ {$endif ndef USE_INTERNAL_UNICODE}
|
|
|
+ {$ifdef USE_FPWIDESTRING_UNIT}
|
|
|
fpwidestring,
|
|
|
-{$endif}
|
|
|
-{$ifdef USE_UNICODEDUCET_UNIT}
|
|
|
+ {$endif}
|
|
|
+ {$ifdef USE_UNICODEDUCET_UNIT}
|
|
|
unicodeducet,
|
|
|
-{$endif}
|
|
|
- sysutils
|
|
|
-{$ifdef unix}
|
|
|
- ,{$ifdef darwin}iosxwstr{$else}cwstring{$endif}
|
|
|
-{$endif}
|
|
|
-;
|
|
|
+ {$endif}
|
|
|
+ {$ifdef USE_CPALL_UNIT}
|
|
|
+ cpall,
|
|
|
+ {$endif}
|
|
|
+ sysutils;
|
|
|
+
|
|
|
var
|
|
|
int1: integer;
|
|
|
ustr1,ustr2: unicodestring;
|