mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement
- Modified the closeEnough function to accept a minimum match length. Useful, but initially not used.
This commit is contained in:
parent
b63bd9e985
commit
f23d8921e4
2 changed files with 7 additions and 3 deletions
|
@ -64,7 +64,7 @@ bool isWordEnd (const std::string&, std::string::size_type);
|
|||
bool isTokenEnd (const std::string&, std::string::size_type);
|
||||
bool isPunctuation (char);
|
||||
bool compare (const std::string&, const std::string&, bool sensitive = true);
|
||||
bool closeEnough (const std::string&, const std::string&);
|
||||
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&, std::string::size_type, bool sensitive = true);
|
||||
int strippedLength (const std::string&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue