dchar unicode phobos
Johan Granberg
lijat.meREM at OVEgmail.com
Wed Jun 7 08:51:05 PDT 2006
pragma wrote:
> So we get to have our cake and eat it too. The onus is now placed on the
> compiler, as it will generate a distinct version of each template as needed.
>
> The astute observer will notice that any array type can be used as a parameter
> in the above example. Proper use of static if() and the 'is' operator can
> easily ensure that only char, wchar and dchar are being used. Template
> overloads, while verbose, are another way to go.
>
> - EricAnderton at yahoo
Ok that was neat. (I have to look a bit more into templates)
Is their any special cases that need to bee handled.
Could utf32 have more posible symbols for line endings or withspace than
utf8 or anything like that. It could bee handled with static if on a
case by case basis thou.
More information about the Digitalmars-d
mailing list