Source Code (Use browser search to find items of interest.)
Class Index
kdelibs'HlFloat (./kdelibs/kwrite/highlight.h:118)
class HlFloat : public HlItemWw {
public:
HlFloat(int attribute, int context);
virtual const QChar *checkHgl(const QChar *);
};
kdelibs'HlFloat::HlFloat() (./kdelibs/kwrite/highlight.cpp:325)
HlFloat::HlFloat(int attribute, int context)
: HlItemWw(attribute,context) {
}
kdelibs'HlFloat::checkHgl() (./kdelibs/kwrite/highlight.cpp:329)
const QChar *HlFloat::checkHgl(const QChar *s) {
bool b, p;
b = false;
while (*s >= '0' && *s <= '9') {
s++;
b = true;
}
if (p = (*s == '.')) {
s++;
while (*s >= '0' && *s <= '9') {
s++;
b = true;
}
}
if (!b) return 0L;
if (*s == 'E' || *s == 'e') s++; else return (p) ? s : 0L;
if (*s == '-') s++;
b = false;
while (*s >= '0' && *s <= '9') {
s++;
b = true;
}
if (b) return s; else return 0L;
}