tools/linguist/linguist/mainwindow.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
  2368                 return false;
  2368                 return false;
  2369             // "Nobody" ever really uses these alt-space, and they are highly annoying
  2369             // "Nobody" ever really uses these alt-space, and they are highly annoying
  2370             // because we get a lot of false positives.
  2370             // because we get a lot of false positives.
  2371             if (c != '&' && c != ' ' && QChar(c).isPrint()) {
  2371             if (c != '&' && c != ' ' && QChar(c).isPrint()) {
  2372                 const ushort *pp = p;
  2372                 const ushort *pp = p;
  2373                 for (; ::isalpha(*p); p++) ;
  2373                 for (; *p < 256 && ::isalpha(*p); p++) ;
  2374                 if (pp == p || *p != ';')
  2374                 if (pp == p || *p != ';')
  2375                     return true;
  2375                     return true;
  2376                 // This looks like a HTML &entity;, so ignore it. As a HTML string
  2376                 // This looks like a HTML &entity;, so ignore it. As a HTML string
  2377                 // won't contain accels anyway, we can stop scanning here.
  2377                 // won't contain accels anyway, we can stop scanning here.
  2378                 break;
  2378                 break;