mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 13:29:19 +02:00
Add fpwidestring and unicodeducet units for go32v2 tests related to unicode support
git-svn-id: trunk@34168 -
This commit is contained in:
parent
7ff12e144f
commit
e9a1ed9446
@ -1,6 +1,22 @@
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$endif}
|
||||
{$ifdef unix}
|
||||
uses
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
|
||||
{$else}
|
||||
uses
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{ The unit strings is not really used here,
|
||||
but simpifies the conditional construction
|
||||
for fpwidestring and unicodeducet use }
|
||||
strings;
|
||||
{$endif}
|
||||
|
||||
type
|
||||
|
@ -1,9 +1,20 @@
|
||||
{%skiptarget=wince}
|
||||
{$codepage utf-8}
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$endif}
|
||||
|
||||
uses
|
||||
{$ifdef unix}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif}
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
sysutils;
|
||||
|
||||
procedure doerror(i : integer);
|
||||
|
@ -1,9 +1,20 @@
|
||||
{$codepage utf-8}
|
||||
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$endif}
|
||||
|
||||
uses
|
||||
{$ifdef unix}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif unix}
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
sysutils;
|
||||
|
||||
procedure testwcmp;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ %skiptarget=win32,win64,wince,os2,emx }
|
||||
{ %skiptarget=win32,win64,wince,os2,emx,go32v2,msdos }
|
||||
{ This test is only useful if the local codepage is utf-8 which
|
||||
usually not the case on windows (and never can be the case on OS/2)
|
||||
}
|
||||
|
@ -1,8 +1,19 @@
|
||||
{%skiptarget=wince}
|
||||
{$codepage utf-8}
|
||||
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$endif}
|
||||
uses
|
||||
{$ifdef unix}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif}
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
sysutils;
|
||||
|
||||
|
@ -1,9 +1,19 @@
|
||||
{$codepage utf-8}
|
||||
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$endif}
|
||||
uses
|
||||
{$ifdef unix}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif unix}
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
sysutils;
|
||||
|
||||
procedure testwcmp;
|
||||
|
@ -1,8 +1,25 @@
|
||||
{$codepage utf8}
|
||||
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$endif}
|
||||
|
||||
{$ifdef unix}
|
||||
uses
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
|
||||
{$else}
|
||||
uses
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{ The unit strings is not really used here,
|
||||
but simpifies the conditional construction
|
||||
for fpwidestring and unicodeducet use }
|
||||
strings;
|
||||
{$endif}
|
||||
|
||||
type
|
||||
|
Loading…
Reference in New Issue
Block a user