Changeset 5706 for icGREP/icgrepdevel/icgrep/UCD/unicode_set.cpp
 Timestamp:
 Oct 25, 2017, 4:57:58 PM (18 months ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

icGREP/icgrepdevel/icgrep/UCD/unicode_set.cpp
r5646 r5706 651 651 const auto e2 = other.quad_end(); 652 652 for (auto i1 = quad_begin(), i2 = other.quad_begin(); i1 != e1 && i2 != e2; ) { 653 const auto n = std::min(i1.length(), i2.length()); 654 if (i1.type() == Empty) { 655 i1 += i1.length(); 656 i2 += i1.length(); 657 } 658 else if (i2.type() == Empty) { 659 i1 += i2.length(); 660 i2 += i2.length(); 661 } 662 else if (i1.type() == Full) { 663 return false; 664 } 665 else if (i2.type() == Full) { 666 return false; 667 } 668 else { //both Mixed 669 for (unsigned i = 0; i != n; ++i, ++i1, ++i2) { 670 if ((i1.quad() & i2.quad()) != 0) return false; 671 } 672 } 673 } 674 return true; 653 auto n = std::min(i1.length(), i2.length()); 654 if (i1.type() == Empty  i2.type() == Empty) { 655 i1 += n; 656 i2 += n; 657 } else if (i1.type() == Full  i2.type() == Full) { 658 return true; 659 } else { //both Mixed 660 for (; n; n, ++i1, ++i2) { 661 if ((i1.quad() & i2.quad()) != 0) return true; 662 } 663 } 664 } 665 return false; 675 666 } 676 667
Note: See TracChangeset
for help on using the changeset viewer.