mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 17:40:28 +02:00
* make unicodechar equivalent to widechar, resolves #12233
git-svn-id: trunk@11830 -
This commit is contained in:
parent
17e7c221fd
commit
f64dbd70cf
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -8562,6 +8562,7 @@ tests/webtbs/tw12202.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw12214.pp svneol=native#text/plain
|
tests/webtbs/tw12214.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw1222.pp svneol=native#text/plain
|
tests/webtbs/tw1222.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw1223.pp svneol=native#text/plain
|
tests/webtbs/tw1223.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw12233.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw1228.pp svneol=native#text/plain
|
tests/webtbs/tw1228.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw1229.pp svneol=native#text/plain
|
tests/webtbs/tw1229.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw1250.pp svneol=native#text/plain
|
tests/webtbs/tw1250.pp svneol=native#text/plain
|
||||||
|
@ -351,7 +351,7 @@ Type
|
|||||||
PUCS2Char = PWideChar;
|
PUCS2Char = PWideChar;
|
||||||
PWideString = ^WideString;
|
PWideString = ^WideString;
|
||||||
|
|
||||||
UnicodeChar = type WideChar;
|
UnicodeChar = WideChar;
|
||||||
PUnicodeChar = ^UnicodeChar;
|
PUnicodeChar = ^UnicodeChar;
|
||||||
{$ifdef VER2_2}
|
{$ifdef VER2_2}
|
||||||
{ this is only to avoid too much ifdefs in the code }
|
{ this is only to avoid too much ifdefs in the code }
|
||||||
|
13
tests/webtbs/tw12233.pp
Normal file
13
tests/webtbs/tw12233.pp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
program postest;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
var
|
||||||
|
wchar: WideChar;
|
||||||
|
wstring: WideString;
|
||||||
|
|
||||||
|
begin
|
||||||
|
wchar := 'a';
|
||||||
|
wstring := 'badc';
|
||||||
|
writeln(Pos(wchar, wstring));
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user