- Added feature #559, which implements a new configuration variable,
  rc.exit.on.missing.db, which causes taskwarrior to exit if the
  rc.data.location is missing (thanks to Sander Marechal).
This commit is contained in:
Paul Beckingham 2011-06-27 23:23:28 -04:00
parent 526fa07326
commit 45a757832a
8 changed files with 86 additions and 9 deletions

View file

@ -446,10 +446,7 @@ std::string commify (const std::string& data)
std::string lowerCase (const std::string& input)
{
std::string output = input;
for (int i = 0; i < (int) input.length (); ++i)
if (isupper (input[i]))
output[i] = tolower (input[i]);
std::transform (output.begin (), output.end (), output.begin (), tolower);
return output;
}
@ -457,10 +454,7 @@ std::string lowerCase (const std::string& input)
std::string upperCase (const std::string& input)
{
std::string output = input;
for (int i = 0; i < (int) input.length (); ++i)
if (islower (input[i]))
output[i] = toupper (input[i]);
std::transform (output.begin (), output.end (), output.begin (), toupper);
return output;
}