mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Text
- Removed obsolete noSpaces() function.
This commit is contained in:
parent
8791c0a921
commit
9f82926c65
4 changed files with 3 additions and 23 deletions
|
@ -849,7 +849,7 @@ void CLI::categorize ()
|
|||
a->tag ("MODIFICATION");
|
||||
|
||||
// If the argument contains a space, it was quoted. Record that.
|
||||
if (! noSpaces (raw))
|
||||
if (! Lexer::isOneWord (raw))
|
||||
a->tag ("QUOTED");
|
||||
|
||||
changes = true;
|
||||
|
@ -859,7 +859,7 @@ void CLI::categorize ()
|
|||
a->tag ("FILTER");
|
||||
|
||||
// If the argument contains a space, it was quoted. Record that.
|
||||
if (! noSpaces (raw))
|
||||
if (! Lexer::isOneWord (raw))
|
||||
a->tag ("QUOTED");
|
||||
|
||||
changes = true;
|
||||
|
|
12
src/text.cpp
12
src/text.cpp
|
@ -489,18 +489,6 @@ bool digitsOnly (const std::string& input)
|
|||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool noSpaces (const std::string& input)
|
||||
{
|
||||
std::string::size_type i = 0;
|
||||
int character;
|
||||
while ((character = utf8_next_char (input, i)))
|
||||
if (Lexer::isWhitespace (character))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Override of ispunct, that considers #, $ and @ not to be punctuation.
|
||||
//
|
||||
|
|
|
@ -51,7 +51,6 @@ const std::string str_replace (const std::string&, const std::string&, const std
|
|||
const char* optionalBlankLine ();
|
||||
bool nontrivial (const std::string&);
|
||||
bool digitsOnly (const std::string&);
|
||||
bool noSpaces (const std::string&);
|
||||
bool isPunctuation (char);
|
||||
bool compare (const std::string&, const std::string&, bool sensitive = true);
|
||||
bool closeEnough (const std::string&, const std::string&, unsigned int minLength = 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue