29static std::map< std::string, Debug::DebugMask >
s_labels =
93 if (in <=
'Z' && in >=
'A')
94 return in - (
'Z' -
'z');
100 std::string s = l.
str();
101 std::transform(s.begin(),s.end(),s.begin(),
asciiToLower);
144 msg(
"\t%s\n",v.first.c_str());
161 if (fileName && *fileName)
165 fprintf(stderr,
"%s lexical analyzer: %s (for: %s)\n",state, lexName, fileName);
172 fprintf(stderr,
"%s lexical analyzer: %s\n",state, lexName);
188 return static_cast<double>(
189 std::chrono::duration_cast<
190 std::chrono::microseconds>(
191 std::chrono::steady_clock::now() -
m_startTime).count()) / 1000000.0;
static void print(DebugMask mask, int prio, const char *fmt,...)
static void setPriority(int p)
static void clearFlag(const DebugMask mask)
static bool isFlagSet(const DebugMask mask)
static double elapsedTime()
static bool setFlagStr(const QCString &label)
static void setFlag(const DebugMask mask)
DebugLex(Debug::DebugMask mask, const char *lexName, const char *fileName)
static void print(Debug::DebugMask mask, const char *state, const char *lexName, const char *fileName)
This is an alternative implementation of QCString.
const std::string & str() const
std::chrono::time_point< std::chrono::steady_clock > m_startTime
static FILE * g_debugFile
static Timer g_runningTime
static std::map< std::string, Debug::DebugMask > s_labels
static uint64_t labelToEnumValue(const QCString &l)
static char asciiToLower(char in)
void msg(const char *fmt,...)
const char * qPrint(const char *s)