Source Code (Use browser search to find items of interest.)
Class Index
kdevelop'HlAdaBaseN (./kdevelop/kdevelop/kwrite/highlight.h:210)
class HlAdaBaseN : public HlItemWw {
public:
HlAdaBaseN(int attribute, int context);
virtual const QChar *checkHgl(const QChar *);
};
//ada float
kdevelop'HlAdaBaseN::HlAdaBaseN() (./kdevelop/kdevelop/kwrite/highlight.cpp:592)
HlAdaBaseN::HlAdaBaseN(int attribute, int context)
: HlItemWw(attribute,context) {
}
kdevelop'HlAdaBaseN::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:596)
const QChar *HlAdaBaseN::checkHgl(const QChar *s) {
int base;
QChar c1, c2, c3;
const QChar *str;
base = 0;
while (*s >= '0' && *s <= '9') {
base *= 10;
base += *s - '0';
if (base > 16) return 0L;
s++;
}
if (base >= 2 && *s == '#') {
s++;
c1 = '0' + ((base <= 10) ? base : 10);
c2 = 'A' + base - 10;
c3 = 'a' + base - 10;
while ((*s >= '0' && *s < c1) || (*s >= 'A' && *s < c2)
|| (*s >= 'a' && *s < c3) || *s == '_') {
s++;
}
if (*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;
}