Source Code (Use browser search to find items of interest.)

Class Index

kdevelop'HlAdaFloat (./kdevelop/kdevelop/kwrite/highlight.h:217)

class HlAdaFloat : public HlItemWw {
  public:
    HlAdaFloat(int attribute, int context);
    virtual const QChar *checkHgl(const QChar *);
};

//ada character

kdevelop'HlAdaFloat::HlAdaFloat() (./kdevelop/kdevelop/kwrite/highlight.cpp:629)

HlAdaFloat::HlAdaFloat(int attribute, int context)
  : HlItemWw(attribute,context) {
}


kdevelop'HlAdaFloat::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:633)

const QChar *HlAdaFloat::checkHgl(const QChar *s) {
  const QChar *str;

  str = s;
  while (*s >= '0' && *s <= '9') s++;
  if (s > str && *s == '.') {
    s++;
    str = s;
    while (*s >= '0' && *s <= '9') s++;
    if (s > str) {
      if (*s != 'e' && *s != 'E') return s;
      s++;
      if (*s == '-') s++;
      str = s;
      while ((*s >= '0' && *s <= '9') || *s == '_') s++;
      if (s > str) return s;
    }
  }
  return 0L;
}