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.2.0 / tests / webtbs / tw26615.pp
Size: Mime:
{ %NORUN }

program tw26615;

{$MODE OBJFPC}{$H+}
{$MODESWITCH TYPEHELPERS}

uses
  sysutils;

type
  TStringHelper = type helper for UnicodeString
    class function Cr(AStr: UnicodeString): UnicodeString; static; overload;
  end;

class function TStringHelper.Cr(AStr: UnicodeString): UnicodeString;
begin
  Result := '#'+AStr;
end;

var
  us: UnicodeString;

begin

  us := UnicodeString.Cr('a');
  writeln(us);

end.