In second patch, I changed so that Boyer-Moore algorithm could be used also to case-insensitive matching if MB_CUR_MAX == 1. It works with patch#17019 and patch#17034.