Why is string.front dchar?

Timon Gehr timon.gehr at gmx.ch
Wed Jan 22 17:17:18 PST 2014


On 01/16/2014 06:56 AM, Jakob Ovrum wrote:
>
> Note that the Unicode definition of an unqualified "character" is the
> translation of a code *point*, which is very different from a *glyph*,
> which is what people generally associate the word "character" with.
> Thus, `string` is not an array of characters (i.e. an array where each
> element is a character), but `dstring` can be said to be.

A character can be made of more than one dchar. (There are also more 
exotic examples, eg. IIRC there are cases where three dchars make 
approximately two characters.)


More information about the Digitalmars-d-learn mailing list