mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Text
- Removed splitq function and tests, migrated code over to the new Lexer::split.
This commit is contained in:
parent
611812007a
commit
386bcea60e
5 changed files with 5 additions and 29 deletions
15
src/text.cpp
15
src/text.cpp
|
@ -63,21 +63,6 @@ void wrapText (
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// UTF-8
|
||||
//
|
||||
// Splits on unicode whitespace, removeѕ quotes.
|
||||
void splitq (std::vector <std::string>& results, const std::string& input)
|
||||
{
|
||||
results.clear ();
|
||||
|
||||
std::string token;
|
||||
Lexer::Type type;
|
||||
Lexer lex (input);
|
||||
while (lex.token (token, type))
|
||||
results.push_back (token);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO Obsolete this call.
|
||||
void splitq (
|
||||
std::vector<std::string>& results,
|
||||
const std::string& input,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue