Text
- Removed splitq function and tests, migrated code over to the new Lexer::split.
This commit is contained in:
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,
|
||||
|
||||
Reference in New Issue
Block a user