Re: Tiburón and FastCode



Dennis wrote:

Hi Rudy

TCharPosFunction = function(Chr : Char; const Str : AnsiString) :
Integer;

That uses Char, not AnsiChar, so it should have a big problem. <g>

OK

Is this good?

TCharPosFunction = function(Chr : AnsiChar; const Str : AnsiString) :
Integer;

That should be fine. <g>


--
Rudy Velthuis [TeamB] http://www.teamb.com

"Humor is just another defense against the universe."
-- Mel Brooks (1926- )
.



Relevant Pages

  • Re: =?iso-8859-1?Q?Tibur=F3n_and_FastCode?=
    ... Dennis wrote: ... That uses Char, not AnsiChar, so it should have a big problem. ... -- Wernher Von Braun ...
    (borland.public.delphi.language.basm)
  • Re: Whats the big deal with cross-platform?
    ... sets still can only have a maximum of 256 elements, and a set of Char ... it must be a set of AnsiChar. ... as a record-with-methods. ... CG allow the "in" operator to be overloaded in the Uninocde version of ...
    (borland.public.delphi.non-technical)
  • Re: Why does this not work: PChar(@Name[0]) := Pchar(String);
    ... That's because you've declared your stuff as WideString and WideChar, but you tell the compiler that your pointers are really pointing at AnsiChars. ... When string becomes an alias for WideString, you can count on Char being an alias for WideChar. ... PChar will continue to be a pointer to Char, but of course that will really be a pointer to WideChar instead of AnsiChar. ... But you're dealing with real compilers now, not hypothetical future compilers, so when you code doesn't work today, don't blame it your preparation for a compiler that doesn't exist yet. ...
    (alt.comp.lang.borland-delphi)
  • Re: D2009 - String = WideString?
    ... Über die Typen Char, PChar, AnsiChar, PAnsiChar und AnsiString ... Multibyte-Zeichen und -Strings. ... In JAVA ist String eine Klasse mit Methoden und Eigenschaften, ... "char charAt" ...
    (de.comp.lang.delphi.misc)
  • Re: Pre Delphi 2008-9 Unicode Dos and Donts
    ... CharSet = Set of Char; ... TCharSet = set of AnsiChar; ...
    (borland.public.delphi.non-technical)