Should this work?
Dicebot
public at dicebot.lv
Thu Jan 9 08:05:13 PST 2014
On Thursday, 9 January 2014 at 15:14:04 UTC, Manu wrote:
> However, I think to get the expected result from unicode you
> need
>>
>> string y = "Hello".byGrapheme.retro.find('H').to!string;
>>
>> but I might be wrong.
>>
>
> Bugger that. This is not an example of "D is good at strings!".
I have 0 ideas how are you going to get same functionality in C
with strchr. This small line uses quite lot of features to be
reliably unicode-correct.
More information about the Digitalmars-d
mailing list