mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Code Cleanup
- Removed unused text.cpp visible function.
This commit is contained in:
parent
6303f1c436
commit
fdb4c1f1bc
2 changed files with 0 additions and 23 deletions
22
src/text.cpp
22
src/text.cpp
|
@ -524,28 +524,6 @@ bool isPunctuation (char c)
|
||||||
return ispunct (c);
|
return ispunct (c);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
std::string visible (char input)
|
|
||||||
{
|
|
||||||
// Sanitize 'message'.
|
|
||||||
char stringized[2] = {0};
|
|
||||||
stringized[0] = input;
|
|
||||||
|
|
||||||
std::string sanitized = stringized;
|
|
||||||
switch (input)
|
|
||||||
{
|
|
||||||
case ' ': sanitized = "\\s"; break;
|
|
||||||
case '\r': sanitized = "\\r"; break;
|
|
||||||
case '\n': sanitized = "\\n"; break;
|
|
||||||
case '\f': sanitized = "\\f"; break;
|
|
||||||
case '\t': sanitized = "\\t"; break;
|
|
||||||
case '\v': sanitized = "\\v"; break;
|
|
||||||
default: sanitized = input; break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return sanitized;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
bool compare (
|
bool compare (
|
||||||
const std::string& left,
|
const std::string& left,
|
||||||
|
|
|
@ -54,7 +54,6 @@ bool nontrivial (const std::string&);
|
||||||
bool digitsOnly (const std::string&);
|
bool digitsOnly (const std::string&);
|
||||||
bool noSpaces (const std::string&);
|
bool noSpaces (const std::string&);
|
||||||
bool isPunctuation (char);
|
bool isPunctuation (char);
|
||||||
std::string visible (char);
|
|
||||||
bool compare (const std::string&, const std::string&, bool sensitive = true);
|
bool compare (const std::string&, const std::string&, bool sensitive = true);
|
||||||
bool closeEnough (const std::string&, const std::string&, unsigned int minLength = 0);
|
bool closeEnough (const std::string&, const std::string&, unsigned int minLength = 0);
|
||||||
std::string::size_type find (const std::string&, const std::string&, bool sensitive = true);
|
std::string::size_type find (const std::string&, const std::string&, bool sensitive = true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue