29static std::map< std::string, Debug::DebugMask >
s_labels =
90 if (in <=
'Z' && in >=
'A')
91 return in - (
'Z' -
'z');
97 std::string s = l.
str();
98 std::transform(s.begin(),s.end(),s.begin(),
asciiToLower);
141 msg(
"\t{}\n",v.first);
158 if (fileName && *fileName)
162 fprintf(stderr,
"%s lexical analyzer: %s (for: %s)\n",state, lexName, fileName);
169 fprintf(stderr,
"%s lexical analyzer: %s\n",state, lexName);
185 return static_cast<double>(
186 std::chrono::duration_cast<
187 std::chrono::microseconds>(
188 std::chrono::steady_clock::now() -
m_startTime).count()) / 1000000.0;
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 print_(DebugMask mask, int prio, fmt::string_view fmt, fmt::format_args args)
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)
const char * qPrint(const char *s)