mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 11:09:15 +02:00
Use USE_INTERNAL_UNICODE to be able to test fpwidestrings on different targets
git-svn-id: trunk@38758 -
This commit is contained in:
parent
52b830a434
commit
5ae4724a5b
@ -1,20 +1,27 @@
|
||||
{%skiptarget=wince}
|
||||
{$codepage utf-8}
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$define USE_INTERNAL_UNICODE}
|
||||
{$endif}
|
||||
|
||||
{$ifdef USE_INTERNAL_UNICODE}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$define USE_CPALL_UNIT}
|
||||
{$endif}
|
||||
uses
|
||||
{$ifdef unix}
|
||||
{$ifndef USE_INTERNAL_UNICODE}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif}
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
{$endif ndef USE_INTERNAL_UNICODE}
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{$endif}
|
||||
{$ifdef USE_CPALL_UNIT}
|
||||
cpall,
|
||||
{$endif}
|
||||
sysutils;
|
||||
|
||||
procedure doerror(i : integer);
|
||||
|
@ -1,19 +1,26 @@
|
||||
{$codepage utf-8}
|
||||
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$define USE_INTERNAL_UNICODE}
|
||||
{$endif}
|
||||
|
||||
{$ifdef USE_INTERNAL_UNICODE}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$define USE_CPALL_UNIT}
|
||||
{$endif}
|
||||
uses
|
||||
{$ifdef unix}
|
||||
{$ifndef USE_INTERNAL_UNICODE}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif unix}
|
||||
{$endif ndef USE_INTERNAL_UNICODE}
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{$ifdef USE_CPALL_UNIT}
|
||||
cpall,
|
||||
{$endif}
|
||||
sysutils;
|
||||
|
||||
|
@ -1,18 +1,26 @@
|
||||
{$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 unix}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
|
||||
{$endif}
|
||||
{$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}
|
||||
unicodeducet;
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
|
||||
{$ifdef USE_CPALL_UNIT}
|
||||
cpall,
|
||||
{$endif}
|
||||
strings;
|
||||
|
||||
var
|
||||
w : widestring;
|
||||
|
@ -1,17 +1,26 @@
|
||||
{$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 unix}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
|
||||
{$endif}
|
||||
{$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}
|
||||
unicodeducet;
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{$ifdef USE_CPALL_UNIT}
|
||||
cpall,
|
||||
{$endif}
|
||||
strings;
|
||||
|
||||
var
|
||||
i : longint;
|
||||
|
@ -4,18 +4,26 @@
|
||||
{$endif fpc}
|
||||
|
||||
{$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 unix}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif}
|
||||
{$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}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{$ifdef USE_CPALL_UNIT}
|
||||
cpall,
|
||||
{$endif}
|
||||
Classes, SysUtils;
|
||||
|
||||
|
@ -2,18 +2,26 @@
|
||||
{$codepage utf-8}
|
||||
|
||||
{$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 unix}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif}
|
||||
{$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}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{$ifdef USE_CPALL_UNIT}
|
||||
cpall,
|
||||
{$endif}
|
||||
sysutils;
|
||||
|
||||
|
@ -1,18 +1,26 @@
|
||||
{$codepage utf-8}
|
||||
|
||||
{$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 unix}
|
||||
{$ifndef USE_INTERNAL_UNICODE}
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||
{$endif unix}
|
||||
{$endif ndef USE_INTERNAL_UNICODE}
|
||||
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||
fpwidestring,
|
||||
{$endif}
|
||||
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{$ifdef USE_CPALL_UNIT}
|
||||
cpall,
|
||||
{$endif}
|
||||
sysutils;
|
||||
|
||||
|
@ -1,21 +1,27 @@
|
||||
{$codepage utf8}
|
||||
|
||||
{$ifdef go32v2}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$define USE_INTERNAL_UNICODE}
|
||||
{$endif}
|
||||
|
||||
{$ifdef unix}
|
||||
uses
|
||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
|
||||
{$else}
|
||||
{$ifdef USE_INTERNAL_UNICODE}
|
||||
{$define USE_FPWIDESTRING_UNIT}
|
||||
{$define USE_UNICODEDUCET_UNIT}
|
||||
{$define USE_CPALL_UNIT}
|
||||
{$endif}
|
||||
uses
|
||||
{$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}
|
||||
unicodeducet,
|
||||
{$endif}
|
||||
{$ifdef USE_CPALL_UNIT}
|
||||
cpall,
|
||||
{$endif}
|
||||
{ The unit strings is not really used here,
|
||||
but simpifies the conditional construction
|
||||
for fpwidestring and unicodeducet use }
|
||||
|
Loading…
Reference in New Issue
Block a user