示例#1
0
int KateHlCFloat::checkHgl(const QString &text, int offset, int len)
{
    int offset2 = KateHlFloat::checkHgl(text, offset, len);

    if (offset2) {
        if ((text[offset2].toLatin1() & 0xdf) == 'F') {
            offset2++;
        }

        return offset2;
    } else {
        offset2 = checkIntHgl(text, offset, len);

        if (offset2 && ((text[offset2].toLatin1() & 0xdf) == 'F')) {
            return ++offset2;
        } else {
            return 0;
        }
    }
}
示例#2
0
int KateHlCFloat::checkHgl(const QString& text, int offset, int len)
{
  int offset2 = KateHlFloat::checkHgl(text, offset, len);

  if (offset2)
  {
    if ((text[offset2].toAscii() & 0xdf) == 'F' )
      offset2++;

    return offset2;
  }
  else
  {
    offset2 = checkIntHgl(text, offset, len);

    if (offset2 && ((text[offset2].toAscii() & 0xdf) == 'F' ))
      return ++offset2;
    else
      return 0;
  }
}