closeEnough
- Implemented closeEnough, which does a truncated, caseless compare between two strings. For example, "FoO" is cloneEnough to "food." to be a match. Used to allow mixed case and abbreviated arguments.
This commit is contained in:
@@ -62,6 +62,7 @@ bool isWordStart (const std::string&, std::string::size_type);
|
||||
bool isWordEnd (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&);
|
||||
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&);
|
||||
|
||||
Reference in New Issue
Block a user