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

Class Index

kdevelop'HlSatherBaseN (./kdevelop/kdevelop/kwrite/highlight.h:248)

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


kdevelop'HlSatherBaseN::HlSatherBaseN() (./kdevelop/kdevelop/kwrite/highlight.cpp:710)

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


kdevelop'HlSatherBaseN::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:714)

const QChar *HlSatherBaseN::checkHgl(const QChar *s) {
  if (*s == '0') {
    s++;
    if (*s == 'x') {
      s++;
      while ((*s >= '0' && *s <= '9')
             || (*s >= 'a' && *s <= 'f')
             || (*s >= 'A' && *s <= 'F')
             || *s == '_') s++;
    } else if (*s == 'o') {
      s++;
      while ((*s >= '0' && *s <= '7') || *s == '_') s++;
    } else if (*s == 'b') {
      s++;
      while (*s == '0' || *s == '1' || *s == '_') s++;
    } else
      return 0L;
    if (*s == 'i') s++;
    return s;
  }
  return 0L;
}