mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feature #559
- 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:
parent
526fa07326
commit
45a757832a
8 changed files with 86 additions and 9 deletions
10
src/text.cpp
10
src/text.cpp
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue