Bug 11771 – Unicode set intersection with char is broken
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-19T03:13:00Z
Last change time
2013-12-19T07:53:20Z
Assigned to
nobody
Creator
ilyayaroshenko
Comments
Comment #0 by ilyayaroshenko — 2013-12-19T03:13:05Z
(unicode.Cyrillic & '-') should be an empty set, but it is {'-'}.
The problem probably with private function ref subChar(dchar ch).
_______________
DMD 2.264.2, kubuntu 13.10, 64bit
Comment #1 by ilyayaroshenko — 2013-12-19T03:19:48Z
Excuse me, not subChar, but this function:
ref intersect()(dchar ch)
{
foreach(i; byInterval)
if(i.a >= ch && ch < i.b)
return this = This.init.add(ch, ch+1);
this = This.init;
return this;
}
Comment #2 by ilyayaroshenko — 2013-12-19T04:35:05Z