Why is std.regex slow, well here is one reason!

GrimMaple grimmaple95 at gmail.com
Fri Mar 3 11:29:34 UTC 2023


On Friday, 24 February 2023 at 20:44:17 UTC, Walter Bright wrote:

> Is 'A' in German different from the 'A' in English? Yes.

Except they are literally the same Latin A and in no way are 
different.

>> Is Latin 'A' the same character as Cyrillic 'A'? Should they 
>> have the same code?
>
> It's the same glyph, and so should have the same code.

Except they aren't, and it's a mere coincidence that in this 
particular font they look the same way. Cyrillic А is 
traditionally written more as c\ with c being tilted to the left 
about 45 degrees. Even in fonts with Cyrillic A looking more like 
Latin A, a lot of fonts put extra emphasis on the right stroke, 
making it wider than the left.

> The definitive test is, when printed out or displayed, can you 
> see a difference? If the answer is "no" then they should be the 
> same code.

The definitive test would be understanding what you're talking 
about




More information about the Digitalmars-d mailing list