Hi,
currently, the only methods to have a StringArray built from a String that’s splitted around separators is to create the empty StringArray first, and call addTokens afterwards:
StringArray array;
array.addTokens ("1 2 3 etc");
I’d find it handy if there were a StringArray::fromTokens factory method that did just that, returning the resulting StringArray.
Well… that’s the opposite direction to the way I’d like the Font class to work. I regret not making it an immutable class from the start, so am avoiding adding any new non-const methods.
You are right, I was just not comfortable enough with the idea of creating a temporary object just to create another one with a different size out of it