Re: Tiburón and FastCode



Dennis wrote:

Hi

Perhaps because in the ol'days "string" was all there was?

OK

I am still shuddering at the thought of modifying all the apps I
have coded with plain ol' string. <sigh>

I am not sure it will to hard. CodeGear has probably done a lot of
work to make the transition to Unicode easy.

What if you simply make a search and replace on string -> AnsiString
- will everything just work as before?

Yes, and no. Also Char, PChar etc. must be replaced. Then, since the
library routines like Format or Trim will probably return
UnicodeStrings, what if you replace all occurrences of string with
AnsiString?

var
S, T: AnsiString;
begin
S := ' Hello ';
T := Format(S);

This will cause two conversions: S will be converted to UnicodeString,
passed to Format, and the result of Format must be converted back.

I'd rather see new routines for Char (<-- WideChar).
--
Rudy Velthuis [TeamB] http://www.teamb.com

"USA Today has come out with a new survey: Apparently three out
of four people make up 75 percent of the population."
-- David Letterman.
.



Relevant Pages

  • Re: Tiburón and FastCode
    ... I still find it quite a waste to use Unicode strings, ... would perhaps require 3 bytes per character. ... have coded with plain ol' string. ... This will cause two conversions: S will be converted to UnicodeString, ...
    (borland.public.delphi.language.basm)
  • Re: UCHAR problem
    ... Then you copy what is a Unicode string into it, ... UCHAR Ssid; ... that the problem is in the conversions i'm makeing above, ...
    (microsoft.public.vc.mfc)
  • Re: Eiffel and portability, which choice ?
    ... Eiffel's UC_STRING is much slower than STRING. ... average so large such that Unicode cannot be justified. ... internal format for use in your application. ...
    (comp.lang.eiffel)
  • Re: Unicode output to file
    ... UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ... it seems Python tempts to recode the unicode string in a 8-bit character ... I merely need to save the string in the native utf8 format. ...
    (comp.lang.python)
  • Re: dateTime Manupulations
    ... I /never/ talked about conversions between cultures. ... is about parsing a date string without caring about the culture, ... providing a format string. ...
    (microsoft.public.dotnet.languages.vb)