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
Comment #3 by github-bugzilla — 2013-12-19T06:33:09Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/f1775bdc278379c9e3f655ac8ac72793b3251bf3 Fix issues #11771 improve std.uni intersect `ref intersect()(dchar ch)` Fix issues #11771 https://github.com/D-Programming-Language/phobos/commit/f5e45c762689cc881f50dde3aafa6b46b6bcbd5f Merge pull request #1788 from 9il/patch-2 Fix issues #11771