From afba02ad5fc52acf84a18f67f38b6b75267a31c0 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Wed, 23 Dec 2015 16:40:08 +0100 Subject: stub in where command line tokenization will live --- akonadi2_cli/module.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'akonadi2_cli/module.cpp') diff --git a/akonadi2_cli/module.cpp b/akonadi2_cli/module.cpp index 125caaa..5fd68b4 100644 --- a/akonadi2_cli/module.cpp +++ b/akonadi2_cli/module.cpp @@ -157,4 +157,9 @@ Module::SyntaxList Module::nearestSyntax(const QStringList &words, const QString return matches; } +QStringList Module::tokenize(const QString &text) +{ + //TODO: properly tokenize (e.g. "foo bar" should not become ['"foo', 'bar"'] + return text.split(" "); +} -- cgit v1.2.3