I extended the addTokens method so it can remove the quotes you specify which I find quite useful.
https://www.dropbox.com/s/ir222e5x05xiqig/addTokens.cpp?dl=0
I extended the addTokens method so it can remove the quotes you specify which I find quite useful.
https://www.dropbox.com/s/ir222e5x05xiqig/addTokens.cpp?dl=0
It's much better practice to prefer utility functions that aren't tightly-coupled to existing code.. e.g. you could have just written a free function, which would do the job very cleanly:
static void addTokensRemovingQuotes (StringArray& target, StringRef text, StringRef breakCharacters, StringRef quoteCharacters) { target.addTokens (text, breakCharacters, quoteCharacters); for (String& s : target) s = s.unquoted(); }