Re: Tiburón and FastCode
- From: "Rudy Velthuis [TeamB]" <newsgroups@xxxxxxxxxxxx>
- Date: Sat, 5 Apr 2008 20:40:01 +0200
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.
.
- Follow-Ups:
- Re: Tiburón and FastCode
- From: Rudy Velthuis [TeamB]
- Re: Tiburón and FastCode
- References:
- Tiburón and FastCode
- From: Lee Grissom
- Re: Tiburón and FastCode
- From: Dennis
- Re: Tiburón and FastCode
- From: Q Correll
- Re: Tiburón and FastCode
- From: Dennis
- Tiburón and FastCode
- Prev by Date: Re: Tiburón and FastCode
- Next by Date: Re: Tiburón and FastCode
- Previous by thread: Re: Tiburón and FastCode
- Next by thread: Re: Tiburón and FastCode
- Index(es):
Relevant Pages
|