Re: Where is stringbuilder?



"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


.



Relevant Pages

  • [TOMOYO #15 3/8] Common functions for TOMOYO Linux.
    ... This file contains common functions (e.g. policy I/O, pattern matching). ... Since TOMOYO Linux is a name based access control, ... TOMOYO Linux's string manipulation functions make reviewers feel crazy, ... the Linux kernel accepts all characters but NUL character ...
    (Linux-Kernel)
  • RfD: Escaped Strings version 4
    ... the S" string can only contain printable characters, ... the S" string cannot contain the '"' character, ... as an escape character for the entry of characters that cannot be ... \b BS (backspace, ASCII 8) ...
    (comp.lang.forth)
  • RfD: Escaped Strings version 4
    ... the S" string can only contain printable characters, ... the S" string cannot contain the '"' character, ... as an escape character for the entry of characters that cannot be ... \b BS (backspace, ASCII 8) ...
    (comp.lang.forth)
  • Re: RfD: Escaped Strings
    ... the S" string can only contain printable characters, ... the S" string cannot contain the '"' character, ... \b BS (backspace, ASCII 8) ... \ ** escapes to characters much as C does. ...
    (comp.lang.forth)
  • Re: A note on computing thugs and coding bums
    ... code is valid for any character set that is legal in C (which is a ... characters in the required source character set ... A String, in C Sharp or Java, can be redefined. ... allow programmers to handle some other data format, ...
    (comp.programming)