Re: Where is stringbuilder?
- From: erewhon@xxxxxxxxxx (J French)
- Date: Fri, 20 Oct 2006 08:14:19 GMT
On Fri, 20 Oct 2006 09:32:49 +0200, "Maarten Wiltink"
<maarten@xxxxxxxxxxxxxxxxxx> wrote:
"Rob Kennedy" <me3@xxxxxxxxxxx> wrote in message
news:4pr1kqFk8t34U1@xxxxxxxxxxxxxxxxx
J French wrote:
What an odd idea
A string is just a block of memory
In Win32 Delphi, yes. In Java and .Net, no. In those, a string is an
object. If it had methods that could change its contents, then anything
that stored a reference to a string would be in danger of having that
string change later.
There is that. Plus, a string does not contain amorphous bytes but
*characters*. These may be two bytes in length. Or one-or-more bytes.
They may be encoded in US-ASCII, with high bits implicitly cleared
because they're not used anyway. Or in ISO-8859-1. Or ISO-8859-15,
or Windows-1252. Or KOI-8. UTF-8. UTF-7. EBCDIC.
I'm not sure about this, but my understanding is that Delphi treats a
String as an array of Bytes unless one uses the ANSI prefixed routines
which might treat some combinations of two bytes as one Char if one is
in a MBCS locale
Is there ever a case where Length( S[n] ) = 2 ?
.
- Follow-Ups:
- Re: Where is stringbuilder?
- From: Maarten Wiltink
- Re: Where is stringbuilder?
- References:
- Where is stringbuilder?
- From: brett
- Re: Where is stringbuilder?
- From: Rob Kennedy
- Re: Where is stringbuilder?
- From: J French
- Re: Where is stringbuilder?
- From: Rob Kennedy
- Re: Where is stringbuilder?
- From: J French
- Re: Where is stringbuilder?
- From: Rob Kennedy
- Re: Where is stringbuilder?
- From: Maarten Wiltink
- Where is stringbuilder?
- Prev by Date: Re: Where is stringbuilder?
- Next by Date: Re: NT Service and Sockets
- Previous by thread: Re: Where is stringbuilder?
- Next by thread: Re: Where is stringbuilder?
- Index(es):
Relevant Pages
|