Major performance problem with std.array.front()
TC
chalucha at gmail.com
Fri Mar 7 15:06:19 PST 2014
>
> Probably because your browser is normalizing the unicode string
> when you
> copy-n-paste Vladimir's message? See below:
>
Just for curiosity I tried it with C# to see how it is handled
there and it works like this:
using System;
using System.Diagnostics;
namespace Test
{
class Program
{
static void Main()
{
var s = "cassé";
Debug.Assert(s.IndexOf('é') < 0);
s = s.Normalize();
Debug.Assert(s.IndexOf('é') == 4);
}
}
}
So it's neither work by default there and Normalize has to be used
More information about the Digitalmars-d
mailing list