[Lazarus] dynamic string proposal
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Aug 16 14:51:42 CEST 2017
On Wed, 16 Aug 2017 15:22:20 +0300
Alexey via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
> On 16.08.2017 12:51, Mattias Gaertner via Lazarus wrote:
> > When you propose a new string type "dynamicstring" you have to define these operators.
>
> BTW, it will be good to have "Cstring" (or another name, not
> "dynamicstring") :
>
> - [] operator is 0-based like Python/C
>
> - s[i] is DWORD per char (for all Unicode chars from 0 to MaxDWORD codes)
>
> PChar(s)/PWChar(s) wont work for it? so it is not ok idea? But this type
> can be compressed inside, eg in utf8. S[i] is DWORD outside. It is like
> some class.
This sounds, as if you want an UTF-32 string type.
Michael's proposal is a multi encoded string type, storing Ansi, UTF-8,
UTF-16 and UTF-32.
Mattias
More information about the Lazarus
mailing list