"bstring"

BCS none at anon.com
Tue Apr 6 14:10:25 PDT 2010


Hello Ali,

> Justin Spahr-Summers wrote:
> 
>> 'string' to me represents a contiguous run of valid
>> *characters* (i.e., the data has meaning and representation in and of
>> itself)... not strictly enforced by D, of course, but that's how the
>> type is used.
> If by "character" you mean "code unit", yes.
> 
> string characters are UTF-8 code units in D and have meanings by
> themselves only if they are one-byte UTF-8 sequences.

I think that's what the "not strictly enforced by D" part was about. True 
or not, people often assume that a string is valid UTF-8 of some kind.

-- 
... <IXOYE><






More information about the Digitalmars-d mailing list