|
@@ -3,10 +3,33 @@ program strtest;
|
|
{$MODE OBJFPC}
|
|
{$MODE OBJFPC}
|
|
{$LONGSTRINGS ON}
|
|
{$LONGSTRINGS ON}
|
|
|
|
|
|
-{$ifdef unix}
|
|
|
|
-uses CWstring;
|
|
|
|
|
|
+{$ifdef go32v2}
|
|
|
|
+ {$define USE_INTERNAL_UNICODE}
|
|
|
|
+{$endif}
|
|
|
|
+
|
|
|
|
+{$ifdef USE_INTERNAL_UNICODE}
|
|
|
|
+ {$define USE_FPWIDESTRING_UNIT}
|
|
|
|
+ {$define USE_UNICODEDUCET_UNIT}
|
|
|
|
+ {$define USE_CPALL_UNIT}
|
|
{$endif}
|
|
{$endif}
|
|
|
|
|
|
|
|
+uses
|
|
|
|
+{$ifdef unix}
|
|
|
|
+ {$ifndef USE_INTERNAL_UNICODE}
|
|
|
|
+ {$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
|
|
|
+ {$endif ndef USE_INTERNAL_UNICODE}
|
|
|
|
+{$endif unix}
|
|
|
|
+ {$ifdef USE_FPWIDESTRING_UNIT}
|
|
|
|
+ fpwidestring,
|
|
|
|
+ {$endif}
|
|
|
|
+ {$ifdef USE_UNICODEDUCET_UNIT}
|
|
|
|
+ unicodeducet,
|
|
|
|
+ {$endif}
|
|
|
|
+ {$ifdef USE_CPALL_UNIT}
|
|
|
|
+ cpall,
|
|
|
|
+ {$endif}
|
|
|
|
+ Strings;
|
|
|
|
+
|
|
type
|
|
type
|
|
tEnum = (North, East, South, West);
|
|
tEnum = (North, East, South, West);
|
|
|
|
|