git-svn-id: trunk@38735 -
@@ -2,9 +2,19 @@ program fpctest4;
{$ifdef fpc}
{$mode delphi}
{$endif fpc}
+{$ifdef go32v2}
+ {$define USE_FPWIDESTRING_UNIT}
+ {$define USE_UNICODEDUCET_UNIT}
+{$endif}
uses
{$ifdef unix}
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
+{$ifdef USE_FPWIDESTRING_UNIT}
+ fpwidestring,
+{$ifdef USE_UNICODEDUCET_UNIT}
+ unicodeducet,
{$endif}
Classes,sysutils,variants,typinfo;
@@ -1,8 +1,24 @@
{$mode objfpc}{$H+}
-{$ifdef unix}{$ifdef darwin}iosxwstr{$else}cwstring{$endif},{$endif}
-Classes, SysUtils;
+{$ifdef unix}
+ {$ifdef darwin}
+ iosxwstr,
+ {$else}
+ cwstring,
+ {$endif}
+ Classes, SysUtils;
const buffer : array[1..20334] of char=(
@@ -1,5 +1,16 @@
{$codepage cp866}
+uses
+ unicodeducet;
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
@@ -7,9 +7,20 @@ program test;
{$apptype console}
+
Classes,SysUtils,uw13015;
@@ -1,9 +1,19 @@
Classes, SysUtils;
@@ -1,7 +1,17 @@
program comparetext;
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}
{$ifdef mswindows}{$apptype console}{$endif}
sysutils
,{$ifdef darwin}iosxwstr{$else}cwstring{$endif}
@@ -2,6 +2,18 @@ program concatenate_resourestrings_delphiunicode;
{$mode delphiunicode}
{$codepage cp1250}
@@ -1,5 +1,17 @@
program TestStrIComp;
{$ifdef unix}{$ifdef darwin}iosxwstr{$else}cwstring{$endif},{$endif}
SysUtils;
program tw4080;
{$i+}
@@ -1,8 +1,28 @@
program av;
{$ifdef FPC}{$mode objfpc}{$h+}{$INTERFACES CORBA}{$endif}
- {$ifdef FPC}{$ifdef unix}cthreads,{$ifdef darwin}iosxwstr{$else}cwstring{$endif},{$endif}{$endif}sysutils;
+{$ifdef FPC}
+ {$ifdef unix}
+ cthreads,
+ iosxwstr
+ cwstring
+ ,{$endif}
+ {$ifdef USE_FPWIDESTRING_UNIT}
+ {$ifdef USE_UNICODEDUCET_UNIT}
+ sysutils;
type
testrecty = record
str: widestring;
{ %norun }
+ {$define use_fpwidestring_unit}
+ {$define use_unicodeducet_unit}
sysutils;
{ just to make sure that no all wide->shortstring compile time conversions }