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

Class Index

kdevelop'HlAdaDec (./kdevelop/kdevelop/kwrite/highlight.h:203)

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

//ada base n

kdevelop'HlAdaDec::HlAdaDec() (./kdevelop/kdevelop/kwrite/highlight.cpp:573)

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


kdevelop'HlAdaDec::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:577)

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

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