Re: Where is stringbuilder?
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Oct 2006 09:26:08 +0200
"Rob Kennedy" <me3@xxxxxxxxxxx> wrote in message
news:4ps8lvFk5btmU1@xxxxxxxxxxxxxxxxx
J French wrote:
On Fri, 20 Oct 2006 13:36:38 +0200, "Maarten Wiltink"
<maarten@xxxxxxxxxxxxxxxxxx> wrote:
"J French" <erewhon@xxxxxxxxxx> wrote in message
news:45388471.503443109@xxxxxxxxxxxxxxxxxxx
[...]Is there ever a case where Length( S[n] ) = 2 ?
No. A character is a character even if it's a WideChar.
SizeOf(S[n]) might, though.
Is it actually possible in Delphi, for the number of Bytes in a string
to be different from its Length() ?
(obviously not WideString stuff)
No.
There doesn't seem to be a function that counts characters in an MBCS
string, but there is one, CharLength, that counts bytes in a character
in such a string. Type 'MBCS', press F1, read help (it's what I did).
The MBCS-related functions seem to fall into two groups: really simple
ones and WinAPI stubs. I get a definite impression that all this only
applies to oriental Windows, where windows-1252 is not the OS codepage.
Groetjes,
Maarten Wiltink
.
- 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
- Re: Where is stringbuilder?
- From: J French
- Re: Where is stringbuilder?
- From: Maarten Wiltink
- Re: Where is stringbuilder?
- From: J French
- Re: Where is stringbuilder?
- From: Rob Kennedy
- Where is stringbuilder?
- Prev by Date: component renamer for D3
- Next by Date: Re: hi
- Previous by thread: Re: Where is stringbuilder?
- Next by thread: Re: Where is stringbuilder?
- Index(es):
Relevant Pages
|