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

Class Index

kdevelop'HlSatherChar (./kdevelop/kdevelop/kwrite/highlight.h:260)

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


kdevelop'HlSatherChar::HlSatherChar() (./kdevelop/kdevelop/kwrite/highlight.cpp:767)

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


kdevelop'HlSatherChar::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:771)

const QChar *HlSatherChar::checkHgl(const QChar *s) {
  if (*s == '\'') {
    s++;
    if (*s == '\\') {
      s++;
      if (*s == 'a' || *s == 'b' || *s == 'f' || *s == 'n'
          || *s == 'r' || *s == 't' || *s == 'v' || *s == '\\'
          || *s == '\'' || *s == '\"') s++;
      else if (*s>='0' && *s<='7')
        while (*s>='0' && *s<='7') s++;
      else
        return 0L;
    } else if (*s != '\0') s++;
  }
  if (*s == '\'')
    return s+1;
  else
    return 0L;
}