X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdebug.C;h=8506660b23eec94add1689103ad05999c222a1ae;hb=c0eb43a927a49e054afbdf37e50387065c3d99a4;hp=b5213386f5c6f4a17af4b6aa3217d70b856bbc97;hpb=d208f37600974ad73b20bde4d83ad862513148cd;p=lyx.git diff --git a/src/debug.C b/src/debug.C index b5213386f5..8506660b23 100644 --- a/src/debug.C +++ b/src/debug.C @@ -1,8 +1,8 @@ /* This file is part of -* ====================================================== -* +* ====================================================== +* * LyX, The Document Processor -* +* * Copyright 1999-2001 The LyX Team. * * ====================================================== */ @@ -64,7 +64,7 @@ int const numErrorTags = sizeof(errorTags)/sizeof(error_item); } // namespace anon - + Debug::type const Debug::ANY = Debug::type( Debug::INFO | Debug::INIT | Debug::KEY | Debug::GUI | Debug::PARSER | Debug::LYXRC | Debug::KBMAP | Debug::LATEX | @@ -74,21 +74,21 @@ Debug::type const Debug::ANY = Debug::type( Debug::INSETTEXT | Debug::GRAPHICS); -Debug::type Debug::value(string const & val) +Debug::type Debug::value(string const & val) { type l = Debug::NONE; string v(val); while (!v.empty()) { string::size_type st = v.find(','); - string tmp(lowercase(v.substr(0, st))); + string tmp(ascii_lowercase(v.substr(0, st))); if (tmp.empty()) break; // Is it a number? - if (isStrInt(tmp)) + if (isStrInt(tmp)) l |= static_cast(strToInt(tmp)); else // Search for an explicit name - for (int i = 0 ; i < numErrorTags ; ++i) + for (int i = 0 ; i < numErrorTags ; ++i) if (tmp == errorTags[i].name) { l |= errorTags[i].level; break; @@ -112,7 +112,7 @@ void Debug::showLevel(ostream & o, Debug::type level) } -void Debug::showTags(ostream & os) +void Debug::showTags(ostream & os) { for (int i = 0 ; i < numErrorTags ; ++i) os << setw(7) << errorTags[i].level