Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / test / tcpstr1.pp
Size: Mime:
{$ifdef unix}
uses
  cwstring;
{$endif}

type
  tcpstr1 = type AnsiString(1253);
  tcpstr2 = type AnsiString(1251);
var
  a1 : tcpstr1;
  a2 : utf8string;
  a3 : tcpstr2;
  u1 : unicodestring;
begin
  a1:=' ';
  a1[1]:=char($80); // Euro symbol in cp1253
  a2:=a1;
  if ord(a2[1])<>$E2 then
    halt(1);
  if ord(a2[2])<>$82 then
    halt(2);

  writeln('---');

  a3:=a1;
  if ord(a3[1])<>$88 then
    halt(3);

  writeln('---');

  u1:=a1;
  if ord(u1[1])<>$20AC then
    halt(4);

  writeln('ok');
end.