mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 05:29:18 +02:00
Add fpwidestring and unicodeducet units for go32v2 OS for wide string tests
git-svn-id: trunk@34259 -
This commit is contained in:
parent
b2467eae3b
commit
5abbe42115
@ -1,8 +1,19 @@
|
|||||||
{ Source provided for Free Pascal Bug Report 3697 }
|
{ Source provided for Free Pascal Bug Report 3697 }
|
||||||
{ Submitted by "Matthias Hryniszak" on 2005-02-26 }
|
{ Submitted by "Matthias Hryniszak" on 2005-02-26 }
|
||||||
{ e-mail: matthias@hryniszak.de }
|
{ e-mail: matthias@hryniszak.de }
|
||||||
|
{$ifdef go32v2}
|
||||||
|
{$define USE_FPWIDESTRING_UNIT}
|
||||||
|
{$define USE_UNICODEDUCET_UNIT}
|
||||||
|
{$endif}
|
||||||
uses
|
uses
|
||||||
{$ifdef unix}{$ifdef darwin}iosxwstr{$else}cwstring{$endif}, {$endif}SysUtils;
|
{$ifdef unix}{$ifdef darwin}iosxwstr{$else}cwstring{$endif}, {$endif}
|
||||||
|
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||||
|
fpwidestring,
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||||
|
unicodeducet,
|
||||||
|
{$endif}
|
||||||
|
SysUtils;
|
||||||
|
|
||||||
var
|
var
|
||||||
S: WideString;
|
S: WideString;
|
||||||
@ -11,6 +22,6 @@ begin
|
|||||||
S := WideFormat('Test %s', ['string']);
|
S := WideFormat('Test %s', ['string']);
|
||||||
if s<>'Test string' then
|
if s<>'Test string' then
|
||||||
halt(1);
|
halt(1);
|
||||||
|
|
||||||
writeln('ok');
|
writeln('ok');
|
||||||
end.
|
end.
|
||||||
|
@ -1,8 +1,18 @@
|
|||||||
|
{$ifdef go32v2}
|
||||||
|
{$define USE_FPWIDESTRING_UNIT}
|
||||||
|
{$define USE_UNICODEDUCET_UNIT}
|
||||||
|
{$endif}
|
||||||
{$codepage utf8}
|
{$codepage utf8}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$ifdef unix}
|
{$ifdef unix}
|
||||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||||
|
fpwidestring,
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||||
|
unicodeducet,
|
||||||
{$endif}
|
{$endif}
|
||||||
sysutils;
|
sysutils;
|
||||||
|
|
||||||
|
@ -1,6 +1,16 @@
|
|||||||
|
{$ifdef go32v2}
|
||||||
|
{$define USE_FPWIDESTRING_UNIT}
|
||||||
|
{$define USE_UNICODEDUCET_UNIT}
|
||||||
|
{$endif}
|
||||||
uses
|
uses
|
||||||
{$ifdef unix}
|
{$ifdef unix}
|
||||||
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_FPWIDESTRING_UNIT}
|
||||||
|
fpwidestring,
|
||||||
|
{$endif}
|
||||||
|
{$ifdef USE_UNICODEDUCET_UNIT}
|
||||||
|
unicodeducet,
|
||||||
{$endif}
|
{$endif}
|
||||||
variants,sysutils;
|
variants,sysutils;
|
||||||
var a:variant;
|
var a:variant;
|
||||||
|
Loading…
Reference in New Issue
Block a user