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

Class Index

kdevelop'HlSatherFloat (./kdevelop/kdevelop/kwrite/highlight.h:254)

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


kdevelop'HlSatherFloat::HlSatherFloat() (./kdevelop/kdevelop/kwrite/highlight.cpp:737)

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


kdevelop'HlSatherFloat::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:741)

const QChar *HlSatherFloat::checkHgl(const QChar *s) {
  if (*s >= '0' && *s <= '9') {
    s++;
    while ((*s >= '0' && *s <= '9') || *s == '_') s++;
    if (*s == '.') {
      s++;
      while (*s >= '0' && *s <= '9') s++;
      if (*s == 'e' || *s == 'E') {
        s++;
        if (*s == '-') s++;
        if (*s >= '0' && *s <= '9') {
          s++;
          while ((*s >= '0' && *s <= '9') || *s == '_') s++;
        } else
          return 0L;
      }
      if (*s == 'i') return s+1;
      if (*s == 'd') s++;
      if (*s == 'x') s++;
		// "dx" is allowed too
      return s;
    }
  }
  return 0L;
}