Re: (~D4-D7:) Does *Delete* function work on chars or bytes

From: dk_sz (dk_sz_at_hotmail.com)
Date: 01/22/04


Date: Thu, 22 Jan 2004 15:21:05 +0100


> No, but there are other functions that you can use to achieve the same
> effect.

I haven't found them! Anyway, since both Length, Pos, AnsiPos,
etc. return byte-position Delete is still ok to use some places.

> D8 strings are Unicode-based, so there's no need for any additional

Yes, if you develop solely on Delphi 8 :-).

> manipulation. In fact, many of the Ansi* functions in D7 work by first
> converting the string to Unicode (WideString).

I did not know, Thanks! Still, it makes little difference. "Many" isn't good
enough :-).
If using Ansi* functions in D7 (without wrapping them) one will have to
change those in D8.

best regards
Thomas Schulz



Relevant Pages

  • Re: Fastcode Ansi StringReplace B&V 0.2
    ... Should we include a fixed reference function in the next release? ... That calls Pos and not AnsiPos? ... Regards ...
    (borland.public.delphi.language.basm)
  • Re: opos vb net code examples
    ... I am new to POS programming and have since found that there is a Pos.net ... > How to send raw data to a printer by using Visual Basic .NET ... > the Pos driver development or the pos printer vendor. ... > Best regards, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Fastcode Ansi StringReplace B&V 0.2
    ... Pos function. ... Best Regards, ... > Should we include a fixed reference function in the next release? ... > That calls Pos and not AnsiPos? ...
    (borland.public.delphi.language.basm)
  • Fastcode Pos B&V 5.5.0
    ... We need to find a size penalty constant for Pos. ... SizePenalty WinnerFunction Size Speed RelativeSpeed ... I will create a poll. ... Best regards ...
    (borland.public.delphi.language.basm)
  • Re: [CHALLENGE] finding rightmost zero bit
    ... Bart Vandewoestyne wrote: ... select case (temp) ... pos = bit_size+ 1 ... Regards, ...
    (comp.lang.fortran)